/* ==========================================================================
   Tres Chic Designs
   ========================================================================== */

:root {
  --ivory: #F3F0EA;     /* brand cream */
  --linen: #E7E3DA;
  --sand: #D9CCB9;
  --taupe: #5A605C;     /* brand grey, 5.7:1 on cream */
  --espresso: #1E2321;  /* brand ink */
  --espresso-2: #2A231E;
  --sage: #A3B8AD;      /* accent on dark, 7.9:1 on ink */
  --green: #2F4A43;     /* brand green, 8.4:1 on cream */
  --on-dark: #F3F0EA;
  --on-dark-muted: #B3B9B5;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1360px;
  --section: clamp(5rem, 12vw, 10rem);
  --radius: 4px;
  /* One motion signature: soft expo landing; exits run faster than entrances */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-out: .35s;
  --dur-in: .6s;
  --dur-slow: 1.1s;

  /* One warm, muted grade so stock photos read as a single commissioned set */
  --grade: saturate(.78) contrast(.96) sepia(.08) brightness(1.01);

  --z-header: 50;
  --z-menu: 60;
  --z-loader: 100;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--espresso);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
em { font-style: italic; font-weight: 300; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.services :focus-visible, .contact :focus-visible, .footer :focus-visible { outline-color: var(--sage); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 200;
  padding: .6rem 1rem; background: var(--espresso); color: var(--ivory);
  transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* --- Type ---------------------------------------------------------------- */
.eyebrow {
  font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--green); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--sage); }

.section-title, .hero__title, .statement, .contact__title {
  font-family: var(--font-display); font-weight: 300; line-height: 1.04; letter-spacing: -.01em;
  text-wrap: balance;
}
.section-title { font-size: clamp(2.5rem, 6vw, 5rem); }
.section-title em, .hero__title em, .contact__title em { color: var(--green); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .9rem 1.9rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; touch-action: manipulation;
  transition: color .45s var(--ease), transform .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: var(--fx, left) center;
  transition: transform var(--dur-out) var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transition-duration: var(--dur-in); }
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--espresso); color: var(--ivory); }
.btn--dark::before { background: var(--green); }
.btn--light { background: var(--ivory); color: var(--espresso); }
.btn--light::before { background: var(--sage); }
.btn--sm { min-height: 2.75rem; padding: .6rem 1.4rem; font-size: .75rem; }
.btn[disabled] { opacity: .5; cursor: progress; }

.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem;
  font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.link-arrow svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform var(--dur-in) var(--ease); }

.nav__list a::after, .link-arrow::after, .footer__links a::after, .back-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .45rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--dur-out) var(--ease);
}
.link-arrow::after { right: 1.6rem; bottom: .55rem; }
.nav__list a:hover::after, .nav__list a.is-active::after, .link-arrow:hover::after,
.footer__links a:hover::after, .back-top:hover::after {
  transform: scaleX(1); transform-origin: left; transition-duration: var(--dur-in);
}
.link-arrow:hover svg { transform: translateX(4px); }

/* --- Loader -------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: grid; place-items: center; background: var(--espresso); color: var(--ivory);
  animation: loader-out .01s 2s forwards; /* safety net if JS fails */
}
.loader__logo { width: min(16rem, 58vw); }
@keyframes loader-out { to { visibility: hidden; opacity: 0; } }
.no-loader .loader { display: none; }

/* --- Header -------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  transition: transform .5s var(--ease), background-color .4s, box-shadow .4s;
}
.header__inner { display: flex; align-items: center; gap: 2rem; height: 5rem; }
.header.is-scrolled { background: rgb(243 240 234 / .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgb(30 35 33 / .07); }
.header.is-hidden { transform: translateY(-100%); }

/* Icon + live text: the horizontal logo's lettering is unreadable at header height */
.logo { display: flex; align-items: center; gap: .85rem; margin-right: auto; padding-block: .25rem; }
.logo img { height: 2.9rem; width: auto; }
.logo__name { font-size: .875rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.logo__light, body.menu-open .logo__dark { display: none; }
body.menu-open .logo__light { display: block; }

.nav__list { display: flex; gap: 2.25rem; }
.nav__list a {
  position: relative; font-size: .8125rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  padding-block: .75rem;
}

.menu-btn { display: none; align-items: center; gap: .75rem; min-height: 2.75rem; padding-inline: .25rem; font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.menu-btn__icon { display: grid; gap: 6px; width: 26px; }
.menu-btn__icon span { height: 1px; background: currentColor; transition: transform .45s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7rem var(--gutter) 2.5rem; background: var(--espresso); color: var(--ivory);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.mobile-menu.is-open { clip-path: inset(0); }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid rgb(243 240 234 / .1); }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 1rem; padding-block: .9rem;
  font-family: var(--font-display); font-size: clamp(2.25rem, 9vw, 3.5rem); font-weight: 300; line-height: 1.1;
  transform: translateY(110%); transition: transform .7s var(--ease);
}
.mobile-menu li a span { font-family: var(--font-body); font-size: .75rem; letter-spacing: .1em; color: var(--sage); }
.mobile-menu.is-open li a { transform: none; }
.mobile-menu.is-open li:nth-child(1) a { transition-delay: .15s; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .2s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .25s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .3s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .35s; }
body.menu-open .header { z-index: calc(var(--z-menu) + 1); transform: none; color: var(--ivory); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 5rem);
  min-height: 100svh; padding-top: 7rem; padding-bottom: 4rem;
}
.hero__title { font-size: clamp(3rem, 7.4vw, 7rem); margin-bottom: 1.75rem; }
.hero__lede { max-width: 32rem; color: var(--taupe); font-size: 1.125rem; margin-bottom: 2.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.hero__media { position: relative; }
.hero__arch {
  aspect-ratio: 4 / 5.2; max-height: 78svh; margin-left: auto;
  border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--linen);
}
.hero__arch picture { display: block; height: 100%; }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; transform-origin: center 60%; filter: var(--grade); }

