/* ============================================================
   autumnSTUDIO — custom styles
   Editorial · warm · autumn.
   Outfit (headlines) + Hanken Grotesk (body).
   Fraunces italic is kept for accent words only.
   ============================================================ */

:root {
  --paper: #FAF4EC;
  --espresso: #2A1D14;
  --rust: #863A2C;
  --amber: #D98E43;
  --olive: #7C7A4E;

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-condensed: 'Anton', Impact, sans-serif;
  --font-accent: 'Fraunces', Georgia, serif;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ── Grain overlay ───────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Eyebrow label ───────────────────────────────────────── */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── Nav ─────────────────────────────────────────────────── */
/* Solid deep-brown bar across the top, per the client colour ref. */
#nav {
  background: var(--espresso);
  border-bottom: 1px solid rgba(250, 244, 236, 0.08);
}
#nav.scrolled {
  background: rgba(42, 29, 20, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(250, 244, 236, 0.14);
  box-shadow: 0 18px 40px -32px rgba(42, 29, 20, 0.9);
}
.nav-link { position: relative; transition: color .3s ease; }
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--amber);
  transition: width .3s ease;
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { width: 100%; }

/* ── Hero gradient mesh ──────────────────────────────────── */
.hero-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 55% at 12% 8%, rgba(217, 142, 67, 0.30) 0%, transparent 60%),
    radial-gradient(45% 50% at 88% 15%, rgba(134, 58, 44, 0.22) 0%, transparent 62%),
    radial-gradient(60% 60% at 70% 90%, rgba(124, 122, 78, 0.18) 0%, transparent 60%),
    radial-gradient(40% 45% at 30% 85%, rgba(232, 201, 168, 0.35) 0%, transparent 60%);
  filter: blur(6px);
}
.hero-mesh--dark {
  opacity: 0.6;
  background:
    radial-gradient(50% 55% at 10% 5%, rgba(217, 142, 67, 0.28) 0%, transparent 55%),
    radial-gradient(45% 50% at 92% 20%, rgba(134, 58, 44, 0.30) 0%, transparent 58%),
    radial-gradient(60% 60% at 80% 100%, rgba(124, 122, 78, 0.22) 0%, transparent 60%);
}

/* ── Hero cursor reveal ──────────────────────────────────── */
/* A circular window that trails the pointer and shows a dark, image-backed
   copy of the hero. The copy is cloned from #heroInner by main.js, so the
   two layers can never drift apart. --x/--y/--r are driven by one rAF loop. */
