:root {
  --blue: #156082;
  --blue-dark: #0c435e;
  --blue-deep: #082f45;
  --orange: #e97132;
  --ink: #17242b;
  --muted: #56656d;
  --paper: #f7f8f7;
  --warm: #f2eee9;
  --white: #ffffff;
  --line: rgba(21, 96, 130, 0.2);
  --container: min(1180px, calc(100vw - 72px));
  --header-height: 92px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.035em; }
h1 { font-size: clamp(3.7rem, 8vw, 7.8rem); font-weight: 450; }
h2 { font-size: clamp(2.7rem, 5.4vw, 5.6rem); font-weight: 450; }
h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 600; }

.container { width: var(--container); margin-inline: auto; }
.scene { position: relative; overflow: clip; }
.section { min-height: 100svh; padding: clamp(120px, 14vw, 190px) 0; display: flex; align-items: center; }
.section--light { background: var(--paper); }
.section--warm { background: var(--warm); }
.section--blue { color: var(--white); background: var(--blue-deep); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 16px;
  left: 16px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--blue-deep);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.eyebrow {
  margin-bottom: 26px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow--light { color: #ff9b61; }
.lead { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.45; }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: transparent;
  transition: background-color .35s ease, box-shadow .35s ease, height .35s ease, backdrop-filter .35s ease;
}

.site-header.is-scrolled,
.site-header--solid {
  height: 74px;
  background: rgba(247, 248, 247, .97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(21, 96, 130, .12);
}

.brand { position: relative; z-index: 102; width: 290px; aspect-ratio: 900 / 160; flex: 0 0 auto; }
.brand-logo { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s ease; }
.brand-logo--on-dark { opacity: 1; }
.brand-logo--on-light { opacity: 0; }
.site-header.is-scrolled .brand-logo--on-dark,
.site-header--solid .brand-logo--on-dark { opacity: 0; }
.site-header.is-scrolled .brand-logo--on-light,
.site-header--solid .brand-logo--on-light { opacity: 1; }

.main-nav { position: relative; z-index: 1; display: flex; align-items: center; gap: 32px; }
.main-nav a {
  position: relative;
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  inset: auto 0 -9px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.site-header.is-scrolled .main-nav a:not(.nav-contact),
.site-header--solid .main-nav a:not(.nav-contact) { color: var(--ink); }

.nav-contact {
  padding: 10px 18px;
  color: var(--white) !important;
  background: var(--orange);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.site-header.is-scrolled .nav-contact,
.site-header--solid .nav-contact { background: var(--blue); }

.scroll-progress { position: absolute; z-index: 2; inset: auto 0 0; height: 2px; overflow: hidden; }
.scroll-progress span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; will-change: transform; }
.menu-toggle { display: none; }

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(125deg, var(--blue-deep), var(--blue) 65%, #247b9f);
}

.hero-content { position: relative; z-index: 2; padding: 150px 0 90px; }
.hero h1 { max-width: 1050px; margin-bottom: 36px; }
.hero h1 em { position: relative; color: var(--white); font-weight: 650; }
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: -30px;
  bottom: -.04em;
  height: .055em;
  background: linear-gradient(90deg, var(--orange), rgba(233, 113, 50, 0));
}

.hero-intro { max-width: 770px; margin-bottom: 44px; color: rgba(255,255,255,.82); font-size: clamp(1.16rem, 2vw, 1.52rem); }
.hero-actions { display: flex; align-items: center; gap: 34px; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 26px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s ease;
}

.button--primary { color: var(--blue-deep); background: var(--white); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.button:hover, .button:focus-visible { transform: translateY(-3px); }

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--white);
  font-weight: 650;
  text-decoration-color: rgba(255,255,255,.38);
  text-underline-offset: 7px;
}

.text-link span { color: var(--orange); transition: transform .2s ease; }
.text-link:hover span, .text-link:focus-visible span { transform: translate(3px, -3px); }
.text-link--blue { margin-top: 16px; color: var(--blue); text-decoration-color: rgba(21,96,130,.25); }

.hero-art { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.hero-plane { position: absolute; display: block; transform: skewX(-12deg); }
.hero-plane--one { width: 38vw; height: 135vh; right: -12vw; top: -18vh; background: rgba(255,255,255,.055); }
.hero-plane--two { width: 16vw; height: 90vh; right: 21vw; bottom: -55vh; background: rgba(255,255,255,.04); }
.hero-line { position: absolute; width: 48vw; height: 3px; right: -7vw; top: 38%; background: linear-gradient(90deg, var(--orange), transparent); transform: rotate(-12deg); opacity: .7; }

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: 42px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
  transform: rotate(90deg) translateX(-100%);
  transform-origin: right bottom;
}

.scroll-cue i { width: 70px; height: 1px; background: rgba(255,255,255,.45); }

.section-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(70px, 10vw, 150px); align-items: start; }
.section-heading h2 { max-width: 680px; }
.section-heading--wide { max-width: 900px; margin-bottom: 70px; }
.section-heading--wide > p:last-child { max-width: 700px; color: rgba(255,255,255,.68); font-size: 1.15rem; }