.badge {
  position: absolute; left: -3.25rem; bottom: 12%; width: 8.5rem; aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%; background: var(--ivory);
  box-shadow: 0 10px 40px -10px rgb(30 35 33 / .25);
}
.badge svg { position: absolute; inset: .4rem; width: calc(100% - .8rem); }
.badge text { font-size: 9.5px; text-transform: uppercase; fill: var(--espresso); font-family: var(--font-body); font-weight: 400; }
.badge__mark { width: 52%; }

/* --- Marquee ------------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid rgb(30 35 33 / .12); padding-block: 1.4rem; }
.marquee__track { display: flex; align-items: center; gap: 2.5rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 300; font-style: italic; white-space: nowrap; }
.marquee i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--green); flex: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 1.25rem)); } }

/* --- About --------------------------------------------------------------- */
.statement { font-size: clamp(1.9rem, 4.4vw, 3.9rem); line-height: 1.15; max-width: 26ch; margin-bottom: clamp(3.5rem, 8vw, 7rem); }
.statement .word { display: inline-block; }
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: end; }
.about__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--linen); }
.about__img img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
.about__copy p { max-width: 34rem; color: var(--taupe); margin-bottom: 1.25rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgb(30 35 33 / .12); }
.stat { display: flex; flex-direction: column-reverse; gap: .35rem; }
.stat dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); }
.stat dd { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }

/* --- Services ------------------------------------------------------------ */
.services { position: relative; background: var(--espresso); color: var(--on-dark); }
.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.services .section-title { max-width: 14ch; }
.services .section-title em { color: var(--sage); }
.svc-list { border-top: 1px solid rgb(243 240 234 / .14); }
.svc {
  position: relative; display: grid; grid-template-columns: 4rem 1fr; align-items: center; gap: 1.5rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-bottom: 1px solid rgb(243 240 234 / .14);
}
.svc::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--sage);
  transform: scaleX(0); transform-origin: right; transition: transform var(--dur-out) var(--ease);
}
.svc:hover::after { transform: scaleX(1); transform-origin: left; transition-duration: var(--dur-slow); }
.svc__num { font-size: .8rem; letter-spacing: .1em; color: var(--sage); align-self: start; padding-top: .9rem; transition: color var(--dur-in), transform var(--dur-in) var(--ease); }
.svc:hover .svc__num { color: var(--on-dark); transform: translateY(-3px); }
.svc__title, .svc__desc { transition: opacity var(--dur-in) var(--ease), transform var(--dur-slow) var(--ease), color var(--dur-in); }
@media (hover: hover) {
  .svc-list:hover .svc:not(:hover) .svc__title, .svc-list:hover .svc:not(:hover) .svc__desc { opacity: .55; }
}
.svc__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: center; }
.svc__title { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 3.4rem); font-weight: 300; line-height: 1.05; }
.svc:hover .svc__title { transform: translateX(.6rem); }
.svc__desc { color: var(--on-dark-muted); font-size: 1rem; max-width: 30rem; }
.svc__thumb { display: none; filter: var(--grade); }

.svc-media { display: none; }
@media (min-width: 1025px) and (hover: hover) {
  .svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(16rem, 24vw, 22rem); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .svc-media { display: block; position: sticky; top: 7rem; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: rgb(243 240 234 / .05); }
  .svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--grade); clip-path: inset(100% 0 0 0); }
  .svc-media img.is-active { clip-path: inset(0); }
}