.hero-reveal {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  pointer-events: none;
  background: var(--espresso);
  color: var(--paper);
  -webkit-mask-image: radial-gradient(circle var(--r, 0px) at var(--x, 50%) var(--y, 50%), #000 74%, rgba(0, 0, 0, 0) 100%);
          mask-image: radial-gradient(circle var(--r, 0px) at var(--x, 50%) var(--y, 50%), #000 74%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
.hero-reveal__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .5; filter: saturate(.85) contrast(1.05);
}
.hero-reveal__wash {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(134, 58, 44, .55), rgba(42, 29, 20, .35) 60%, transparent);
  mix-blend-mode: multiply;
}
/* Recolour the clone for the dark ground. Colour utilities are stripped from
   it in main.js, so plain element selectors are enough. */
.hero-reveal .eyebrow { color: var(--amber); }
.hero-reveal .eyebrow span { background: rgba(250, 244, 236, .45); }
.hero-reveal h1 span { color: var(--amber); }
.hero-reveal p { color: rgba(250, 244, 236, .72); }
.hero-reveal .btn-primary { background: var(--amber); color: var(--espresso); }
.hero-reveal .btn-ghost { border-color: rgba(250, 244, 236, .35); color: var(--paper); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary,
.btn-ghost {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  transition: transform .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn-primary { background: var(--rust); color: var(--paper); }
.btn-primary::after { content: "→"; transition: transform .3s ease; }
.btn-primary:hover { background: var(--espresso); transform: translateY(-2px); }
.btn-primary:hover::after { transform: translateX(4px); }
.btn-ghost { border: 1px solid rgba(42, 29, 20, 0.25); color: var(--espresso); }
.btn-ghost:hover { border-color: var(--espresso); transform: translateY(-2px); }

/* ── Community cards (feedback p4) ───────────────────────────
   One cream panel split into three hairline-divided columns, each with a
   square artwork block under its index number. */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
}
.community-card {
  display: flex; flex-direction: column;
  padding: 1.9rem 1.8rem 2.2rem;
  color: var(--espresso);
}
.community-card + .community-card { border-left: 1px solid rgba(42, 29, 20, 0.10); }
.community-card__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: .08em; color: var(--rust);
}
.community-card__media {
  margin-top: 1.1rem;
  aspect-ratio: 1 / 1; overflow: hidden; border-radius: 3px;
  background: var(--paper2);
}
.community-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
/* Tall artwork whose subjects sit at the top — crop from the bottom instead
   of the centre, so heads aren't cut off. */
.community-card__media--top img { object-position: center top; }
.community-card:hover .community-card__media img { transform: scale(1.04); }
.community-card__title {
  margin-top: 1.4rem;
  font-family: var(--font-condensed); font-weight: 400; text-transform: uppercase;
  font-size: 1.2rem; line-height: 1.12; letter-spacing: .01em;
}
.community-card__desc {
  margin-top: .75rem;
  font-size: 14px; line-height: 1.65; color: rgba(42, 29, 20, 0.62);
}
.community-card--link { transition: background .35s ease; }
.community-card--link:hover { background: #F6EEE2; }
.community-card__link {
  display: inline-block; margin-top: 1.1rem;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--rust);
}
.community-card__link span { display: inline-block; transition: transform .3s ease; }
.community-card--link:hover .community-card__link span { transform: translateX(4px); }
@media (max-width: 860px) {
  .community-grid { grid-template-columns: 1fr; }
  .community-card + .community-card {
    border-left: 0; border-top: 1px solid rgba(42, 29, 20, 0.10);
  }
  .community-card__media { max-width: 340px; }
}

/* ── Section index label — "(01) Our Story" (feedback p3/p6) ── */
.section-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(42, 29, 20, .45);
}

/* ── About / Our Story (feedback p3) ─────────────────────── */
.about-manifesto {
  font-family: var(--font-condensed); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.2rem, 5.6vw, 4.4rem); line-height: .98; letter-spacing: .005em;
}
.about-lead {
  margin-top: clamp(2rem, 4vw, 3.4rem); max-width: 44rem;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.34; letter-spacing: -0.02em;
  color: rgba(42, 29, 20, .88);
}
.about-note {
  margin-top: 2.2rem; max-width: 38rem;
  display: flex; flex-direction: column; gap: 1.4rem;
  font-size: 16px; line-height: 1.7; color: rgba(42, 29, 20, .55);
}

/* ── How We Work steps (feedback p6) ─────────────────────────
   No rules between steps — the ref separates them with whitespace only. */
.steps {
  margin-top: clamp(3rem, 7vw, 6rem);
  display: flex; flex-direction: column;
  gap: clamp(3rem, 6vw, 5.5rem);
}
.step {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
}
.step__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; letter-spacing: .08em; color: var(--rust);
  padding-top: .3em;
}
.step__title {
  font-family: var(--font-condensed); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.3rem, 2.7vw, 1.85rem); line-height: 1.06;
  letter-spacing: .008em; grid-column: 2;
}
.step__body {
  grid-column: 2; max-width: 36rem; margin-top: .9rem;
  font-size: 16px; line-height: 1.7; color: rgba(42, 29, 20, 0.55);
}
@media (max-width: 640px) {
  .steps { gap: 2.6rem; }
  .step { grid-template-columns: 1fr; }
  .step__num { padding-top: 0; margin-bottom: .5rem; }
  .step__title, .step__body { grid-column: 1; }
}

/* ── Service cards (feedback p7) ─────────────────────────────
   Collapsed to icon + title + one-line summary; the detail list and the
   inquiry link open on click so the grid doesn't read as a wall of text. */
