/* Porta Poddi: single-scroll site styles */

:root {
  --paper: #F4F1EB;
  --sand: #E9E2D5;
  --ink: #141618;
  --ink-2: #2A2E32;
  --mute: #5E646A;
  --line: rgba(20, 22, 24, 0.12);
  --teal: #2A8A97;
  --teal-deep: #1E6E79;
  --teal-light: #8FD3DC;
  --dark: #0F1113;
  --dark-2: #171A1D;
  --white: #FFFFFF;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 0.98; letter-spacing: -0.005em; }
h1 { font-size: clamp(50px, 8.2vw, 104px); }
h2 { font-size: clamp(40px, 5.6vw, 72px); }
h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; }
h4 { font-size: 22px; margin-top: 28px; margin-bottom: 10px; }
em { font-style: italic; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.sand { background: var(--sand); }
.dark { background: var(--dark); color: #E9E6E0; }
.dark .eyebrow { color: var(--teal-light); }
.dark h2, .dark h3 { color: var(--white); }
.dark .fine { color: rgba(233, 230, 224, 0.62); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 18px;
}
.eyebrow.light { color: var(--teal-light); }
.sub { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); max-width: 760px; margin-top: 24px; }
.fine { font-size: 14px; line-height: 1.55; color: var(--mute); }
.fine.center { text-align: center; max-width: 820px; margin: 40px auto 0; }
.lede { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  border: 1.5px solid var(--teal);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); transform: translateY(-1px); }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(20, 22, 24, 0.35); }
.btn-ghost:hover { background: rgba(20, 22, 24, 0.06); border-color: var(--ink); color: var(--ink); }
.btn-ghost.light { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost.light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: #E6E2DA; border-color: #E6E2DA; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Brand */
.brand { display: block; height: 52px; flex: none; transition: height .3s var(--ease); }
.brand img { height: 100%; width: auto; transition: opacity .25s var(--ease); }
.brand .brand-ink { display: none; }
.nav.solid .brand { height: 44px; }
.nav.solid .brand .brand-light { display: none; }
.nav.solid .brand .brand-ink { display: block; }
.nav.open .brand .brand-light { display: none; }
.nav.open .brand .brand-ink { display: block; }
.cta-logo { width: min(180px, 44vw); height: auto; margin-bottom: 24px; }
.foot-logo { width: 88px; height: auto; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 12px 0;
  color: var(--white);
  transition: background .3s var(--ease), color .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.solid { background: rgba(244, 241, 235, 0.92); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 8px 0; box-shadow: 0 1px 0 var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn) { opacity: 0.86; transition: opacity .2s; }
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 7px; }
.nav-toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .25s; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--white); overflow: hidden; background: var(--dark); }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: 0; transform: scale(1.04); transition: opacity 1.4s var(--ease); }
.slide.is-on { opacity: 1; animation: kb 7s linear forwards; }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1.11); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10, 12, 14, 0.80) 0%, rgba(10, 12, 14, 0.52) 48%, rgba(10, 12, 14, 0.22) 100%),
  linear-gradient(180deg, rgba(10, 12, 14, 0.35) 0%, rgba(10, 12, 14, 0) 30%, rgba(10, 12, 14, 0.25) 100%); }
.hero-inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 56px; }
.hero h1 { max-width: 11ch; margin-bottom: 26px; text-wrap: balance; }
.hero .lede { color: rgba(255, 255, 255, 0.9); }
.hero-strip { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.18); background: rgba(10, 12, 14, 0.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.strip-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.slide-label { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .4s; }
.slide-label::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-light); margin-right: 8px; vertical-align: middle; }
.settings { display: flex; flex-wrap: wrap; gap: 6px 8px; justify-content: flex-end; }
.settings li { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.86); padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; white-space: nowrap; }
.settings li:last-child { text-transform: none; letter-spacing: 0; font-weight: 600; border-style: dashed; }

/* Split heading + copy */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split h2 { text-wrap: balance; }
.copy p { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); }
.heading { max-width: 900px; }
.heading h2 { text-wrap: balance; }