.value-list { margin: 50px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.value-list li {
  position: relative;
  padding: 25px 0 25px 72px;
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid var(--line);
}
.value-list li > span { position: absolute; left: 0; top: 29px; color: var(--orange); font-size: .74rem; font-weight: 700; }
.value-list strong { font-size: 1.18rem; }
.value-list p { margin: 0; color: var(--muted); }

.section--blue::before {
  content: "";
  position: absolute;
  width: 45vw;
  height: 130%;
  right: -26vw;
  top: -15%;
  border-left: 1px solid rgba(255,255,255,.1);
  transform: skewX(-10deg);
}

.expertise-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.18); }
.expertise-list li {
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  font-size: clamp(1.3rem, 2.6vw, 2.35rem);
  line-height: 1.2;
  transition: padding .35s var(--ease), color .25s ease;
}
.expertise-list li:hover { padding-left: 20px; color: #ffc09b; }
.expertise-list i { color: rgba(255,255,255,.38); font-size: .7rem; font-style: normal; letter-spacing: .1em; }

.worlds { min-height: 110svh; color: var(--white); background: var(--blue); }
.worlds-background { position: absolute; inset: 0; background: linear-gradient(110deg, var(--blue-deep) 0 48%, var(--blue) 48%); }
.worlds-background span { position: absolute; width: 12px; height: 120%; left: 48%; top: -10%; background: var(--orange); transform: skewX(-8deg); opacity: .9; }
.worlds-content { position: relative; z-index: 2; }
.worlds-content .section-heading { max-width: 800px; margin-bottom: 90px; }
.worlds-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(80px, 14vw, 190px); }
.worlds-columns article { max-width: 460px; }
.worlds-columns h3 { color: #ffae7d; }
.worlds-columns p { color: rgba(255,255,255,.75); }
.worlds-conclusion { max-width: 850px; margin: 90px auto 0; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.25); font-size: clamp(1.25rem, 2.4vw, 2rem); text-align: center; }