.service-card {
  display: flex; flex-direction: column;
  padding: 1.7rem 1.7rem 1.8rem;
  background: var(--paper);
  border: 1px solid rgba(42, 29, 20, 0.10);
  border-radius: 18px;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.service-card:hover,
.service-card.is-open {
  border-color: rgba(134, 58, 44, 0.35);
  box-shadow: 0 24px 50px -34px rgba(42, 29, 20, 0.45);
}

.service-card__toggle {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center; gap: .75rem;
  width: 100%; padding: 0; margin: 0;
  background: none; border: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.service-card__toggle:focus-visible {
  outline: 2px solid var(--rust); outline-offset: 6px; border-radius: 6px;
}
.service-card__icon { display: block; color: var(--rust); }
.service-card__icon svg { display: block; width: 22px; height: 22px; }
.service-card__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: .08em; color: var(--rust);
}
.service-card__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.02em;
}
.service-card__chev {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(42, 29, 20, 0.18); color: rgba(42, 29, 20, 0.55);
  transition: transform .4s ease, border-color .3s ease, color .3s ease;
}
.service-card__chev svg { width: 10px; height: 7px; }
.service-card:hover .service-card__chev { border-color: var(--rust); color: var(--rust); }
.service-card.is-open .service-card__chev { transform: rotate(180deg); border-color: var(--rust); color: var(--rust); }

.service-card__desc {
  margin-top: 1rem;
  font-size: 14.5px; line-height: 1.6; color: rgba(42, 29, 20, 0.62);
}

/* 0fr -> 1fr keeps the transition height-agnostic (no max-height guessing) */
.service-card__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.2, .7, .2, 1);
}
.service-card.is-open .service-card__panel { grid-template-rows: 1fr; }
.service-card__panel-inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s .45s;
}
.service-card.is-open .service-card__panel-inner {
  visibility: visible; transition-delay: 0s;
}

.service-card__list {
  display: flex; flex-direction: column; gap: .6rem;
  margin-top: 1.3rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(42, 29, 20, 0.1);
}
/* Check marks tick in one at a time, like a checklist being filled in.
   Only the mark animates — the label text is there from the start. */
.service-card__list li {
  position: relative; padding-left: 1.5rem;
  font-size: 13.5px; color: rgba(42, 29, 20, 0.78);
}
.service-card__list li:nth-child(1) { --i: 0; }
.service-card__list li:nth-child(2) { --i: 1; }
.service-card__list li:nth-child(3) { --i: 2; }
.service-card__list li:nth-child(4) { --i: 3; }
.service-card__list li:nth-child(5) { --i: 4; }
.service-card__list li:nth-child(6) { --i: 5; }
.service-card__list li::before {
  content: ""; position: absolute; left: 0; top: .28em;
  width: 13px; height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23863A2C' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.8 6.4 4.6 9.2 10.2 3.2'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0; transform: scale(.3);
  transition: opacity .26s ease, transform .34s cubic-bezier(.2, 1.6, .4, 1);
}
.service-card.is-open .service-card__list li::before {
  opacity: 1; transform: none;
  transition-delay: calc(.18s + var(--i, 0) * .085s);
}
.service-card__foot {
  margin-top: 1.1rem; font-style: italic; font-family: var(--font-accent);
  font-size: 13px; color: var(--olive);
}
.service-card__inquire {
  display: inline-block; margin-top: 1.4rem;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--rust);
}
.service-card__inquire span { display: inline-block; transition: transform .3s ease; }
.service-card__inquire:hover span { transform: translateX(4px); }

/* ── Stat line (feedback p8) ─────────────────────────────────
   One row of totals; the numbers count up once on scroll into view. */