/* --- Work ---------------------------------------------------------------- */
.work { padding-block: var(--section); overflow: hidden; }
.work__head { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.work__head .eyebrow { grid-column: 1 / -1; }
.hint-swipe { display: none; }
.work__hint { display: none; align-items: center; gap: 1rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); padding-bottom: 1rem; }
.work__progress { width: 6rem; height: 1px; background: rgb(30 35 33 / .15); }
.work__progress span { display: block; height: 100%; background: var(--espresso); transform: scaleX(0); transform-origin: left; }
.work__track { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto; }
.card:nth-child(even) { margin-top: 5rem; }
.card__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--linen); }
.card__img img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: filter var(--dur-slow) var(--ease); }
.card__img { transition: transform var(--dur-slow) var(--ease); }
.card:hover .card__img img { filter: none; }
.card:hover .card__img { transform: scale(.985); }
.card__meta { display: grid; gap: .3rem; padding-top: 1.1rem; }
.card__meta h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 400; line-height: 1.2; }
.card__meta p { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); }

/* Horizontal scroll on large screens (class added by JS only when motion is allowed) */
.work.is-horizontal .work__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.work.is-horizontal { padding-block: 0; }
.work.is-horizontal .work__hint { display: flex; }
.work.is-horizontal .work__track {
  display: flex; gap: 2.5rem; width: max-content; max-width: none; margin: 0;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.work.is-horizontal .card { width: clamp(20rem, 30vw, 28rem); margin-top: 0; flex: none; }
.work.is-horizontal .card:nth-child(even) { transform: translateY(2.5rem); }
.work.is-horizontal .card__img { aspect-ratio: 4 / 4.6; }

/* --- Process ------------------------------------------------------------- */
.process { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(3rem, 8vw, 8rem); }
.process__head { position: sticky; top: 8rem; align-self: start; }
.process__intro { color: var(--taupe); max-width: 22rem; margin-top: 1.5rem; }
.steps-wrap { position: relative; padding-left: 3rem; }
.steps__line { position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 1px; background: rgb(30 35 33 / .12); }
.steps__line span { display: block; height: 100%; background: var(--green); transform-origin: top; transform: scaleY(0); }
.step { position: relative; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: calc(-3rem - 4px); top: .55rem; width: 9px; height: 9px;
  border-radius: 50%; background: var(--ivory); border: 1px solid var(--green);
}
.step::before { transition: background-color .4s; }
.step.is-active::before { background: var(--green); }
.step__num { font-size: .8rem; letter-spacing: .14em; color: var(--green); }
.step h3 { font-family: var(--font-display); font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 300; line-height: 1.1; margin: .25rem 0 1rem; }
.step p { color: var(--taupe); max-width: 30rem; }

/* --- Testimonials -------------------------------------------------------- */
.testimonials { background: var(--linen); text-align: center; }
.testimonials .eyebrow { justify-content: center; }
.testimonials .eyebrow::after { content: ""; width: 2rem; height: 1px; background: currentColor; }
.quotes { display: grid; max-width: 58rem; margin-inline: auto; }
.quote { grid-area: 1 / 1; transition: opacity .7s var(--ease), transform .7s var(--ease), visibility .7s; }
.quote[hidden] { display: block; visibility: hidden; opacity: 0; transform: translateY(-8px); transition-duration: var(--dur-out); }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.9rem); font-weight: 300; line-height: 1.25; font-style: italic; text-wrap: pretty; }
.quote figcaption { margin-top: 2rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); }
.quote figcaption strong { font-weight: 500; color: var(--espresso); }
.quotes__controls { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 3rem; }
.quotes__digits { display: inline-block; overflow: hidden; vertical-align: bottom; }
.quotes__current { display: inline-block; }
.quotes__count { font-size: .8rem; letter-spacing: .14em; color: var(--taupe); font-variant-numeric: tabular-nums; }
.icon-btn {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  border: 1px solid rgb(30 35 33 / .2); transition: background-color .35s, color .35s, border-color .35s, transform .2s;
}
.icon-btn:hover { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* --- Contact ------------------------------------------------------------- */
.contact { position: relative; isolation: isolate; color: var(--on-dark); padding-block: var(--section); overflow: hidden; }
.contact__bg { position: absolute; inset: -10% 0; z-index: -1; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(30 35 33 / .95) 30%, rgb(30 35 33 / .78)); }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.contact__title { font-size: clamp(2.6rem, 5.5vw, 4.75rem); margin-bottom: 1.5rem; }
.contact__title em { color: var(--sage); }
.contact__intro > p { color: var(--on-dark-muted); max-width: 30rem; }