.cases { border-top: 1px solid rgba(23,36,43,.18); }
.case {
  padding: 36px 0;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: clamp(50px, 9vw, 120px);
  border-bottom: 1px solid rgba(23,36,43,.18);
}
.case span { display: block; margin-bottom: 12px; color: var(--orange); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.case h3 { margin-bottom: 0; font-size: clamp(1.45rem, 2.4vw, 2.2rem); }
.case p { margin: 4px 0 0; color: #4f5d63; }

.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(70px, 10vw, 150px); align-items: center; }
.portrait-wrap { position: relative; min-height: 620px; }
.portrait-wrap picture { position: absolute; z-index: 2; inset: 0 4% 0 0; overflow: hidden; clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%); }
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
.portrait-wrap > span { position: absolute; z-index: 1; width: 75%; height: 92%; right: 0; top: 8%; background: var(--orange); clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
.about-copy h2 { max-width: 620px; }
.about-copy > p:not(.eyebrow) { max-width: 670px; color: var(--muted); }

.contact {
  min-height: 88svh;
  padding: 150px 0;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--blue-deep);
}
.contact-art { position: absolute; width: 48vw; height: 140%; right: -20vw; top: -20%; background: var(--blue); transform: skewX(-12deg); opacity: .4; }
.contact-content { position: relative; z-index: 2; }
.contact h2 { max-width: 1000px; margin-bottom: 35px; }
.contact h2 em { color: #ff9b61; font-weight: 650; }
.contact-content > p:not(.eyebrow) { max-width: 700px; color: rgba(255,255,255,.72); font-size: 1.25rem; }
.contact-email {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 46px;
  color: var(--white);
  font-size: clamp(1.5rem, 3.8vw, 3.4rem);
  font-weight: 500;
  line-height: 1.2;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 12px;
}
.contact-email span { color: var(--orange); }
.contact-meta { margin-top: 70px; display: flex; gap: 36px; color: rgba(255,255,255,.65); font-size: .9rem; }
.contact-meta a { color: var(--white); text-underline-offset: 5px; }

.site-footer { padding: 25px 0; color: rgba(255,255,255,.65); background: #061f2d; font-size: .78rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--white); text-underline-offset: 4px; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.value-list li:nth-child(2), .expertise-list li:nth-child(2), .case:nth-child(2) { transition-delay: .06s; }
.value-list li:nth-child(3), .expertise-list li:nth-child(3), .case:nth-child(3) { transition-delay: .12s; }
.value-list li:nth-child(4), .expertise-list li:nth-child(4), .case:nth-child(4) { transition-delay: .18s; }

.legal-page { background: var(--paper); }
.legal-page .site-header { position: sticky; }
.legal-content { max-width: 840px; padding: 150px 0 110px; }
.legal-content h1 { margin-bottom: 35px; font-size: clamp(3rem, 7vw, 6rem); }
.legal-content h2 { margin: 65px 0 18px; font-size: clamp(1.5rem, 3vw, 2.3rem); }
.legal-content p { color: var(--muted); }
.legal-content a { color: var(--blue); }
.legal-meta { margin-top: 70px; padding-top: 25px; border-top: 1px solid var(--line); font-size: .9rem; }

@media (max-width: 980px) {
  :root { --container: min(100% - 44px, 760px); --header-height: 76px; }
  .site-header { height: var(--header-height); padding: 0 22px; }
  .brand { width: 220px; }
  .menu-toggle {
    position: relative;
    z-index: 102;
    width: 44px;
    height: 44px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
  }
  .menu-toggle > span:not(.sr-only) { width: 24px; height: 2px; background: var(--white); transition: transform .25s ease, opacity .2s ease, background-color .25s ease; }
  .site-header.is-scrolled .menu-toggle > span:not(.sr-only),
  .site-header--solid .menu-toggle > span:not(.sr-only) { background: var(--ink); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header .menu-toggle[aria-expanded="true"] > span:not(.sr-only) { background: var(--ink); }
  .main-nav {
    position: fixed;
    z-index: 101;
    inset: 0;
    padding: 120px 32px 50px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 25px;
    background: rgba(255,255,255,.98);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .3s var(--ease), visibility 0s .3s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); transition-delay: 0s; }
  .main-nav a { font-size: 1.6rem; }
  .site-header .main-nav.is-open a:not(.nav-contact) { color: var(--ink); }
  .nav-contact { margin-top: 12px; padding: 12px 22px; font-size: 1.2rem !important; }
  .section { min-height: auto; padding: 120px 0; }
  .section-grid, .about-grid { grid-template-columns: 1fr; gap: 55px; }
  .section-heading--wide { margin-bottom: 55px; }
  .worlds { min-height: auto; }
  .worlds-background { background: linear-gradient(160deg, var(--blue-deep) 0 48%, var(--blue) 48%); }
  .worlds-background span { left: 50%; transform: rotate(31deg); opacity: .7; }
  .worlds-columns { gap: 70px; }
  .case { grid-template-columns: 1fr; gap: 16px; }
  .portrait-wrap { min-height: min(760px, 95vw); order: 2; }
  .about-copy { order: 1; }
  .contact { min-height: auto; padding: 130px 0; }
}

@media (max-width: 640px) {
  :root { --container: calc(100% - 36px); }
  body { font-size: 16px; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  h2 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .site-header, .site-header.is-scrolled, .site-header--solid { height: 68px; padding: 0 14px; }
  .brand { width: 190px; }
  .hero-content { padding: 120px 0 90px; }
  .hero-intro { font-size: 1.1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 25px; }
  .scroll-cue { display: none; }
  .hero-plane--one { width: 60vw; right: -32vw; }
  .section { padding: 96px 0; }
  .value-list li { padding-left: 42px; grid-template-columns: 1fr; gap: 4px; }
  .value-list li > span { font-size: .65rem; }
  .expertise-list li { font-size: 1.35rem; }
  .worlds-content .section-heading { margin-bottom: 60px; }
  .worlds-columns { grid-template-columns: 1fr; gap: 48px; }
  .worlds-conclusion { margin-top: 60px; text-align: left; }
  .portrait-wrap { min-height: 120vw; }
  .portrait-wrap picture { inset-right: 2%; }
  .contact { padding: 105px 0; }
  .contact-email { max-width: 100%; font-size: 1.28rem; overflow-wrap: anywhere; text-underline-offset: 7px; }
  .contact-meta, .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .contact-meta { margin-top: 50px; }
  .legal-page .site-header .text-link { font-size: .75rem; }
  .legal-content { padding: 100px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .scroll-cue, .hero-art, .contact-art { display: none; }
  .hero, .section, .contact { min-height: auto; padding: 50px 0; color: #000; background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