.stat-line {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 2rem;
  max-width: 52rem;
}
.stat {
  display: flex; flex-direction: column; gap: .5rem;
  padding-top: 1rem; border-top: 1px solid rgba(42, 29, 20, 0.18);
}
.stat__value {
  font-family: var(--font-condensed); font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1; letter-spacing: .01em;
  color: var(--rust); font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(42, 29, 20, 0.5); line-height: 1.4;
}
@media (max-width: 700px) { .stat-line { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Work carousel (feedback p9) ─────────────────────────────
   Centre-focused: --d is each card's distance from the track centre
   (0 = centred), set from a rAF scroll handler in main.js. */
.work-carousel { margin-top: clamp(3rem, 6vw, 5rem); }
.work-carousel__track {
  display: flex; gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 1.4rem max(0px, calc(50% - 200px)) 1.8rem;
  scrollbar-width: none;
}
.work-carousel__track::-webkit-scrollbar { display: none; }

.work-card {
  position: relative; flex: 0 0 clamp(230px, 58vw, 400px);
  scroll-snap-align: center;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
  transform: scale(calc(1 - .12 * var(--d, 1)));
  opacity: calc(1 - .4 * var(--d, 1));
  will-change: transform;
}
.work-card:focus-visible { outline: 2px solid var(--rust); outline-offset: 8px; border-radius: 18px; }
.work-card__media {
  position: relative; display: block; aspect-ratio: 4 / 5;
  border-radius: 16px; overflow: hidden; background: var(--espresso);
}
.work-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) contrast(1.02);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.work-card:hover .work-card__media img { transform: scale(1.05); }
/* warm autumn duotone + legibility gradient */
.work-card__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(42,29,20,0) 40%, rgba(42,29,20,0.72) 100%),
    linear-gradient(150deg, rgba(134,58,44,0.30), rgba(106,44,33,0.10) 60%, transparent);
}
.work-card__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--paper); background: rgba(42,29,20,0.42); backdrop-filter: blur(4px);
  padding: .35rem .7rem; border-radius: 999px;
}
.work-card__meta {
  position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.2rem; z-index: 2;
  display: flex; flex-direction: column; gap: .25rem; color: var(--paper);
}
.work-card__name {
  font-family: var(--font-condensed); text-transform: uppercase;
  font-size: 1.15rem; line-height: 1.1; letter-spacing: .01em;
}
.work-card__sub { font-size: 12px; letter-spacing: .06em; color: rgba(250,244,236,.7); }

.work-carousel__nav { display: flex; gap: .6rem; justify-content: center; }
.carousel-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(42, 29, 20, 0.2); background: none; color: var(--espresso);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.carousel-btn:hover { background: var(--espresso); color: var(--paper); border-color: var(--espresso); }
.carousel-btn svg { width: 8px; height: 12px; }

/* ── Case study modal (feedback p9) ──────────────────────── */
.work-modal {
  width: min(1000px, 92vw); max-height: 88vh; padding: 0;
  border: 0; border-radius: 20px; overflow: hidden;
  background: var(--paper); color: var(--espresso);
}
.work-modal::backdrop { background: rgba(42, 29, 20, .72); }
.work-modal[open] { display: grid; grid-template-columns: 1.05fr 1fr; }

/* Entrance: the panel lifts in, the cover settles out of a slight zoom and
   the meta rises in sequence. .is-closing is set by main.js before close(). */
@keyframes wm-panel-in { from { opacity: 0; transform: translateY(26px) scale(.965); } to { opacity: 1; transform: none; } }
@keyframes wm-panel-out { to { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes wm-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wm-cover-in { from { transform: scale(1.09); } to { transform: none; } }
@keyframes wm-rise { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }

.work-modal[open] { animation: wm-panel-in .46s cubic-bezier(.16, .84, .28, 1); }
.work-modal[open]::backdrop { animation: wm-backdrop-in .38s ease; }
.work-modal.is-closing { animation: wm-panel-out .2s ease forwards; }
.work-modal[open] .work-modal__media img { animation: wm-cover-in .9s cubic-bezier(.16, .84, .28, 1); }
.work-modal[open] .work-modal__body > * {
  animation: wm-rise .55s cubic-bezier(.16, .84, .28, 1) backwards;
}
.work-modal[open] .work-modal__tag   { animation-delay: .10s; }
.work-modal[open] .work-modal__title { animation-delay: .15s; }
.work-modal[open] .work-modal__meta  { animation-delay: .21s; }
.work-modal[open] .work-modal__text  { animation-delay: .27s; }
.work-modal[open] .work-modal__cta   { animation-delay: .33s; }
.work-modal__media { position: relative; background: var(--espresso); min-height: 260px; }
.work-modal__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; border: 0;
  background: rgba(42,29,20,.55); color: var(--paper); backdrop-filter: blur(4px);
}
.work-modal__close svg { width: 12px; height: 12px; }
.work-modal__body { padding: 2.1rem 2.1rem 2.3rem; overflow-y: auto; }
.work-modal__tag {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--rust);
}
.work-modal__title {
  margin-top: .7rem;
  font-family: var(--font-condensed); text-transform: uppercase;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.05; letter-spacing: .008em;
}
.work-modal__meta {
  margin: 1.4rem 0 1.5rem; padding: 1.1rem 0;
  border-top: 1px solid rgba(42,29,20,.12); border-bottom: 1px solid rgba(42,29,20,.12);
  display: grid; gap: .65rem;
}
.work-modal__meta > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 1rem; font-size: 13.5px; }
.work-modal__meta dt { color: rgba(42,29,20,.45); letter-spacing: .04em; }
.work-modal__meta dd { margin: 0; font-weight: 500; }
.work-modal__text { font-size: 15px; line-height: 1.72; color: rgba(42,29,20,.65); }
.work-modal__cta {
  display: inline-block; margin-top: 1.6rem;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--rust);
}
.work-modal__cta span { display: inline-block; transition: transform .3s ease; }
.work-modal__cta:hover span { transform: translateX(4px); }
@media (max-width: 760px) {
  .work-modal[open] { grid-template-columns: 1fr; }
  .work-modal__media { min-height: 0; aspect-ratio: 16 / 10; }
  .work-modal__body { padding: 1.6rem 1.5rem 2rem; }
}