/* Locations */
.locations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.loc { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.loc img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease); }
.loc:hover img { transform: scale(1.03); }
.loc figcaption { position: absolute; inset: auto 0 0 0; padding: 72px 22px 22px; color: var(--white); background: linear-gradient(180deg, rgba(10, 12, 14, 0) 0%, rgba(10, 12, 14, 0.78) 100%); display: flex; flex-direction: column; gap: 6px; }
.loc figcaption strong { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1; }
.loc figcaption span { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.86); }

/* Applications */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 64px); }
.app { background: var(--paper); border-radius: var(--radius); padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; border: 1px solid rgba(20, 22, 24, 0.05); }
.app .num { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.12em; color: var(--teal-deep); }
.app h3 { font-size: 27px; }
.app p { color: var(--ink-2); font-size: 16px; margin: 0; }
.app.ask { background: var(--ink); color: var(--white); border-color: var(--ink); justify-content: space-between; }
.app.ask .num { color: var(--teal-light); }
.app.ask p { color: rgba(255, 255, 255, 0.78); }
.app.ask a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 64px); counter-reset: step; }
.step { background: var(--sand); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.step img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.step-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.step-body .num { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--teal-deep); letter-spacing: 0.12em; }
.step-body .num::before { content: "Step "; }
.step-body h3 { font-size: 28px; }
.step-body p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Explainer */
.explainer { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(64px, 8vw, 104px); }
.explainer-img { margin: 0; border-radius: var(--radius); overflow: hidden; }
.explainer-img img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.explainer-body h3 { font-size: clamp(32px, 3.4vw, 44px); margin-bottom: 16px; }
.explainer-body p { color: var(--ink-2); }
.cap { width: 100%; border-collapse: collapse; font-size: 15px; }
.cap th, .cap td { text-align: left; padding: 12px 12px 12px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.cap th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.cap td:first-child { font-weight: 700; white-space: nowrap; }
.cap td:nth-child(2) { white-space: nowrap; }
.explainer-body .fine { margin-top: 12px; }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 64px); align-items: stretch; }
.tier { background: var(--paper); border-radius: var(--radius); padding: 32px 28px 28px; display: flex; flex-direction: column; border: 1px solid rgba(20, 22, 24, 0.06); }
.tier.featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.tier-name { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1; margin: 0 0 18px; }
.price { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 4vw, 52px); line-height: 1; margin: 0 0 8px; color: var(--ink); }
.price span { font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--mute); margin-left: 4px; }
.price-note { font-size: 14px; color: var(--mute); margin-bottom: 18px; }
.best { font-size: 15px; color: var(--ink-2); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.best strong { color: var(--teal-deep); font-weight: 700; }
.tier ul { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-2); flex: 1; }
.tier li { padding-left: 22px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.commit { margin: 24px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }

/* Proof */
.proof-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.proof-copy .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 6px; color: rgba(233, 230, 224, 0.9); margin: 22px 0 18px; }
.proof-copy p { color: rgba(233, 230, 224, 0.86); font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 18px; }
.stats div { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 12px; }
.stats dt { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 4vw, 56px); line-height: 1; color: var(--white); }
.stats dd { margin: 6px 0 0; font-size: 13px; line-height: 1.35; color: rgba(233, 230, 224, 0.72); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(56px, 7vw, 88px); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }

