@charset "UTF-8";

/*
  WILDLINE — standalone portfolio prototype
  Performance decisions:
  - Semantic HTML, custom CSS and vanilla JavaScript only
  - No CSS or JavaScript frameworks
  - No external icon or animation libraries
  - Critical imagery served locally
  - Hero image explicitly prioritized for LCP
  - Below-the-fold images lazy-loaded
  - Fixed/aspect-ratio media areas to reduce layout shift
  - Motion uses transforms and opacity where practical
  - Scroll effects kept lightweight and purpose-driven
  - Minimal JavaScript, loaded with defer
  - Native horizontal swipe gallery used on mobile
  - Responsive layouts avoid unnecessary duplicate markup
  - prefers-reduced-motion supported
  - Decorative SVGs are inline/CSS-driven
  - Google Fonts limited to DM Sans + Instrument Serif
    and loaded with font-display: swap / non-blocking delivery
*/

:root {
  --ivory: #f2efe7;
  --ivory-2: #e9e4d8;
  --forest: #17372f;
  --forest-deep: #102a24;
  --moss: #7e8c6a;
  --clay: #b9684b;
  --stone: #d6d0c4;
  --charcoal: #292a27;
  --white: #fbfaf6;
  --line: rgba(41, 42, 39, 0.18);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
  --pad: clamp(1.25rem, 3.5vw, 4.5rem);
  --ease: cubic-bezier(.22,1,.36,1);
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ivory); }
body {
  margin: 0;
  color: var(--charcoal);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
figure, blockquote, p, h1, h2, h3 { margin: 0; }

::selection { background: var(--clay); color: var(--white); }

.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;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: var(--white);
  color: var(--forest);
  padding: .75rem 1rem;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.section-shell {
  width: min(100%, 1600px);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow,
.section-kicker,
.footer-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-kicker {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.section-kicker-light { border-color: rgba(255,255,255,.26); }

em {
  font-family: var(--serif);
  font-weight: 400;
}

.button,
.header-cta,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
}

.button {
  min-height: 54px;
  padding: 0 1.25rem;
  border: 1px solid currentColor;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background-color .3s ease, color .3s ease, transform .3s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--ivory); }
.button-light:hover { background: var(--ivory); color: var(--forest); }

.text-link {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.text-link span { transition: transform .3s var(--ease); }
.text-link:hover span { transform: translate(3px, 3px); }
.text-link-light { color: var(--white); }

/* Header */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 var(--pad);
  color: var(--white);
  transition: color .35s ease, background-color .35s ease, box-shadow .35s ease, min-height .35s var(--ease), transform .35s var(--ease);
}
.site-header.is-scrolled {
  width: calc(100% - 2rem);
  top: .7rem;
  left: 1rem;
  min-height: 64px;
  padding-inline: clamp(1rem, 2.4vw, 2rem);
  color: var(--forest);
  background: rgba(242,239,231,.93);
  box-shadow: 0 12px 40px rgba(16,42,36,.10);
  backdrop-filter: blur(14px);
}
.site-header.is-hidden { transform: translateY(-130%); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
}
.brand-mark { width: 28px; display: inline-grid; place-items: center; }
.brand-mark svg { width: 100%; }
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.5rem);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.desktop-nav a { position: relative; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.45rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta {
  justify-self: end;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.header-cta span { transition: transform .3s var(--ease); }
.header-cta:hover span { transform: translate(4px,-4px); }
.menu-toggle { display: none; }

.mobile-menu {
  position: fixed;
  z-index: 990;
  inset: 0;
  color: var(--ivory);
  background: var(--forest-deep);
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s ease, visibility .35s ease;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; }
body.menu-open .site-header { color: var(--ivory); background: transparent; box-shadow: none; backdrop-filter: none; }
.mobile-menu-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 3rem) var(--pad) 3rem;
}
.mobile-menu nav { display: grid; margin: 2rem 0 3rem; }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .4rem 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: .95;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.mobile-menu nav a span { width: 2rem; font-family: var(--sans); font-size: .65rem; letter-spacing: .13em; }
.mobile-contact { margin-top: 2rem; font-size: .8rem; color: rgba(255,255,255,.62); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: var(--header-h) var(--pad) 2.2rem;
  color: var(--white);
  overflow: hidden;
  background: var(--forest);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 112%;
  object-position: center 54%;
  transform: scale(1.04);
  will-change: transform;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,30,25,.42) 0%, rgba(12,30,25,.08) 34%, rgba(12,30,25,.45) 100%),
    linear-gradient(90deg, rgba(12,30,25,.34), transparent 54%);
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-copy {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(3rem, 7vw, 6rem);
}
.hero-eyebrow {
  margin-bottom: 1.1rem;
}
.hero h1 {
  max-width: 1050px;
  font-family: var(--sans);
  font-size: clamp(5rem, 12.3vw, 13.6rem);
  font-weight: 500;
  letter-spacing: -.072em;
  line-height: .72;
}
.hero h1 em {
  display: inline-block;
  margin-left: clamp(1.2rem, 6vw, 7rem);
  font-size: 1.02em;
  letter-spacing: -.045em;
}
.hero-copy-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 5rem);
}
.hero-copy-bottom p { max-width: 360px; font-size: clamp(1rem, 1.4vw, 1.3rem); }
.hero-index {
  position: absolute;
  right: var(--pad);
  bottom: 1.8rem;
  font-size: .64rem;
  letter-spacing: .15em;
}