/* ── autumnFRIENDS roster (feedback p5) ──────────────────── */
.friends-back {
  display: inline-block; margin-top: 1rem;
  font-size: 13px; color: rgba(42, 29, 20, .5);
  transition: color .3s ease;
}
.friends-back:hover { color: var(--rust); }

.friend-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; }
.chip {
  border: 1px solid rgba(42, 29, 20, .18); border-radius: 999px;
  padding: .5rem 1rem; cursor: pointer; background: none;
  font: inherit; font-size: 12.5px; letter-spacing: .04em; color: rgba(42, 29, 20, .65);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.chip:hover { border-color: var(--rust); color: var(--rust); }
.chip.is-active { background: var(--espresso); border-color: var(--espresso); color: var(--paper); }

.friend-grid {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: clamp(1.8rem, 3vw, 2.8rem) 1.5rem;
}
.friend-card { text-align: center; }
.friend-card__avatar {
  position: relative; margin: 0 auto; width: 100%; max-width: 180px;
  aspect-ratio: 1 / 1; border-radius: 999px; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 30% 15%, color-mix(in srgb, var(--tint) 45%, var(--paper)) 0%, var(--tint) 100%);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease;
}
.friend-card__avatar span {
  font-family: var(--font-condensed); font-size: 2.4rem; letter-spacing: .02em;
  color: rgba(250, 244, 236, .92);
}
.friend-card__avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.friend-card:hover .friend-card__avatar {
  transform: translateY(-6px);
  box-shadow: 0 26px 44px -28px rgba(42, 29, 20, .65);
}
.friend-card__name {
  margin-top: 1.1rem;
  font-family: var(--font-condensed); text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: .015em; line-height: 1.1;
}
.friend-card__handle { margin-top: .25rem; font-size: 13px; color: rgba(42, 29, 20, .5); }
.friend-card__socials {
  display: flex; justify-content: center; gap: .6rem; margin-top: .7rem;
  opacity: 0; transform: translateY(4px);
  transition: opacity .35s ease, transform .35s ease;
}
.friend-card:hover .friend-card__socials,
.friend-card:focus-within .friend-card__socials { opacity: 1; transform: none; }
.friend-card__socials a {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid rgba(42, 29, 20, .18); color: rgba(42, 29, 20, .6);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.friend-card__socials a:hover { background: var(--rust); border-color: var(--rust); color: var(--paper); }
.friend-card__socials svg { width: 15px; height: 15px; }
.friend-card__cat {
  display: block; margin-top: .6rem;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(42, 29, 20, .35);
}

.friends-empty { margin-top: 3rem; text-align: center; color: rgba(42, 29, 20, .5); }
.friends-cta {
  margin-top: clamp(4rem, 8vw, 6rem); padding-top: 2.4rem;
  border-top: 1px solid rgba(42, 29, 20, .12);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem;
}
.friends-cta p { font-size: 1.05rem; color: rgba(42, 29, 20, .7); }

/* ── Journal ─────────────────────────────────────────────── */
.journal-item {
  display: flex; flex-direction: column;
  padding: 1.8rem 0; border-bottom: 1px solid rgba(42,29,20,0.12);
  transition: opacity .3s ease;
}
@media (min-width: 768px) {
  .journal-item { border-bottom: none; padding: 0; }
}
.journal-item__thumb {
  aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  margin-bottom: 1.3rem; background: var(--espresso);
}
.journal-item__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9); transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.journal-item:hover .journal-item__thumb img { transform: scale(1.05); }