/* Extend */
.band { margin: clamp(40px, 6vw, 64px) 0 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.band img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.band figcaption { position: absolute; left: 20px; bottom: 16px; font-size: 13px; color: var(--white); background: rgba(10, 12, 14, 0.55); padding: 6px 10px; border-radius: 6px; }

/* CTA */
.cta { position: relative; background: var(--dark); color: var(--white); overflow: hidden; padding: clamp(96px, 13vw, 168px) 0; text-align: center; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: 20ch; text-wrap: balance; }
.cta .lede { margin-top: 22px; color: rgba(255, 255, 255, 0.86); }
.cta .actions { justify-content: center; }
.contact-line { margin: 28px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.contact-line a { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; font-size: 14px; color: var(--mute); }
.foot-row p { margin: 0; }
.foot-fine { font-size: 13px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .loc img, .btn { transition: none; }
}

/* Points list */
.points { display: flex; flex-direction: column; gap: 14px; }
.points li { padding-left: 26px; position: relative; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }
.points strong { color: var(--ink); font-weight: 700; }
.aside { margin: 26px 0 0; padding: 16px 18px; border-left: 3px solid var(--teal); background: rgba(42, 138, 151, 0.08); font-size: 15px; color: var(--ink-2); border-radius: 0 10px 10px 0; }

/* Mechanics */
.mech { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(36px, 5vw, 56px); }
.mech-media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--dark); }
.mech-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Flow */
.flow { display: grid; grid-template-columns: 1fr auto 1.1fr auto 1.2fr; gap: 18px; align-items: stretch; margin-top: clamp(40px, 6vw, 64px); }
.flow-col { background: var(--sand); border-radius: var(--radius); padding: 26px 24px 24px; }
.flow-col.mid { background: var(--ink); color: var(--white); }
.flow-head { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1; margin: 0 0 16px; }
.flow-col ul { display: flex; flex-direction: column; gap: 9px; font-size: 15px; color: var(--ink-2); }
.flow-col.mid ul { color: rgba(255, 255, 255, 0.86); }
.flow-col li { padding-left: 18px; position: relative; }
.flow-col li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.flow-col.mid li::before { background: var(--teal-light); }
.flow-arrow { display: flex; align-items: center; color: var(--teal); }
.flow-arrow svg { width: 44px; height: 22px; }

/* Application cards as lists */
.app ul { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-2); }
.app li { padding-left: 16px; position: relative; }
.app li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* Involvement ladder */
.ladder { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(64px, 8vw, 96px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.ladder-intro h3 { font-size: clamp(30px, 3.2vw, 40px); margin-bottom: 12px; }
.ladder-intro p { color: var(--ink-2); }
.rungs { display: flex; flex-direction: column; gap: 12px; counter-reset: rung; }
.rungs li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 20px; background: var(--sand); border-radius: 12px; border-left: 4px solid var(--teal); }
.rungs li:nth-child(2) { border-left-color: var(--teal-deep); }
.rungs li:nth-child(3) { border-left-color: var(--ink); }
.rung-name { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1; }
.rung-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-deep); align-self: center; }
.rungs p { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--ink-2); }

/* Capacity */
.capacity { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(48px, 6vw, 72px); }
.cap-intro h3 { font-size: clamp(30px, 3.2vw, 40px); margin-bottom: 12px; }
.commit-top { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-deep); margin: 0 0 14px; }

/* Proof stills */
.proof-stills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proof-stills img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.proof-stills img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

/* Responsive */
@media (max-width: 1000px) {
  .explainer { grid-template-columns: 1fr; }
  .explainer-img img { aspect-ratio: 4 / 3; }
  .proof-top { grid-template-columns: 1fr; }
  .mech, .ladder, .capacity { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { justify-content: center; }
  .flow-arrow svg { transform: rotate(90deg); }
  .apps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-links { position: fixed; inset: 0; background: var(--paper); color: var(--ink); flex-direction: column; justify-content: center; gap: 22px; font-size: 24px; font-family: var(--display); font-weight: 600; transform: translateY(-100%); transition: transform .35s var(--ease); z-index: 40; }
  .nav.open .nav-links { transform: none; }
  .nav-toggle { display: flex; position: relative; z-index: 45; }
  .nav.open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav.open { color: var(--ink); }
  .nav-links .btn { font-size: 16px; font-family: var(--body); margin-top: 8px; }
  .brand { height: 44px; }
  .nav.solid .brand { height: 38px; }
  .nav.open .brand { position: relative; z-index: 45; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .locations, .steps, .tiers, .gallery { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .strip-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 0; }
  .slide-label { max-width: 100%; }
  .settings { justify-content: flex-start; }
  .settings li { font-size: 11px; padding: 5px 9px; }
  .settings li:last-child { display: none; }
  .proof-stills { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 120px 0 40px; }
  .hero h1 { max-width: 12ch; }
  .cap td:nth-child(2) { white-space: normal; }
  .apps { grid-template-columns: 1fr; }
  .app { min-height: 0; }
}