/* Intro statement */
.statement { position: relative; padding-top: clamp(7rem, 12vw, 12rem); padding-bottom: clamp(8rem, 15vw, 15rem); overflow: hidden; }
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, .55fr); gap: clamp(3rem, 8vw, 10rem); align-items: end; margin-top: clamp(4rem, 8vw, 8rem); }
.display-copy {
  max-width: 1130px;
  font-family: var(--sans);
  font-size: clamp(3.4rem, 7.1vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .92;
}
.display-copy em { font-size: 1.04em; }
.statement-aside { display: grid; gap: 1.5rem; max-width: 390px; justify-self: end; }
.statement-aside figure { aspect-ratio: 4 / 5; overflow: hidden; }
.statement-aside figure img { transition: transform 1s var(--ease); }
.statement-aside figure:hover img { transform: scale(1.035); }
.statement-aside p { font-size: .96rem; line-height: 1.7; color: rgba(41,42,39,.76); }
.contour { position: absolute; pointer-events: none; color: rgba(23,55,47,.12); }
.contour-a { width: min(58vw, 850px); right: -8vw; top: 5rem; }
.contour svg { width: 100%; height: auto; }
.contour-path { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.2s var(--ease); }
.contour-path-2 { opacity: .65; transition-delay: .18s; }
.statement.in-view .contour-path { stroke-dashoffset: 0; }

/* Work */
.work { padding-bottom: clamp(8rem, 13vw, 13rem); }
.work-heading-row { display: grid; grid-template-columns: 1.4fr .55fr; gap: 4rem; align-items: end; margin: clamp(3rem, 6vw, 6rem) 0 clamp(4rem, 7vw, 7rem); }
.work-heading-row h2,
.services-heading h2,
.transformation-heading h2,
.process-intro h2,
.gallery-intro h2,
.contact h2 {
  font-size: clamp(3.3rem, 6.6vw, 7.6rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .88;
}
.work-heading-row p { max-width: 390px; font-size: .97rem; line-height: 1.7; color: rgba(41,42,39,.72); }
.projects-editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}
.project a { display: block; }
.project-feature { grid-column: 1 / span 8; }
.project-tall { grid-column: 9 / -1; margin-top: clamp(6rem, 11vw, 12rem); }
.project-wide { grid-column: 3 / span 8; margin-top: clamp(6rem, 10vw, 10rem); }
.project-image-wrap { position: relative; overflow: hidden; background: var(--stone); }
.project-feature .project-image-wrap { aspect-ratio: 16 / 10; }
.project-tall .project-image-wrap { aspect-ratio: 4 / 5.3; }
.project-wide .project-image-wrap { aspect-ratio: 16 / 9; }
.project img { transition: transform 1s var(--ease), filter .6s ease; }
.project-arrow {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--ivory);
  color: var(--forest);
  border-radius: 50%;
  transform: scale(.7) rotate(-12deg);
  opacity: 0;
  transition: opacity .35s ease, transform .45s var(--ease);
}
.project a:hover img { transform: scale(1.03); }
.project a:hover .project-arrow { opacity: 1; transform: scale(1) rotate(0); }
.project-meta { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); margin-top: .8rem; }
.project-meta div { display: flex; gap: 1rem; align-items: baseline; }
.project-meta span { font-size: .66rem; letter-spacing: .12em; }
.project-meta h3 { font-family: var(--serif); font-size: clamp(1.6rem, 2.2vw, 2.5rem); font-weight: 400; }
.project-meta p { max-width: 260px; font-size: .72rem; letter-spacing: .05em; line-height: 1.5; text-align: right; color: rgba(41,42,39,.68); }

