:root {
  --black: #111111;
  --paper: #f7f7f5;
  --white: #ffffff;
  --gray: #777777;
  --line: rgba(17, 17, 17, 0.18);
  --line-dark: rgba(255, 255, 255, 0.2);
  --space: clamp(1.25rem, 4vw, 4.5rem);
  --section-y: clamp(5.5rem, 11vw, 10rem);
  --title: "Space Grotesk", Arial, sans-serif;
  --body: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--black); background: var(--paper); font-family: var(--body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.shell { width: min(100%, 1600px); margin-inline: auto; padding-inline: var(--space); }
.skip-link { position: fixed; z-index: 100; top: 0.75rem; left: 0.75rem; transform: translateY(-160%); padding: 0.65rem 1rem; background: var(--white); border: 1px solid var(--black); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 6.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { width: 9.5rem; display: block; }
.brand img { width: 100%; mix-blend-mode: multiply; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.3vw, 2.8rem); font-size: 0.84rem; font-weight: 600; }
.site-nav a { position: relative; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -0.35rem; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 240ms ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 0.7rem 0.9rem; border: 1px solid var(--black); display: inline-flex; align-items: center; gap: 1.5rem; }
.menu-toggle { display: none; background: transparent; border: 0; padding: 0.5rem; text-transform: uppercase; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; }
.menu-icon { width: 1.6rem; display: grid; gap: 0.4rem; }
.menu-icon i { display: block; height: 1px; background: currentColor; transition: transform 200ms ease; }

.hero { min-height: 100svh; padding: 9.5rem 0 4rem; display: grid; align-items: stretch; }
.hero-grid { width: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.eyebrow { display: flex; justify-content: space-between; font-family: var(--title); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; }
.hero h1 { align-self: center; margin: 1.25rem 0 2rem; font-family: var(--title); font-size: clamp(3.9rem, 10.5vw, 11rem); font-weight: 600; line-height: 0.82; letter-spacing: -0.07em; }
.hero-bottom { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero-bottom > p { max-width: 42rem; margin: 0; font-size: clamp(1.05rem, 1.55vw, 1.45rem); line-height: 1.45; }
.hero-actions { display: flex; justify-content: flex-end; align-items: center; gap: 2rem; }
.button { min-height: 3.4rem; padding: 0.85rem 1rem; border: 1px solid transparent; display: inline-flex; justify-content: space-between; align-items: center; gap: 2rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 180ms ease, color 180ms ease, border 180ms ease; }
.button-dark { background: var(--black); color: var(--white); }
.button-dark:hover, .button-dark:focus-visible { background: transparent; color: var(--black); border-color: var(--black); }
.button-light { background: var(--white); color: var(--black); min-width: 13rem; }
.button-light:hover, .button-light:focus-visible { background: transparent; color: var(--white); border-color: var(--white); }
.text-link { font-size: 0.85rem; font-weight: 600; border-bottom: 1px solid currentColor; }

.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.section-dark { color: var(--white); background: var(--black); }
.section-grid { display: grid; grid-template-columns: minmax(12rem, 1fr) 3fr; gap: clamp(2rem, 7vw, 8rem); }
.section-index { margin: 0; font-family: var(--title); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; }
.display-copy { max-width: 65rem; margin: 0; font-family: var(--title); font-size: clamp(2.45rem, 5.5vw, 6rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.055em; }
.two-columns { margin-top: clamp(4rem, 8vw, 8rem); padding-top: 2rem; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 7vw, 8rem); }
.two-columns p { margin: 0; max-width: 34rem; color: rgba(255,255,255,0.75); }
.section-heading { display: grid; grid-template-columns: 1fr 3fr; gap: clamp(2rem, 7vw, 8rem); align-items: start; margin-bottom: clamp(4rem, 8vw, 7rem); }
.section-heading h2 { max-width: 65rem; margin: 0; font-family: var(--title); font-size: clamp(2.4rem, 5vw, 5.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.05em; }

.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 0.45fr 1.6fr 1fr; gap: 2rem; align-items: start; padding: 2.3rem 0; border-bottom: 1px solid var(--line); }
.service-number { font-family: var(--title); font-size: 0.75rem; color: var(--gray); }
.service-row h3 { margin: -0.15rem 0 0; font-family: var(--title); font-size: clamp(1.5rem, 2.8vw, 3rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 500; }
.service-row p { margin: 0; max-width: 30rem; color: #555; }

.process-section { background: var(--white); }
.process-list { margin: clamp(4rem, 8vw, 8rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.process-list li > span { color: var(--gray); font-family: var(--title); font-size: 0.75rem; }
.process-list h3 { margin: 0 0 0.35rem; font-family: var(--title); font-size: 1.35rem; font-weight: 500; }
.process-list p { margin: 0; color: #555; }

.projects-section { background: var(--paper); }
.projects-placeholder { min-height: 24rem; padding: clamp(1.5rem, 4vw, 4rem); border: 1px solid var(--black); display: grid; grid-template-columns: 1fr 2fr; align-content: space-between; gap: 3rem; position: relative; overflow: hidden; }
.projects-placeholder::after { content: "AD"; position: absolute; right: -0.03em; bottom: -0.28em; font-family: var(--title); font-size: clamp(12rem, 31vw, 36rem); font-weight: 600; line-height: 1; letter-spacing: -0.13em; color: transparent; -webkit-text-stroke: 1px rgba(17,17,17,0.13); pointer-events: none; }
.placeholder-label { margin: 0; font-family: var(--title); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; }
.projects-placeholder > p:nth-child(2) { max-width: 45rem; margin: 0; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.35; position: relative; z-index: 1; }
.projects-placeholder > span { grid-column: 1 / -1; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; position: relative; z-index: 1; }

.contact-heading { display: grid; grid-template-columns: 1fr 3fr; gap: 1.5rem clamp(2rem, 7vw, 8rem); }
.contact-heading h2 { margin: 0; font-family: var(--title); font-size: clamp(3rem, 8vw, 9rem); font-weight: 600; line-height: 0.86; letter-spacing: -0.07em; }
.contact-heading > p:last-child { grid-column: 2; max-width: 42rem; margin: 1.5rem 0 0; color: rgba(255,255,255,0.7); font-size: 1.1rem; }
.contact-form { margin-top: clamp(4rem, 8vw, 8rem); padding-top: 2.25rem; border-top: 1px solid var(--line-dark); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.3rem 3rem; }
.field { display: grid; gap: 0.65rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.74); }
.field label span { color: var(--white); }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; padding: 0.35rem 0 0.9rem; background: transparent; color: var(--white); outline: none; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--white); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ffaaa3; }
.honeypot { position: absolute; left: -9999px; }
.form-footer { margin-top: 2rem; display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.form-footer p { margin: 0; max-width: 35rem; color: rgba(255,255,255,0.55); font-size: 0.78rem; }
.form-status { min-height: 1.6rem; margin: 1.5rem 0 0; font-size: 0.88rem; }
.form-status[data-state="success"] { color: #b9f6ca; }
.form-status[data-state="error"] { color: #ffaaa3; }
.button:disabled { opacity: 0.55; cursor: wait; }

.site-footer { padding: 5rem 0 2rem; color: var(--white); background: var(--black); border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-brand img { width: 10rem; filter: invert(1); mix-blend-mode: screen; }
.footer-brand p { margin: 1rem 0 0; color: rgba(255,255,255,0.65); }
.footer-nav, .footer-meta { display: grid; align-content: start; gap: 0.6rem; font-size: 0.85rem; }
.footer-nav p, .footer-meta p { margin: 0 0 0.5rem; color: rgba(255,255,255,0.45); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; }
.footer-meta span { color: rgba(255,255,255,0.72); }
.footer-bottom { margin-top: 5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 2rem; color: rgba(255,255,255,0.5); font-size: 0.72rem; }

.reveal { opacity: 0; transform: translateY(1.2rem); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .header-inner { min-height: 5.1rem; }
  .brand { width: 7.6rem; }
  .menu-toggle { display: flex; align-items: center; gap: 0.9rem; z-index: 2; }
  .site-nav { position: fixed; inset: 0; padding: 7.5rem var(--space) 3rem; background: var(--paper); display: grid; align-content: start; justify-items: stretch; gap: 0; transform: translateY(-105%); transition: transform 280ms cubic-bezier(.7,0,.3,1); }
  .site-nav.is-open { transform: none; }
  .site-nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--title); font-size: clamp(1.8rem, 7vw, 3.5rem); line-height: 1.1; }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { margin-top: 2rem; padding-inline: 1rem; border: 1px solid var(--black); justify-content: space-between; }
  .menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(0.2rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-0.2rem) rotate(-45deg); }
  .hero { min-height: 100svh; padding-top: 7.5rem; }
  .hero h1 { font-size: clamp(3.2rem, 14.5vw, 7.5rem); }
  .hero-bottom, .section-grid, .section-heading, .contact-heading { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
  .section-content { min-width: 0; }
  .section-heading { gap: 2rem; }
  .service-row { grid-template-columns: 3.5rem 1fr; }
  .service-row p { grid-column: 2; }
  .contact-heading > p:last-child { grid-column: 1; }
}

@media (max-width: 620px) {
  :root { --space: 1.2rem; --section-y: 5.5rem; }
  .hero { padding-bottom: 1.5rem; }
  .eyebrow { font-size: 0.62rem; }
  .hero h1 { margin-top: 3rem; align-self: start; line-height: 0.88; letter-spacing: -0.065em; }
  .hero-bottom { gap: 2rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 1.2rem; }
  .text-link { align-self: flex-start; }
  .two-columns, .form-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 2.3rem 1fr; gap: 1rem; padding-block: 1.7rem; }
  .process-list li { grid-template-columns: 2.3rem 1fr; gap: 1rem; }
  .projects-placeholder { grid-template-columns: 1fr; min-height: 30rem; }
  .projects-placeholder > span { grid-column: 1; }
  .contact-heading h2 { font-size: clamp(2.7rem, 13vw, 5rem); }
  .form-footer { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

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