@charset "UTF-8";

:root {
  color-scheme: dark;
  --navy-950: #0b1929;
  --navy-900: #102136;
  --navy-850: #14283e;
  --navy-800: #1a3048;
  --navy-700: #274158;
  --paper: #f1f4f2;
  --white: #fafcfb;
  --silver: #b8c6d1;
  --muted: #96aabd;
  --cyan: #73d2df;
  --cyan-deep: #56bdcb;
  --line: rgba(199, 219, 228, .17);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-refined: "Avenir Next", Manrope, "Segoe UI", ui-sans-serif, sans-serif;
  --container: 1320px;
  --gutter: clamp(24px, 5vw, 80px);
  --section-space: clamp(110px, 13vw, 190px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--navy-950); color: var(--paper); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--cyan); color: var(--navy-950); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 0; left: 18px; padding: 12px 18px; background: var(--cyan); color: var(--navy-950); transform: translateY(-120%); }
.skip-link:focus { transform: translateY(15px); }
.eyebrow { color: var(--cyan); font-size: .75rem; font-weight: 700; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); }
.nav-shell { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { font-size: 1rem; font-weight: 650; letter-spacing: -.045em; white-space: nowrap; }
.brand span, .accent-dot { color: var(--cyan); }
.main-nav { display: flex; align-items: center; gap: clamp(22px, 2.5vw, 40px); }
.main-nav a { color: var(--silver); font-size: .86rem; transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--white); }
.menu-toggle { display: none; }
body:not(.case-page) .site-header { position: absolute; top: 0; left: 0; right: 0; border: 0; }
body:not(.case-page) .site-header, .hero, .approach, .journey { font-family: var(--font-refined); }
body:not(.case-page) .nav-shell { position: relative; min-height: 102px; }
body:not(.case-page) .brand { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
body:not(.case-page) .main-nav { position: absolute; left: 50%; transform: translateX(-50%); }
body:not(.case-page) .main-nav a { color: var(--paper); font-size: .88rem; }
body:not(.case-page) .main-nav a:hover { color: var(--cyan); }
body:not(.case-page) .main-nav a[href="#inicio"] { color: var(--cyan); border-bottom: 2px solid var(--cyan); padding-block: 7px; }

.hero { min-height: min(860px, 100svh); padding-top: 126px; padding-bottom: 82px; display: flex; align-items: center; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -2; background: radial-gradient(circle at 76% 17%, #123e5e 0%, #092337 35%, var(--navy-950) 76%); }
.hero-copy { width: min(58%, 650px); position: relative; z-index: 2; }
.hero-location { display: flex; align-items: center; gap: 26px; margin: 0 0 22px; color: var(--silver); }
.hero-location::after { content: ""; width: 54px; height: 1px; background: var(--line); }
.hero h1 { margin: 0; font-size: clamp(5.1rem, 7vw, 7.25rem); font-weight: 650; line-height: 1; letter-spacing: 0; }
.hero h1 span { color: #91d9f1; }
.hero-role { max-width: 560px; margin: 27px 0 0; color: var(--white); font-size: clamp(1.85rem, 2.6vw, 2.35rem); font-weight: 450; letter-spacing: 0; line-height: 1.2; }
.hero-intro { max-width: 570px; margin: 34px 0 0; padding-left: 20px; border-left: 3px solid var(--cyan); color: var(--paper); font-size: 1.16rem; line-height: 1.65; }
.hero-thesis { margin: 27px 0 0 23px; color: var(--white); font-size: 1.24rem; font-weight: 700; letter-spacing: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 34px 0 0 23px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 23px; border: 1px solid transparent; padding: 0 25px; font-size: .92rem; font-weight: 620; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button span { font-size: 1.15em; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--cyan); color: var(--navy-950); }
.button-primary:hover { background: #a0e9ed; }
.button-text { background: rgba(7, 27, 44, .25); color: var(--white); border-color: var(--cyan); }
.button-text:hover { color: var(--cyan); background: rgba(115, 210, 223, .08); }
.hero-visual { position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 47%; filter: saturate(.82) brightness(.67); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,23,38,.99) 0%, rgba(7,23,38,.96) 30%, rgba(7,23,38,.78) 49%, rgba(7,23,38,.2) 83%), linear-gradient(0deg, rgba(7,27,44,.45), transparent 28%); }
.portrait-caption { position: absolute; z-index: 1; right: max(24px, 7vw); bottom: 25px; color: #e2eef0; font-size: .72rem; letter-spacing: .04em; }
.explore { position: absolute; left: 0; bottom: 29px; display: flex; align-items: center; gap: 13px; color: var(--silver); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.explore span { color: var(--cyan); font-size: 1.2rem; transition: transform .2s ease; }
.explore:hover span { transform: translateY(4px); }

.section { padding-block: var(--section-space); }
.section-heading { display: grid; grid-template-columns: minmax(160px, .33fr) minmax(0, 1.27fr) minmax(180px, .4fr); gap: 28px; align-items: start; margin-bottom: clamp(70px, 8vw, 110px); }
.section-index { margin: .55em 0 0; }
.section-heading h2 { margin: 0; font-size: clamp(3.3rem, 5.6vw, 6.35rem); font-weight: 510; line-height: 1.06; letter-spacing: -.05em; }
.section-heading h2 em, .contact h2 em { color: var(--silver); font-style: normal; }
.section-heading > p:last-child { max-width: 240px; margin: .7em 0 0; color: var(--muted); font-size: .95rem; line-height: 1.65; }

.approach { padding-block: 86px; border-top: 1px solid var(--line); background: radial-gradient(circle at 85% 8%, #103b56, transparent 33%), #092237; }
.approach .container { display: grid; grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); gap: clamp(36px, 4vw, 60px); align-items: start; }
.approach-heading .section-index { display: flex; align-items: center; gap: 20px; margin: 0 0 23px; color: var(--silver); font-size: .9rem; }
.approach-heading .section-index::after { content: ""; width: 78px; height: 1px; background: var(--line); }
.approach-heading h2 { margin: 0; font-size: clamp(2.7rem, 3.3vw, 3.1rem); font-weight: 650; line-height: 1.1; letter-spacing: 0; }
.approach-heading h2 em { color: #91d9f1; font-style: normal; white-space: nowrap; }
.principles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 0; }
.principle, .principle:nth-child(4), .principle:nth-child(5) { grid-column: span 2; min-height: 0; padding: 0 24px 0; border-top: 0; border-left: 1px solid var(--line); }
.principle:nth-child(4), .principle:nth-child(5) { grid-column: span 3; padding-top: 22px; border-top: 1px solid var(--line); }
.principle:first-child, .principle:nth-child(4) { padding-left: 0; border-left: 0; }
.principle-number { color: var(--cyan); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.principle h3 { margin: 10px 0 9px; color: var(--white); font-size: 1.12rem; font-weight: 700; letter-spacing: 0; line-height: 1.28; }
.principle p { max-width: 340px; margin: 0; color: var(--silver); font-size: 1.1rem; line-height: 1.6; }

.journey { padding-block: 82px 95px; background: var(--navy-950); }
.journey .section-heading { display: block; margin-bottom: 34px; }
.journey .section-index { margin: 0 0 12px; }
.journey .section-heading h2 { font-size: clamp(2.6rem, 3.8vw, 3.5rem); font-weight: 650; line-height: 1.12; letter-spacing: 0; }
.timeline { --timeline-image-height: 185px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 2.6vw, 42px); position: relative; }
.timeline::before { content: ""; position: absolute; top: calc(var(--timeline-image-height) + 25px); left: 0; right: 0; border-top: 1px solid var(--line); }
.timeline-item { min-width: 0; }
.timeline-image { height: var(--timeline-image-height); position: relative; overflow: hidden; background: var(--navy-850); }
.timeline-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.timeline-image > span { position: absolute; right: 10px; bottom: 9px; padding: 4px 7px; background: rgba(5, 22, 36, .73); color: #dae6e9; font-size: .62rem; letter-spacing: .03em; }
.timeline-item:hover .timeline-image img { transform: scale(1.035); }
.timeline-meta { position: relative; height: 56px; display: flex; align-items: center; color: var(--cyan); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.timeline-point { display: block; position: absolute; top: 19px; left: 0; width: 12px; height: 12px; border: 3px solid var(--cyan); border-radius: 50%; background: var(--navy-950); }
.timeline-meta > span:last-child { padding-top: 19px; }
.timeline-item h3 { max-width: 370px; margin: 0 0 12px; font-size: clamp(1.35rem, 1.8vw, 1.7rem); font-weight: 700; letter-spacing: 0; line-height: 1.23; }
.timeline-item h3 span { display: block; color: var(--muted); }
.timeline-item p { max-width: 390px; margin: 0; color: var(--silver); font-size: 1.02rem; line-height: 1.58; }

.work { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.case { border: 1px solid var(--line); }
.case-featured { min-height: 600px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--navy-850); }
.case-copy { padding: clamp(36px, 5vw, 74px); }
.case-kicker { margin: 0 0 34px; }
.case-kicker span { padding-inline: 6px; color: var(--muted); }
.case h3 { margin: 0 0 30px; font-size: clamp(2.3rem, 3.7vw, 4.3rem); font-weight: 540; letter-spacing: -.045em; line-height: 1.08; }
.case h3 span { color: var(--silver); }
.case-copy > p:not(.case-kicker), .secondary-body > p:not(.case-kicker) { max-width: 560px; margin: 0 0 19px; color: var(--silver); font-size: 1rem; line-height: 1.72; }
.case-evidence { max-width: 580px; margin: 30px 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.case-evidence span { display: block; margin-bottom: 10px; color: var(--cyan); font-size: .74rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.case-evidence p { margin: 0; color: var(--white); font-size: .94rem; line-height: 1.7; }
.case-link { display: inline-flex; min-height: 44px; align-items: center; gap: 29px; padding: 0 0 5px; border: 0; border-bottom: 1px solid var(--cyan); background: none; color: var(--white); font-size: .9rem; font-weight: 650; text-align: left; transition: color .2s ease, gap .2s ease; }
.case-link:hover { color: var(--cyan); gap: 36px; }
.case-link span { color: var(--cyan); font-size: 1.1rem; }
.case-preview { min-width: 0; }
.vallacorp-preview { display: flex; flex-direction: column; justify-content: center; padding: clamp(25px, 4vw, 58px); background: #e9efef; color: var(--navy-900); }
.preview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid #c9d5d8; color: #48677b; font-size: .75rem; font-weight: 650; letter-spacing: .04em; }
.preview-dots { display: flex; gap: 5px; }
.preview-dots i { width: 6px; height: 6px; border-radius: 50%; background: #9cb3be; }
.cost-flow { margin-block: 60px 54px; display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1.1fr); align-items: center; }
.cost-inputs { display: grid; gap: 10px; }
.cost-inputs span { padding: 20px; border: 1px solid #cad6d9; background: #f9fbfa; color: #496477; font-size: .92rem; }
.flow-line { height: 1px; background: #80bcc4; position: relative; }
.flow-line::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid #65a8b3; border-right: 1px solid #65a8b3; transform: rotate(45deg); }
.cost-result { display: grid; min-height: 238px; place-content: center; gap: 12px; padding: 25px; border: 1px solid #86bfc6; background: #dae9e9; text-align: center; }
.cost-result span { color: #587483; font-size: .8rem; }
.cost-result strong { max-width: 200px; color: #173a4e; font-size: clamp(1.2rem, 1.6vw, 1.8rem); font-weight: 560; letter-spacing: -.04em; line-height: 1.2; }
.preview-note { margin: 0; color: #647e8b; font-size: .73rem; line-height: 1.5; }
.case-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.case-secondary { display: flex; flex-direction: column; background: var(--navy-850); }
.secondary-preview { height: 280px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: #20394f; }
.preview-head { display: flex; justify-content: space-between; gap: 15px; color: #c2d7df; font-size: .72rem; letter-spacing: .055em; }
.order-preview { background: radial-gradient(circle at 30% 70%, rgba(105, 205, 215, .13), transparent 45%), #1b3549; }
.order-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-block: 20px; }
.order-flow span { padding: 12px 10px; border: 1px solid rgba(144, 205, 212, .33); color: #e0eff0; font-size: clamp(.67rem, .8vw, .78rem); }
.order-flow b { color: var(--cyan); font-size: .84rem; font-weight: 400; }
.secondary-preview .preview-note { color: #9fb8c6; }
.stack-preview { background: radial-gradient(circle at 70% 90%, rgba(116, 197, 217, .11), transparent 50%), #203148; }
.stack-preview svg { width: 100%; height: 155px; }
.secondary-body { flex: 1; padding: clamp(30px, 3.5vw, 52px); display: flex; flex-direction: column; align-items: flex-start; }
.secondary-body .case-kicker { margin-bottom: 24px; }
.secondary-body h3 { min-height: 2.1em; margin-bottom: 25px; font-size: clamp(2.15rem, 3vw, 3.35rem); }
.secondary-body .case-evidence { margin-top: auto; }
.case-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 30px; }
.case-link-muted { color: var(--silver); border-bottom-color: var(--line); }

.contact { padding-block: clamp(170px, 19vw, 300px); background: var(--navy-950); }
.contact-inner { max-width: 1060px; }
.contact .section-index { margin-bottom: 43px; }
.contact h2 { max-width: 1040px; margin: 0; font-size: clamp(3rem, 5.6vw, 6.25rem); font-weight: 510; line-height: 1.11; letter-spacing: -.05em; }
.contact h2 em { display: block; }
.contact-email { display: inline-flex; align-items: center; gap: 20px; margin-top: 70px; padding-bottom: 9px; border-bottom: 1px solid var(--cyan); color: var(--white); font-size: clamp(1.18rem, 2vw, 1.75rem); letter-spacing: -.03em; transition: color .2s ease; }
.contact-email:hover { color: var(--cyan); }
.contact-email span { color: var(--cyan); }
.contact-links { display: flex; flex-wrap: wrap; gap: 18px 36px; margin-top: 39px; }
.contact-links :is(a, button) { padding: 0; border: 0; background: none; color: var(--silver); font-size: .92rem; }
.contact-links :is(a, button):hover { color: var(--cyan); }
.contact-links span { padding-left: 8px; color: var(--cyan); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.site-footer .container { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer a:hover { color: var(--cyan); }
.back-link { color: var(--silver); font-size: .9rem; }
.back-link:hover { color: var(--cyan); }
.case-page-main { min-height: calc(100svh - 88px); padding-block: clamp(85px, 12vw, 160px); }
.case-page-main > .eyebrow { margin: 0 0 28px; }
.case-page-main h1 { margin: 0; font-size: clamp(3.5rem, 8vw, 8rem); font-weight: 530; letter-spacing: -.045em; line-height: 1.04; }
.case-page-main h1 span { color: var(--silver); }
.case-page-lead { max-width: 800px; margin: 38px 0 58px; color: var(--silver); font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.6; }
.case-page-status { max-width: 800px; margin-bottom: 45px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-page-status .eyebrow { margin: 0 0 10px; }
.case-page-status p:last-child { margin: 0; color: var(--silver); line-height: 1.7; }

.pending-dialog { width: min(420px, calc(100% - 36px)); padding: 34px; border: 1px solid var(--line); background: var(--navy-800); color: var(--paper); box-shadow: 0 25px 90px rgba(0,0,0,.45); }
.pending-dialog::backdrop { background: rgba(4, 13, 22, .75); }
.pending-dialog > div { position: relative; }
.pending-dialog .eyebrow { margin: 0 0 15px; }
.pending-dialog h2 { margin: 0 0 15px; font-size: 2rem; letter-spacing: -.05em; }
.pending-dialog .dialog-message { margin: 0; color: var(--silver); line-height: 1.6; }
.dialog-close { position: absolute; top: -17px; right: -16px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--white); font-size: 1.7rem; }
.reveal { opacity: 1; }
.js-motion .reveal.is-visible { animation: reveal-rise .7s ease both; }
@keyframes reveal-rise { from { opacity: .55; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .hero-copy { width: min(62%, 620px); }
  .hero h1 { font-size: clamp(4.6rem, 7vw, 6.25rem); }
  .hero-role { font-size: clamp(1.75rem, 2.8vw, 2.25rem); }
  .approach .container { grid-template-columns: 1fr; gap: 37px; }
  .principle, .principle:nth-child(4), .principle:nth-child(5) { min-height: 0; }
  .section-heading { grid-template-columns: 1fr 2fr; }
  .section-heading > p:last-child { grid-column: 2; max-width: 450px; margin-top: 0; }
  .case-featured { grid-template-columns: 1fr 1fr; }
  .cost-flow { grid-template-columns: 1fr; gap: 16px; margin-block: 32px; }
  .flow-line { display: none; }
  .cost-inputs { grid-template-columns: repeat(3, 1fr); }
  .cost-inputs span { padding: 12px 6px; text-align: center; font-size: .7rem; }
  .cost-result { min-height: 170px; }
  .order-flow { gap: 6px; }
  .order-flow span { padding: 8px 6px; }
}

@media (max-width: 760px) {
  :root { --gutter: 24px; --section-space: 108px; }
  html { scroll-padding-top: 70px; }
  .nav-shell, body:not(.case-page) .nav-shell { min-height: 70px; }
  body:not(.case-page) .brand { font-size: 1.85rem; }
  .menu-toggle { width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0; border: 1px solid var(--line); background: transparent; }
  .menu-toggle span { width: 20px; height: 1px; background: var(--white); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav { display: none; position: absolute; top: 69px; left: 0; right: 0; padding: 17px var(--gutter) 25px; border-bottom: 1px solid var(--line); background: var(--navy-900); flex-direction: column; align-items: stretch; gap: 0; }
  body:not(.case-page) .main-nav { left: 0; transform: none; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; font-size: 1rem; }
  .hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 40px; padding-top: 112px; padding-bottom: 54px; }
  .hero-copy { width: 100%; }
  .hero-location { margin-bottom: 22px; }
  .hero h1 { font-size: clamp(3.9rem, 10vw, 5.6rem); }
  .hero-role { max-width: 570px; margin-top: 26px; font-size: clamp(1.55rem, 4.7vw, 2.05rem); }
  .hero-intro { margin-top: 30px; }
  .hero-thesis { margin-top: 25px; }
  .hero-actions { margin-top: 28px; }
  .hero-visual { position: relative; z-index: 0; top: auto; bottom: auto; left: auto; right: auto; flex: none; width: calc(100% + var(--gutter) * 2); height: min(93vw, 500px); min-height: 320px; margin-inline: calc(-1 * var(--gutter)); }
  .hero-visual img { object-position: center 48%; }
  .hero-visual::after { background: linear-gradient(0deg, rgba(7,27,44,.5), transparent 30%); }
  .portrait-caption { right: var(--gutter); bottom: 21px; }
  .explore { display: none; }
  .approach { padding-block: 72px; }
  .approach .container { display: block; }
  .approach-heading { margin-bottom: 38px; }
  .approach-heading h2 { font-size: clamp(2.7rem, 7vw, 3.7rem); }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(4), .principle:nth-child(5) { grid-column: 1; min-height: 0; display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; padding: 19px 0; border-left: 0; border-top: 1px solid var(--line); }
  .principle:first-child { padding-left: 0; border-top: 1px solid var(--line); }
  .principle-number { grid-row: 1 / 3; }
  .principle h3 { margin: 0 0 10px; font-size: 1.12rem; }
  .principle p { max-width: 590px; font-size: 1rem; }
  .section-heading { display: block; margin-bottom: 62px; }
  .section-heading .section-index { margin: 0 0 30px; }
  .section-heading h2 { font-size: clamp(3.2rem, 8vw, 5.5rem); }
  .section-heading > p:last-child { max-width: 500px; margin-top: 25px; }
  .journey { padding-block: 68px 75px; }
  .timeline { grid-template-columns: 1fr; gap: 39px; padding-left: 27px; }
  .timeline::before { left: 0; right: auto; top: 0; bottom: 0; height: auto; border-top: 0; border-left: 1px solid var(--line); }
  .timeline-image { height: clamp(180px, 43vw, 260px); }
  .timeline-meta { height: 63px; }
  .timeline-point { left: -33px; top: 25px; }
  .timeline-meta > span:last-child { padding-top: 0; }
  .timeline-item h3, .timeline-item p { max-width: 600px; }
  .case-featured { grid-template-columns: 1fr; }
  .case-copy { padding: 38px 32px 42px; }
  .vallacorp-preview { min-height: 400px; }
  .cost-flow { grid-template-columns: 1fr 35px 1fr; gap: 0; }
  .cost-inputs { grid-template-columns: 1fr; }
  .cost-inputs span { padding: 15px; text-align: left; font-size: .85rem; }
  .flow-line { display: block; }
  .cost-result { min-height: 230px; }
  .case-grid { grid-template-columns: 1fr; }
  .secondary-body h3 { min-height: 0; }
  .secondary-preview { height: 285px; }
  .contact { padding-block: 160px; }
  .contact .section-index { margin-bottom: 34px; }
  .contact h2 { font-size: clamp(2.8rem, 7.4vw, 4.7rem); }
}

@media (max-width: 520px) {
  :root { --gutter: 20px; --section-space: 91px; }
  .case-page .brand { font-size: .94rem; }
  .hero { padding-top: 105px; gap: 34px; }
  .hero h1 { font-size: clamp(3.45rem, 13vw, 4.35rem); }
  .hero-role { margin-top: 24px; font-size: 1.5rem; }
  .hero-intro { margin-top: 27px; padding-left: 17px; font-size: 1.06rem; }
  .hero-thesis, .hero-actions { margin-left: 20px; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero-actions .button { min-width: 0; padding-inline: 12px; gap: 9px; font-size: .83rem; }
  .hero-visual { min-height: 310px; height: 93vw; }
  .approach-heading h2 { font-size: clamp(2.65rem, 10vw, 3.35rem); }
  .section-heading h2 { font-size: clamp(2.9rem, 12vw, 4rem); }
  .timeline { gap: 36px; }
  .timeline-item h3 { font-size: 1.5rem; }
  .timeline-item p { font-size: 1rem; line-height: 1.6; }
  .case-copy, .secondary-body { padding: 32px 23px 38px; }
  .case h3 { font-size: 2.65rem; }
  .secondary-body h3 { font-size: 2.45rem; }
  .vallacorp-preview { min-height: 355px; padding: 22px; }
  .cost-flow { grid-template-columns: 1fr; margin-block: 25px; }
  .cost-inputs { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .cost-inputs span { padding: 10px 4px; text-align: center; font-size: .63rem; }
  .flow-line { display: none; }
  .cost-result { min-height: 140px; margin-top: 9px; }
  .secondary-preview { height: 250px; padding: 20px; }
  .order-flow { gap: 5px; }
  .order-flow span { font-size: .63rem; }
  .stack-preview svg { height: 130px; }
  .contact { padding-block: 135px; }
  .contact h2 { font-size: clamp(2.7rem, 10vw, 3.8rem); }
  .contact-email { margin-top: 55px; font-size: clamp(1rem, 4.9vw, 1.35rem); overflow-wrap: anywhere; }
  .site-footer .container { min-height: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js-motion .reveal.is-visible { animation: none; }
}