/* Process */
.process { position: relative; color: var(--ivory); background: var(--forest-deep); }
.process-sticky { position: sticky; top: 0; min-height: 100svh; overflow: hidden; }
.process-copy { min-height: 100svh; padding-top: clamp(6rem, 8vw, 8rem); padding-bottom: clamp(3rem, 5vw, 5rem); }
.process-layout { display: grid; grid-template-columns: .85fr .75fr 1.25fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; margin-top: clamp(3rem, 5vw, 5rem); }
.process-intro p { max-width: 420px; margin-top: 2rem; color: rgba(242,239,231,.66); line-height: 1.7; }
.process-steps { padding-top: .6rem; }
.process-step {
  width: 100%;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: .3rem .85rem;
  padding: 1.05rem 0;
  text-align: left;
  color: rgba(242,239,231,.66);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.17);
  cursor: pointer;
  transition: color .35s ease;
}
.process-step span { grid-row: 1 / span 2; padding-top: .25rem; font-size: .65rem; letter-spacing: .12em; }
.process-step strong { font-family: var(--serif); font-size: clamp(1.7rem, 2.4vw, 2.6rem); font-weight: 400; }
.process-step small { font-size: .72rem; line-height: 1.45; }
.process-step.is-active { color: var(--ivory); }
.process-visual { position: relative; min-height: min(64svh, 680px); overflow: hidden; background: #243f37; }
.process-image { position: absolute; inset: 0; opacity: 0; transform: scale(1.025); transition: opacity .55s ease, transform .9s var(--ease); }
.process-image.is-active { opacity: 1; transform: scale(1); }
.process-image figcaption { position: absolute; bottom: 1rem; left: 1rem; padding: .55rem .75rem; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(16,42,36,.74); backdrop-filter: blur(10px); }
.process-line { position: absolute; z-index: 5; right: -10%; bottom: -15%; width: 56%; height: 92%; pointer-events: none; opacity: .55; }
.process-line path { fill: none; stroke: var(--ivory); stroke-width: 1; stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - (1000 * var(--process-progress, 0))); }
.process-scroll-space { height: 300vh; }

/* Services */
.services { position: relative; padding-top: clamp(8rem, 13vw, 13rem); padding-bottom: clamp(8rem, 13vw, 13rem); }
.services-heading { margin: clamp(3rem, 6vw, 6rem) 0 clamp(4rem, 7vw, 7rem); }
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}
.service-list { border-top: 1px solid var(--line); }
.service-row {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 2.6rem minmax(180px, .9fr) minmax(220px, 1.1fr) auto;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  min-height: clamp(112px, 10vw, 142px);
  padding: 0;
  color: var(--charcoal);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding-inline .4s var(--ease), background-color .4s ease, color .3s ease;
}
.service-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--forest);
  transition: width .55s var(--ease);
}
.service-row:hover,
.service-row:focus-visible,
.service-row.is-active {
  padding-inline: .8rem;
  background: rgba(126,140,106,.09);
}
.service-row.is-active::after { width: 100%; }
.service-row:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }
.service-number { font-size: .67rem; letter-spacing: .13em; color: rgba(41,42,39,.58); transition: color .3s ease; }
.service-name { font-family: var(--serif); font-size: clamp(2rem, 2.65vw, 3.25rem); line-height: .95; }
.service-copy { max-width: 430px; font-size: .82rem; line-height: 1.6; color: rgba(41,42,39,.66); transition: color .3s ease; }
.service-icon { font-size: 1.15rem; color: rgba(41,42,39,.55); transform: rotate(0); transition: transform .45s var(--ease), color .3s ease; }
.service-row:hover .service-icon,
.service-row:focus-visible .service-icon,
.service-row.is-active .service-icon { color: var(--forest); transform: translate(4px,-4px); }
.service-row.is-active .service-number { color: var(--forest); }