.form {
  background: rgb(243 240 234 / .06); border: 1px solid rgb(243 240 234 / .14); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.field { position: relative; margin-bottom: 1.4rem; }
.field label { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: .4rem; }
@supports selector(:has(*)) {
  .field { padding-top: 1.1rem; }
  .field label {
    position: absolute; left: 0; top: 1.95rem; margin: 0; pointer-events: none; transform-origin: left top;
    transition: transform var(--dur-in) var(--ease), color var(--dur-in);
  }
  .field:has(:focus) label, .field:has(input:not(:placeholder-shown)) label,
  .field:has(textarea:not(:placeholder-shown)) label, .field--static label {
    transform: translateY(-1.75rem) scale(.88); color: var(--sage);
  }
}
.field label span { color: var(--sage); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem 0; font-size: 1rem;
  background: linear-gradient(var(--sage), var(--sage)) 0 100% / 0 1px no-repeat transparent;
  border: 0; border-bottom: 1px solid rgb(243 240 234 / .3); border-radius: 0;
  transition: background-size var(--dur-in) var(--ease), border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field input:focus, .field textarea:focus { background-size: 100% 1px; }
.field textarea { resize: vertical; min-height: 6rem; }
.field select { appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3B8AD' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right center / 1.1rem no-repeat,
    linear-gradient(var(--sage), var(--sage)) 0 100% / 0 1px no-repeat transparent; }
.field select:focus { background-size: 1.1rem, 100% 1px; }
.field select option { color: var(--espresso); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 var(--sage); }
.field.has-error input, .field.has-error textarea { border-color: #E8998D; }
.field__err { font-size: .85rem; color: #F0B2A8; min-height: 0; margin-top: .35rem; }
.field__err:empty { display: none; }
.form__submit { width: 100%; margin-top: .5rem; }
.form__status { margin-top: 1rem; font-size: .95rem; color: var(--on-dark); min-height: 1.5rem; }
.form__status .tick { display: inline-block; width: 1.15rem; margin-right: .5rem; vertical-align: -.2em; fill: none; stroke: var(--sage); stroke-width: 2; }
.form__status .tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .7s var(--ease) .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* --- Footer -------------------------------------------------------------- */
.footer { background: var(--espresso); color: var(--on-dark-muted); padding-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid rgb(243 240 234 / .08); overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer__logo { width: min(17rem, 100%); margin-bottom: 1.5rem; }
.footer__tag { max-width: 24rem; font-family: var(--font-display); font-size: 1.5rem; font-style: italic; color: var(--on-dark); line-height: 1.3; }
.footer__links { display: flex; flex-wrap: wrap; gap: .25rem 2rem; }
.footer__links a { position: relative; display: inline-block; padding-block: .6rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; transition: color .3s; }
.footer__links a:hover { color: var(--ivory); }
.footer__bottom { margin-top: clamp(3rem, 6vw, 4.5rem); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid rgb(243 240 234 / .1); font-size: .85rem; }
.back-top { position: relative; padding-block: .4rem; }
.back-top:hover { color: var(--ivory); }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .svc__body { grid-template-columns: 1fr; gap: .6rem; }

  /* Projects: swipe row with a peek of the next card */
  .work__hint { display: flex; }
  .hint-scroll { display: none; }
  .hint-swipe { display: inline; }
  .work__track {
    display: flex; gap: 1rem; max-width: none; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .work__track::-webkit-scrollbar { display: none; }
  .work__track .card { flex: 0 0 min(78vw, 26rem); scroll-snap-align: start; margin-top: 0; }
  .work__track::after { content: ""; flex: 0 0 1px; } /* keeps the end gutter when scrolled fully right */
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 7.5rem; gap: 3rem; }
  .hero__arch { max-height: none; aspect-ratio: 4 / 4.6; margin: 0; }
  .badge { left: auto; right: 1rem; bottom: -2.5rem; width: 7rem; }
  .about__grid, .process, .contact__inner { grid-template-columns: 1fr; }
  .process__head { position: static; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .header__inner { height: 4.25rem; }
  .logo img { height: 2.4rem; }
  .logo { gap: .65rem; }
  .logo__name { font-size: .72rem; letter-spacing: .22em; }
  .hero__title { font-size: clamp(2.75rem, 12.5vw, 3.75rem); }
  /* Stats: one per row, number then label, instead of three cramped columns */
  .stats { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .stat { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 1.25rem; padding-block: 1rem; border-bottom: 1px solid rgb(30 35 33 / .12); }
  .stat dd { font-size: 2.5rem; flex: 0 0 6.25rem; }
  .svc { grid-template-columns: 1fr 5.5rem; gap: 1rem 1.25rem; }
  .svc__num { grid-column: 1 / -1; padding-top: 0; }
  .form__row { grid-template-columns: 1fr; }
}

/* Below desktop or on touch: service images sit inline instead of in the fixed slot */
@media (hover: none), (max-width: 1024px) {
  .svc { grid-template-columns: 2.5rem 1fr 5.5rem; }
  .svc__thumb { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
}
@media (max-width: 600px) {
  .svc { grid-template-columns: 1fr 5.5rem; }
  .svc__num { grid-column: 1 / -1; }
}

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