.journal-item__top {
  display: flex; justify-content: space-between;
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 1rem;
}
.journal-item__top span:last-child { color: rgba(42,29,20,0.4); }
.journal-item__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: .7rem;
  transition: color .3s ease;
}
.journal-item:hover .journal-item__title { color: var(--rust); }
.journal-item__desc { font-size: 14.5px; line-height: 1.55; color: rgba(42,29,20,0.6); margin-bottom: 1.1rem; }
.journal-item__link { margin-top: auto; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--espresso); }

/* ── Contact buttons ─────────────────────────────────────── */
.contact-btn {
  display: flex; flex-direction: column; gap: .4rem;
  padding: 1.4rem 1.8rem; min-width: 260px;
  border: 1px solid rgba(250,244,236,0.2); border-radius: 16px;
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
}
.contact-btn:hover { background: rgba(250,244,236,0.06); border-color: rgba(250,244,236,0.4); transform: translateY(-3px); }
.contact-btn__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.contact-btn__value { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; letter-spacing: -0.015em; }

/* ── Contact form ────────────────────────────────────────── */
.contact-form {
  background: rgba(250, 244, 236, 0.04);
  border: 1px solid rgba(250, 244, 236, 0.14);
  border-radius: 20px;
  padding: 2rem 1.9rem 1.9rem;
}
.contact-form__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem;
}
.field { display: flex; flex-direction: column; gap: .5rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(250, 244, 236, 0.6); font-weight: 600;
}
.field label .opt { text-transform: none; letter-spacing: 0; color: rgba(250,244,236,0.35); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(250, 244, 236, 0.05);
  border: 1px solid rgba(250, 244, 236, 0.16);
  border-radius: 10px;
  padding: .8rem .9rem;
  color: var(--paper);
  font-family: inherit; font-size: 15px;
  transition: border-color .25s ease, background .25s ease;
}
.field textarea { resize: vertical; min-height: 108px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(250, 244, 236, 0.32); }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D98E43' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem;
}
.field select option { color: #2A1D14; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--amber); background: rgba(250, 244, 236, 0.09);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #C9603E; }

.contact-form__foot {
  display: flex; align-items: center; gap: 1.2rem; margin-top: 1.6rem; flex-wrap: wrap;
}
.btn-submit {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--amber); color: var(--espresso);
  border: none; border-radius: 999px; cursor: pointer;
  padding: .95rem 1.7rem; font-family: inherit; font-size: 14px; font-weight: 600;
  transition: transform .3s ease, background .3s ease;
}
.btn-submit:hover { background: var(--paper); transform: translateY(-2px); }
.btn-submit__icon { transition: transform .3s ease; }
.btn-submit:hover .btn-submit__icon { transform: translateX(4px); }
.btn-submit[disabled] { opacity: .6; cursor: default; transform: none; }
.contact-form__status { font-size: 13.5px; color: rgba(250, 244, 236, 0.6); margin: 0; }
.contact-form__status.is-ok { color: var(--amber); }
.contact-form__status.is-err { color: #E29070; }

@media (max-width: 560px) {
  .contact-form__grid { grid-template-columns: 1fr; }
}

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .work-modal[open],
  .work-modal[open]::backdrop,
  .work-modal[open] .work-modal__media img,
  .work-modal[open] .work-modal__body > * { animation: none; }
  .work-card { transition: none; }
  .service-card__list li::before { opacity: 1; transform: none; transition: none; }
}