.service-preview {
  position: sticky;
  top: clamp(7rem, 10vw, 9rem);
}
.service-preview-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--stone);
}
.service-preview-image {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity .5s ease, transform .9s var(--ease);
  pointer-events: none;
}
.service-preview-image.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.service-preview-image img { width: 100%; height: 100%; object-fit: cover; }
.service-preview-rule {
  position: absolute;
  z-index: 4;
  right: 1.15rem;
  top: 1.15rem;
  width: 42px;
  height: 42px;
  border-top: 1px solid rgba(242,239,231,.9);
  border-right: 1px solid rgba(242,239,231,.9);
  pointer-events: none;
}
.service-preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: .95rem;
  border-top: 1px solid var(--line);
  margin-top: .8rem;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.service-preview-meta p:first-child { color: rgba(41,42,39,.5); }
.service-preview-meta p:last-child { color: var(--forest); text-align: right; }

/* Comparison */
.transformation { padding-bottom: clamp(8rem, 13vw, 13rem); }
.transformation-copy { margin-bottom: clamp(3rem, 6vw, 6rem); }
.transformation-heading { display: grid; grid-template-columns: 1.4fr .55fr; gap: 4rem; align-items: end; margin-top: clamp(3rem, 6vw, 6rem); }
.transformation-heading p { max-width: 420px; justify-self: end; color: rgba(41,42,39,.7); line-height: 1.7; }
.comparison {
  --comparison-position: 50%;
  position: relative;
  width: min(calc(100% - (var(--pad) * 2)), 1470px);
  margin-inline: auto;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  background: var(--stone);
  user-select: none;
  touch-action: pan-y;
}
.comparison-base,
.comparison-after {
  position: absolute;
  inset: 0;
}
.comparison-base img,
.comparison-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comparison-after {
  clip-path: inset(0 0 0 var(--comparison-position));
  will-change: clip-path;
}
.comparison-labels {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
}
.comparison-label {
  position: absolute;
  top: 1.25rem;
  padding: .7rem .9rem;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(23,55,47,.82);
  color: var(--ivory);
  backdrop-filter: blur(8px);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.comparison-label-before { left: 1.25rem; }
.comparison-label-after { right: 1.25rem; }
.comparison-divider {
  position: absolute;
  z-index: 5;
  left: var(--comparison-position);
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.94);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(23,55,47,.12);
}
.comparison-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  border-radius: 50%;
  color: var(--forest);
  background: var(--ivory);
  transform: translate(-50%,-50%);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  font-size: .9rem;
}
.comparison-range {
  position: absolute;
  z-index: 8;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* Testimonial */
.testimonial { padding-bottom: clamp(8rem, 13vw, 13rem); }
.testimonial-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 8vw, 10rem); align-items: center; margin-top: clamp(4rem, 8vw, 8rem); }
.testimonial-image { position: relative; aspect-ratio: 4/5; }
.testimonial-image span { position: absolute; left: 1rem; bottom: 1rem; padding: .6rem .8rem; background: var(--ivory); font-size: .65rem; letter-spacing: .11em; text-transform: uppercase; }
.testimonial blockquote p { font-family: var(--serif); font-size: clamp(3.1rem, 5.3vw, 6.2rem); line-height: .98; letter-spacing: -.035em; }
.testimonial blockquote footer { display: flex; gap: 1rem; margin-top: 2.5rem; font-size: .75rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.testimonial blockquote footer span { color: rgba(41,42,39,.48); }

/* Horizontal gallery */
.gallery-section { position: relative; color: var(--ivory); background: var(--forest); }
.gallery-intro { padding-top: clamp(6.5rem, 10vw, 10rem); padding-bottom: clamp(6rem, 10vw, 10rem); }
.gallery-intro-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 7vw, 8rem); align-items: end; margin-top: clamp(2.5rem, 5vw, 5rem); }
.gallery-intro h2 { max-width: 900px; }
.gallery-intro p { max-width: 430px; justify-self: end; color: rgba(242,239,231,.68); line-height: 1.75; }
.gallery-horizontal { position: relative; }
.gallery-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.gallery-progress-row { position: absolute; z-index: 3; top: clamp(2rem, 4vw, 3.5rem); left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 2rem; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(242,239,231,.58); pointer-events: none; }
.gallery-progress { width: min(360px, 38vw); height: 1px; background: rgba(255,255,255,.25); }
.gallery-progress span { display: block; width: 100%; height: 100%; background: var(--ivory); transform: scaleX(0); transform-origin: left; }
.gallery-track-wrap { position: absolute; left: 0; right: 0; bottom: clamp(2.5rem, 5vh, 4rem); overflow: visible; }
.gallery-track { display: flex; align-items: end; gap: clamp(1rem, 2vw, 2rem); width: max-content; padding: 0 var(--pad); will-change: transform; }
.gallery-card { width: min(52vw, 690px); }
.gallery-card-tall { width: min(34vw, 450px); }
.gallery-card-wide { width: min(60vw, 800px); }
.gallery-card img { aspect-ratio: 1.45 / 1; }
.gallery-card-tall img { aspect-ratio: .78 / 1; }
.gallery-card-wide img { aspect-ratio: 1.7 / 1; }
.gallery-card figcaption { display: flex; gap: 1rem; padding-top: .8rem; font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.gallery-card figcaption span { opacity: .7; }
.gallery-scroll-space { height: 320vh; }

/* Contact */
.contact { position: relative; min-height: 88svh; display: flex; align-items: center; color: var(--ivory); background: var(--forest-deep); overflow: hidden; }
.contact-inner { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 7rem; }
.contact h2 { margin-top: 2rem; font-size: clamp(5rem, 11vw, 12rem); }
.contact-bottom { display: flex; justify-content: space-between; gap: 3rem; align-items: end; margin-top: clamp(3rem, 6vw, 6rem); }
.contact-bottom p { max-width: 430px; color: rgba(242,239,231,.68); line-height: 1.7; }
.contact-plant { position: absolute; right: -2%; bottom: -14%; width: min(42vw, 590px); color: var(--ivory); opacity: .8; transform: rotate(3deg); }
.contact-plant svg { width: 100%; }

/* Footer */
.site-footer { color: var(--charcoal); background: var(--ivory-2); padding: 4rem 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .65fr 1fr 1.2fr; gap: 3rem; align-items: start; }
.brand-footer { color: var(--forest); }
.footer-grid > div:first-child > p { margin-top: 1rem; font-size: .8rem; color: rgba(41,42,39,.72); }
.footer-grid > div:not(:first-child) { display: grid; gap: .45rem; }
.footer-grid a, .footer-grid p { font-size: .78rem; }
.footer-label { margin-bottom: .7rem; }
.footer-meta { color: rgba(41,42,39,.72); }

/* Reveal system */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .85s ease, transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }

