@layer reset, tokens, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, blockquote, ol { margin: 0; }
  ol { padding: 0; list-style: none; }
  img, svg { display: block; }
  a { color: inherit; text-decoration: none; }
}

@layer tokens {
  :root {
    --ink: #18201b;
    --ink-soft: #3f4b44;
    --forest: #151a17;
    --moss: #5e735d;
    --lime: #d8ee85;
    --paper: #f2f0e8;
    --white: #f8f8f4;
    --line: rgba(24, 32, 27, 0.18);
    --line-light: rgba(248, 248, 244, 0.24);
    --font-sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --content: min(100% - 48px, 1440px);
    --space-section: clamp(6rem, 12vw, 11rem);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@layer base {
  body {
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  :focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
  .skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; transform: translateY(-160%); background: var(--white); color: var(--forest); padding: .75rem 1rem; transition: transform .25s var(--ease-out); }
  .skip-link:focus { transform: translateY(0); }
}

@layer components {
  .site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
    width: var(--content);
    margin-inline: auto;
    padding-block: 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--line-light);
    color: var(--white);
  }
  .brand { display: inline-flex; align-items: center; gap: .72rem; width: max-content; font-weight: 650; letter-spacing: .19em; font-size: .84rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  .brand-mark path { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: square; stroke-linejoin: miter; }
  .desktop-nav { display: flex; gap: clamp(1.5rem, 3vw, 3rem); font-size: .78rem; letter-spacing: .08em; }
  .desktop-nav a, .header-contact { opacity: .76; transition: opacity .25s var(--ease-out); }
  .desktop-nav a:hover, .header-contact:hover { opacity: 1; }
  .header-contact { justify-self: end; font-size: .82rem; letter-spacing: .04em; }
  .menu-toggle, .mobile-menu { display: none; }

  .hero { position: relative; min-height: 100dvh; overflow: hidden; background: var(--forest); color: var(--white); isolation: isolate; }
  .hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; animation: hero-scale 1.8s var(--ease-out) both; }
  .hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,20,17,.9) 0%, rgba(15,20,17,.56) 43%, rgba(15,20,17,.1) 72%, rgba(15,20,17,.22) 100%); }
  .hero-grid { width: var(--content); min-height: 100dvh; margin-inline: auto; padding: clamp(9rem, 16vh, 12rem) 0 clamp(3rem, 7vh, 5rem); display: grid; grid-template-columns: minmax(0, .92fr) minmax(17rem, .58fr); grid-template-rows: auto 1fr auto; column-gap: 7vw; align-items: end; }
  .eyebrow { grid-column: 1; align-self: start; padding-top: 4vh; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(248,248,244,.72); animation: rise .9s .25s var(--ease-out) both; }
  h1 { grid-column: 1 / -1; align-self: center; max-width: 11ch; font-family: var(--font-display); font-weight: 420; font-size: clamp(3.8rem, 8.7vw, 8.8rem); line-height: .87; letter-spacing: -.068em; text-wrap: balance; animation: rise 1.1s .1s var(--ease-out) both; }
  h1 em { font-weight: 300; color: var(--lime); }
  .hero-copy { grid-column: 1; max-width: 37rem; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; color: rgba(248,248,244,.76); animation: rise .9s .4s var(--ease-out) both; }
  .button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; width: max-content; min-width: 14rem; min-height: 3.6rem; padding: .95rem 1.1rem .95rem 1.25rem; font-size: .76rem; font-weight: 600; letter-spacing: .08em; transition: transform .35s var(--ease-out), background-color .35s var(--ease-out), color .35s var(--ease-out); }
  .button svg { width: 1.15rem; height: 1.15rem; }
  .button svg path { fill: none; stroke: currentColor; stroke-width: 1.4; }
  .button-light { grid-column: 2; justify-self: end; background: var(--white); color: var(--forest); animation: rise .9s .52s var(--ease-out) both; }
  .button:hover { transform: translateY(-3px); }
  .button:active { transform: translateY(-1px) scale(.985); }
  .hero-index { position: absolute; right: max(24px, calc((100vw - 1440px) / 2)); top: 50%; display: flex; flex-direction: column; align-items: center; gap: .8rem; color: rgba(248,248,244,.6); font-size: .62rem; letter-spacing: .1em; }
  .hero-index .line { width: 1px; height: 5rem; }
  .hero-index .line path { fill: none; stroke-width: 1; }
  .hero-index .line-active { stroke: var(--white); }
  .hero-index .line-rest { stroke: rgba(255,255,255,.25); }

  .intro { width: var(--content); margin-inline: auto; padding-block: var(--space-section); border-bottom: 1px solid var(--line); }
  .section-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--moss); }
  .intro-lead { display: grid; grid-template-columns: 1.6fr .72fr; gap: 8vw; align-items: end; margin-top: clamp(2.5rem, 6vw, 5rem); }
  .intro h2 { max-width: 12ch; font-family: var(--font-display); font-size: clamp(3.1rem, 6.6vw, 7.2rem); font-weight: 430; letter-spacing: -.06em; line-height: .94; }
  .intro-lead > p { max-width: 34rem; padding-bottom: .6rem; color: var(--ink-soft); font-size: clamp(1rem, 1.25vw, 1.18rem); }

  .services { width: var(--content); margin-inline: auto; }
  .service-row { display: grid; grid-template-columns: .18fr 1.45fr .34fr; gap: 3vw; align-items: center; min-height: 12.5rem; padding-block: 2rem; border-bottom: 1px solid var(--line); }
  .service-number { align-self: start; padding-top: .55rem; font-size: .68rem; letter-spacing: .12em; color: var(--moss); }
  .service-row h3 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 4.5rem); font-weight: 430; letter-spacing: -.05em; line-height: 1; }
  .service-row p { max-width: 37rem; margin-top: 1rem; color: var(--ink-soft); }
  .service-icon { justify-self: end; width: clamp(3.8rem, 6vw, 5.4rem); height: auto; color: var(--moss); transition: transform .55s var(--ease-out); }
  .service-icon path { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
  .service-row:hover .service-icon { transform: rotate(-5deg) scale(1.05); }

  .approach { display: grid; grid-template-columns: minmax(18rem, .82fr) minmax(0, 1.18fr); gap: clamp(3rem, 8vw, 9rem); width: var(--content); margin-inline: auto; padding-block: var(--space-section); }
  .approach-media { align-self: start; position: sticky; top: 2rem; }
  .approach-media img { width: 100%; height: min(68vh, 48rem); object-fit: cover; filter: saturate(.72) contrast(1.03); }
  .approach-media p { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; max-width: 29rem; margin-top: 1.4rem; color: var(--ink-soft); font-size: .86rem; }
  .approach-media p::before { content: ""; width: 2.5rem; height: 1px; margin-top: .65rem; background: var(--moss); }
  .approach-content { padding-top: 3vw; }
  .approach h2 { max-width: 10ch; margin-top: 2.5rem; font-family: var(--font-display); font-size: clamp(3rem, 5.8vw, 6.6rem); font-weight: 430; letter-spacing: -.06em; line-height: .92; }
  .steps { margin-top: clamp(4rem, 7vw, 7rem); }
  .steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1.3rem; padding: 2rem 0; border-top: 1px solid var(--line); }
  .steps li > span { padding-top: .25rem; color: var(--moss); font-size: .7rem; letter-spacing: .12em; }
  .steps h3 { font-family: var(--font-display); font-size: clamp(1.45rem, 2.2vw, 2.25rem); font-weight: 480; letter-spacing: -.035em; }
  .steps p { max-width: 34rem; margin-top: .6rem; color: var(--ink-soft); }

  .principle { position: relative; overflow: hidden; background: var(--forest); color: var(--white); padding: var(--space-section) max(24px, calc((100vw - 1440px) / 2)); }
  .principle-line { position: absolute; inset: 0 auto 0 31%; width: 1px; background: rgba(248,248,244,.1); }
  .principle .section-label { color: var(--lime); }
  .principle blockquote { max-width: 12.5ch; margin: clamp(3rem, 7vw, 6rem) auto 0; font-family: var(--font-display); font-size: clamp(3rem, 6.4vw, 7rem); font-weight: 360; letter-spacing: -.058em; line-height: .94; }
  .principle-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; width: 69%; margin: clamp(4rem, 8vw, 8rem) 0 0 auto; padding-top: 1.2rem; border-top: 1px solid var(--line-light); color: rgba(248,248,244,.64); font-size: .76rem; letter-spacing: .04em; }

  .contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; width: var(--content); margin-inline: auto; padding-block: var(--space-section); }
  .contact h2 { margin-top: 2.5rem; font-family: var(--font-display); font-size: clamp(3.4rem, 6.8vw, 7.4rem); font-weight: 430; letter-spacing: -.065em; line-height: .9; }
  .contact-copy > p:last-child { max-width: 35rem; margin-top: 2.5rem; color: var(--ink-soft); }
  .contact-actions { align-self: end; border-top: 1px solid var(--line); }
  .contact-link { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; align-items: start; padding: 1.7rem 0; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease-out), color .35s var(--ease-out); }
  .contact-link:hover { padding-left: .75rem; color: var(--moss); }
  .contact-link > span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); }
  .contact-link strong { font-size: clamp(1rem, 1.5vw, 1.28rem); font-weight: 500; word-break: break-word; }
  .contact-link svg { width: 1.2rem; height: 1.2rem; }
  .contact-link svg path { fill: none; stroke: currentColor; stroke-width: 1.3; }

  .site-footer { background: #0d110f; color: var(--white); padding: 4rem max(24px, calc((100vw - 1440px) / 2)) 1.5rem; }
  .site-footer .brand-mark path { fill: none; stroke: currentColor; stroke-width: 1.35; }
  .footer-top { display: grid; grid-template-columns: .7fr 1.4fr .5fr; gap: 3rem; align-items: start; padding-bottom: clamp(4rem, 8vw, 8rem); }
  .footer-top > p { max-width: 32rem; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 3.4rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; color: rgba(248,248,244,.8); }
  .back-top { justify-self: end; display: flex; align-items: center; gap: .8rem; font-size: .76rem; letter-spacing: .06em; color: rgba(248,248,244,.66); }
  .back-top svg, .legal-back svg { width: 1rem; height: 1rem; }
  .back-top path, .legal-back path { fill: none; stroke: currentColor; stroke-width: 1.2; }
  .footer-bottom { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 2rem; align-items: end; padding-top: 1.5rem; border-top: 1px solid rgba(248,248,244,.13); color: rgba(248,248,244,.48); font-size: .66rem; letter-spacing: .06em; }
  .footer-bottom nav { display: flex; gap: 1.5rem; }
  .footer-bottom a { transition: color .25s ease; }
  .footer-bottom a:hover { color: var(--white); }

  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
  .js .reveal.is-visible { opacity: 1; transform: translateY(0); }

  .legal-page { background: var(--paper); }
  .legal-header { width: var(--content); margin-inline: auto; padding-block: 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .legal-back { display: flex; gap: .7rem; align-items: center; color: var(--ink-soft); font-size: .76rem; letter-spacing: .06em; }
  .legal-main { width: var(--content); margin-inline: auto; padding: clamp(5rem, 10vw, 9rem) 0 var(--space-section); }
  .legal-title { display: grid; grid-template-columns: 1fr 2fr; column-gap: 4rem; align-items: end; padding-bottom: clamp(4rem, 8vw, 7rem); }
  .legal-title .section-label { align-self: start; padding-top: .9rem; }
  .legal-title h1 { grid-column: 2; max-width: none; color: var(--ink); font-size: clamp(4rem, 9vw, 9rem); animation: none; }
  .legal-title > p:last-child { grid-column: 2; margin-top: 2rem; color: var(--ink-soft); font-size: .78rem; letter-spacing: .05em; }
  .legal-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }
  .legal-grid aside { align-self: start; position: sticky; top: 2rem; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
  .legal-grid aside a { padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .76rem; letter-spacing: .03em; transition: color .2s ease, padding-left .2s ease; }
  .legal-grid aside a:hover { padding-left: .35rem; color: var(--ink); }
  .legal-copy section { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1.5rem; padding: 2.3rem 0 clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line); scroll-margin-top: 2rem; }
  .legal-copy section > span { padding-top: .5rem; color: var(--moss); font-size: .7rem; letter-spacing: .12em; }
  .legal-copy h2 { grid-column: 2; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 4rem); font-weight: 430; letter-spacing: -.05em; line-height: 1; }
  .legal-copy p, .legal-copy ul, .legal-copy dl { grid-column: 2; max-width: 48rem; }
  .legal-copy p { margin-top: 1.5rem; color: var(--ink-soft); line-height: 1.75; }
  .legal-copy a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
  .legal-copy ul { margin: 1.5rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); }
  .legal-copy li { margin-top: .8rem; padding-left: .4rem; line-height: 1.7; }
  .legal-copy strong { color: var(--ink); font-weight: 600; }
  .company-data { display: grid; grid-template-columns: 10rem 1fr; margin-top: 1.75rem; border-top: 1px solid var(--line); }
  .company-data dt, .company-data dd { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .company-data dt { color: var(--moss); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
  .company-data dd { margin: 0; font-weight: 520; overflow-wrap: anywhere; }
  .legal-footer { display: flex; justify-content: space-between; gap: 2rem; width: var(--content); margin-inline: auto; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .68rem; letter-spacing: .05em; }
  .legal-footer nav { display: flex; gap: 1.5rem; }

  .not-found { background: var(--forest); color: var(--white); }
  .not-found main { width: var(--content); min-height: 100dvh; margin-inline: auto; padding: 2rem 0 4rem; display: flex; flex-direction: column; justify-content: space-between; }
  .not-found main > div { padding-top: 5rem; }
  .not-found h1 { max-width: 12ch; margin: 2rem 0 3rem; font-size: clamp(3.5rem, 8vw, 8rem); animation: none; }
  .not-found .section-label { color: var(--lime); }
  .not-found .button { background: var(--white); color: var(--forest); }
}

@layer utilities {
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes hero-scale { from { opacity: .2; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
  @media (max-width: 760px) {
    :root { --content: min(100% - 32px, 1440px); }
    .site-header { grid-template-columns: 1fr auto; }
    .desktop-nav, .header-contact { display: none; }
    .menu-toggle { position: relative; z-index: 12; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; padding: 0; border: 1px solid var(--line-light); border-radius: 50%; background: transparent; color: inherit; }
    .menu-toggle svg { width: 1.2rem; height: 1.2rem; }
    .menu-toggle path { fill: none; stroke: currentColor; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease-out); }
    .menu-toggle[aria-expanded="true"] .menu-top { transform: translateY(3px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-bottom { transform: translateY(-3px) rotate(-45deg); }
    .mobile-menu { position: fixed; inset: 0; z-index: 11; display: flex; flex-direction: column; justify-content: space-between; padding: 8rem 1rem 2rem; background: var(--forest); color: var(--white); }
    .mobile-menu[hidden] { display: none; }
    .mobile-menu nav { display: flex; flex-direction: column; }
    .mobile-menu nav a { padding: .8rem 0; font-family: var(--font-display); font-size: 3.2rem; letter-spacing: -.05em; border-bottom: 1px solid var(--line-light); }
    .mobile-menu-contact { display: flex; flex-direction: column; gap: .6rem; color: rgba(248,248,244,.65); font-size: .85rem; }
    .hero-grid { grid-template-columns: 1fr; padding-top: 8rem; }
    .hero-shade { background: linear-gradient(90deg, rgba(15,20,17,.87), rgba(15,20,17,.36)), linear-gradient(0deg, rgba(15,20,17,.75), transparent 55%); }
    h1 { font-size: clamp(3.4rem, 17vw, 5.4rem); max-width: 9ch; }
    .hero-copy { grid-column: 1; max-width: 28rem; }
    .button-light { grid-column: 1; justify-self: start; margin-top: 1.5rem; }
    .hero-index { display: none; }
    .intro-lead { grid-template-columns: 1fr; gap: 2rem; }
    .service-row { grid-template-columns: 2.3rem 1fr; min-height: 0; padding-block: 2.25rem; }
    .service-icon { display: none; }
    .service-row h3 { font-size: 2.25rem; }
    .approach { grid-template-columns: 1fr; }
    .approach-media { position: static; }
    .approach-media img { height: min(120vw, 38rem); }
    .approach-content { padding-top: 2rem; }
    .principle-line { left: 1rem; }
    .principle blockquote { margin-left: 0; font-size: clamp(3rem, 14vw, 4.7rem); }
    .principle-notes { grid-template-columns: 1fr; width: 100%; }
    .contact { grid-template-columns: 1fr; }
    .contact-link { grid-template-columns: 3.3rem 1fr auto; }
    .footer-top, .footer-bottom { grid-template-columns: 1fr; }
    .back-top { justify-self: start; }
    .footer-bottom nav { flex-wrap: wrap; }
    .legal-title, .legal-grid { grid-template-columns: 1fr; }
    .legal-title h1, .legal-title > p:last-child { grid-column: 1; }
    .legal-title h1 { margin-top: 2rem; font-size: clamp(3.5rem, 18vw, 5.5rem); }
    .legal-grid aside { display: none; }
    .legal-copy section { grid-template-columns: 2.3rem 1fr; column-gap: .9rem; }
    .legal-copy h2, .legal-copy p, .legal-copy ul, .legal-copy dl { grid-column: 2; }
    .company-data { grid-template-columns: 1fr; }
    .company-data dt { padding-bottom: .2rem; border-bottom: 0; }
    .company-data dd { padding-top: .2rem; }
    .legal-footer { flex-direction: column; }
  }
}