@media (max-width: 1080px) {
  :root { --header-h: 74px; }
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle {
    display: grid;
    width: 46px;
    height: 46px;
    padding: 12px 8px;
    border: 0;
    background: transparent;
    align-content: center;
    gap: 7px;
    cursor: pointer;
  }
  .menu-toggle .menu-line { display: block; width: 100%; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
  .menu-toggle[aria-expanded="true"] .menu-line-a { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-line-b { transform: translateY(-4px) rotate(-45deg); }
  .site-header.is-scrolled { width: calc(100% - 1rem); left: .5rem; top: .5rem; }
  .process-layout { grid-template-columns: .9fr .7fr 1.1fr; gap: 2rem; }
  .services-layout { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 3rem; }
  .service-row { grid-template-columns: 2.3rem minmax(160px, .9fr) minmax(190px, 1.1fr) auto; }
}

@media (max-width: 820px) {
  .hero-topline p:last-child { display: none; }
  .hero h1 { font-size: clamp(4.4rem, 18vw, 8rem); line-height: .78; }
  .hero h1 em { margin-left: 0; }
  .hero-copy-bottom { align-items: start; flex-direction: column; }

  .statement-grid,
  .work-heading-row,
  .transformation-heading,
  .testimonial-grid,
  .gallery-intro-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .statement-aside { max-width: 520px; justify-self: start; }
  .statement-aside figure { width: min(62vw, 360px); }
  .work-heading-row { gap: 1.7rem; }
  .work-heading-row p { max-width: 500px; }

  .projects-editorial { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .project-feature { grid-column: 1 / -1; }
  .project-tall { grid-column: 2; margin-top: 2.5rem; }
  .project-wide { grid-column: 1 / -1; margin-top: 2rem; }
  .project-meta { display: block; }
  .project-meta p { text-align: left; margin-top: .45rem; }

  .process-sticky { position: relative; min-height: auto; }
  .process-copy { min-height: auto; }
  .process-layout { grid-template-columns: 1fr; }
  .process-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .process-visual { min-height: 58svh; }
  .process-scroll-space { display: none; }

  .services-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-preview { position: relative; top: auto; grid-row: 1; width: min(72vw, 520px); margin-left: auto; }
  .service-preview-media { aspect-ratio: 16 / 11; }
  .service-list { grid-row: 2; }
  .service-row { grid-template-columns: 2.5rem 1fr auto; gap: .8rem; padding-block: 1.25rem; }
  .service-copy { grid-column: 2 / -1; padding-right: 2rem; }
  .service-icon { grid-column: 3; grid-row: 1; }

  .transformation-heading { gap: 1.6rem; }
  .transformation-heading p { justify-self: start; }
  .comparison { aspect-ratio: 4 / 3; }

  .testimonial-grid { gap: 3rem; }
  .testimonial-image { width: min(75vw, 520px); }

  .gallery-intro-grid { gap: 1.75rem; }
  .gallery-intro p { justify-self: start; }
  .gallery-progress { width: 50%; }
  .gallery-card { width: 78vw; }
  .gallery-card-tall { width: 58vw; }
  .gallery-card-wide { width: 85vw; }
  .gallery-scroll-space { height: 260vh; }

  .contact-bottom { flex-direction: column; align-items: start; }
  .contact-plant { width: 60vw; opacity: .35; }
  .footer-grid { gap: 2rem; }
}

@media (max-width: 560px) {
  :root { --pad: 1.1rem; }
  .site-header { min-height: 68px; }
  .brand { font-size: .72rem; }
  .brand-mark { width: 25px; }
  .hero { min-height: 100svh; }
  .hero-copy { bottom: 4rem; }
  .hero h1 { font-size: clamp(4.2rem, 22vw, 6.5rem); }
  .hero-copy-bottom p { max-width: 290px; }
  .hero-index { display: none; }

  .display-copy { font-size: clamp(3.2rem, 14vw, 5.2rem); }
  .statement-aside figure { width: 82vw; }

  .projects-editorial { display: block; }
  .project { margin: 0 0 3rem; }
  .project-tall .project-image-wrap { aspect-ratio: 4 / 5; }
  .project-meta { padding-top: .75rem; }

  .process-steps { grid-template-columns: 1fr; }
  .process-step small { max-width: 270px; }
  .process-visual { min-height: 52svh; }

  .service-preview { width: 100%; }
  .service-preview-media { aspect-ratio: 4 / 3; }
  .service-row { min-height: 0; }
  .service-row:hover, .service-row:focus-visible, .service-row.is-active { padding-inline: .35rem; }
  .service-name { font-size: 2rem; }
  .service-preview-meta { font-size: .62rem; }

  .comparison { width: 100%; aspect-ratio: 3 / 4; }
  .comparison-label { top: .85rem; padding: .6rem .7rem; font-size: .6rem; }
  .comparison-label-before { left: .85rem; }
  .comparison-label-after { right: .85rem; }
  .comparison-handle { width: 54px; height: 54px; }

  .testimonial-image { width: 100%; }
  .testimonial blockquote p { font-size: 3rem; }

  /* Mobile gallery: use native horizontal swipe instead of the desktop sticky scroll effect */
  .gallery-intro { padding-bottom: 2.5rem; }
  .gallery-intro h2 { font-size: 3.7rem; }

  .gallery-progress-row { display: none; }

  .gallery-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 3.5rem;
  }

  .gallery-track-wrap {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 1rem;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--pad);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-track-wrap::-webkit-scrollbar { display: none; }

  .gallery-track {
    transform: none !important;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    width: max-content;
    padding: 0 var(--pad);
  }

  .gallery-card {
    flex: 0 0 84vw;
    width: 84vw;
    scroll-snap-align: start;
  }

  .gallery-card-tall {
    flex-basis: 68vw;
    width: 68vw;
  }

  .gallery-card-wide {
    flex-basis: 90vw;
    width: 90vw;
  }

  .gallery-card img {
    aspect-ratio: 1.45 / 1;
    object-fit: cover;
  }

  .gallery-card-tall img { aspect-ratio: .78 / 1; }
  .gallery-card-wide img { aspect-ratio: 1.7 / 1; }
  .gallery-card figcaption { padding-top: .8rem; }

  .gallery-scroll-space { display: none; }

  .contact { min-height: 78svh; }
  .contact h2 { font-size: clamp(4.6rem, 20vw, 7rem); }
  .contact-plant { width: 92vw; right: -28%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-media { clip-path: none; }
  .hero-media img, .gallery-track { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
  .process-scroll-space, .gallery-scroll-space { display: none; }
  .process-sticky, .gallery-sticky { position: relative; height: auto; min-height: auto; }
  .gallery-track-wrap { position: relative; bottom: auto; padding-block: 3rem; overflow-x: auto; }
}
