/* ============================================================
   Bear Water Branding — Brooke Nedvěd
   Shared design system
   ============================================================ */

:root {
  --cream: #F7F2EC;
  --cream-2: #EFE7DC;
  --ink: #1E1B17;
  --ink-soft: #46413a;
  --sage: #5B6F51;
  --sage-deep: #4B6044;
  --terracotta: #A94F34;
  --taupe: #D9CFC2;
  --taupe-soft: #E7DFD2;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-pad-y: clamp(3.5rem, 7vw, 7rem);

  --ease: cubic-bezier(0.7, 0, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis-active { scroll-behavior: auto; }
html.lenis body, html.lenis-active body { overscroll-behavior: contain; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
a.link {
  color: var(--ink);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
  transition: color .3s var(--ease-soft), border-color .3s var(--ease-soft);
}
a.link:hover { color: var(--sage); border-bottom-color: var(--terracotta); }

button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}
.site-nav__logo:focus-visible,
.site-nav__links a:focus-visible,
.mobile-menu__link:focus-visible,
.pill:focus-visible,
.text-link:focus-visible,
.work-card:focus-visible,
.filter-pill:focus-visible,
.accordion__btn:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible,
.to-top:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 8px;
}
.pill:focus-visible,
.filter-pill:focus-visible,
.to-top:focus-visible { border-radius: 999px; }
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline-offset: 5px;
  border-bottom-color: var(--ink);
}

::selection { background: var(--sage); color: var(--cream); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: 1480px; }
.section { padding: var(--section-pad-y) 0; position: relative; }
.section--tight { padding: clamp(3rem, 7vw, 6rem) 0; }
.hero.section--tight { min-height: auto; padding-top: 140px; padding-bottom: clamp(48px, 6vw, 96px); }
.grid { display: grid; gap: var(--gutter); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--sage);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  /* Loose enough that Fraunces descenders (g, p, y) don't collide with
     the next wrapped line's ascenders. The home/services hero opts back
     into tight stacking via .hero__line below, where each visual line is
     its own block. */
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.display--xxl { font-size: clamp(44px, 9vw, 132px); }
.display--xl  { font-size: clamp(38px, 7vw, 104px); }
.display--lg  { font-size: clamp(32px, 5.2vw, 80px); }
.display--md  { font-size: clamp(28px, 3.8vw, 56px); }
.display--sm  { font-size: clamp(22px, 2.9vw, 38px); }
.italic { font-style: italic; }

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  max-width: 60ch;
  color: var(--ink-soft);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; }

p + p { margin-top: 1em; }

/* ---------- Buttons / pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color .35s var(--ease-soft);
}
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sage);
  transform: translateX(-101%);
  transition: transform .45s var(--ease);
  z-index: -1;
}
.pill:hover::before { transform: translateX(0); }
.pill--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.pill--ghost::before { background: var(--ink); }
.pill--ghost:hover { color: var(--cream); }
.pill--cream {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.pill--cream::before { background: var(--terracotta); }
.pill--cream:hover { color: var(--cream); }
.pill--sm { padding: 10px 18px; font-size: 12px; }

.text-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .3s, border-color .3s, gap .3s;
}
.text-link:hover { color: var(--sage); gap: 12px; border-bottom-color: var(--terracotta); }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px var(--gutter);
  transition: padding .25s var(--ease-soft), background-color .25s var(--ease-soft), border-color .25s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.site-nav.is-thin {
  padding: 14px var(--gutter);
  background: rgba(247, 242, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--taupe);
}
.site-nav__inner {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.site-nav__logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.95;
  font-family: var(--font-display);
  transition: transform .25s var(--ease-soft);
  transform-origin: left center;
}
.site-nav.is-thin .site-nav__logo { transform: scale(0.78); }
.site-nav__logo-mark { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.site-nav__logo-sub { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--font-body); color: var(--sage-deep); font-weight: 500; margin-top: 2px; }
.site-nav__links {
  display: flex;
  gap: clamp(18px, 2.5vw, 36px);
  justify-content: center;
}
.site-nav__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}
.site-nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--ink); transform-origin: right; transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.site-nav__links a:hover::after { transform-origin: left; transform: scaleX(1); }
.site-nav__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 500;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(122, 140, 111, 0.18);
  animation: pulse 2.4s var(--ease-soft) infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(122, 140, 111, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(122, 140, 111, 0); }
}
.site-nav__hamburger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  transition: transform .3s var(--ease);
}
.site-nav__hamburger[aria-expanded="true"] { transform: rotate(90deg); }
.site-nav__hamburger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px;
  background: var(--ink); transition: transform .35s var(--ease), opacity .2s;
}
.site-nav__hamburger span:nth-child(1) { top: 16px; }
.site-nav__hamburger span:nth-child(2) { top: 21px; }
.site-nav__hamburger span:nth-child(3) { top: 26px; }
.site-nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 880px) {
  .site-nav__links, .site-nav__status { display: none; }
  .site-nav__hamburger { display: block; }
  .site-nav__inner { grid-template-columns: 1fr auto; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 90;
  transform: translateY(-104%);
  clip-path: inset(0 0 100% 0);
  transition: transform .32s var(--ease), clip-path .32s var(--ease);
  padding: 120px var(--gutter) 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.mobile-menu.is-open { transform: translateY(0); clip-path: inset(0 0 0 0); pointer-events: auto; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(36px, 9.5vw, 70px);
  line-height: 1;
  overflow: hidden;
  display: block;
}
.mobile-menu__link span {
  display: inline-block;
  transform: translateY(110%);
  clip-path: inset(100% 0 0 0);
  transition: transform .55s var(--ease), clip-path .55s var(--ease);
}
.mobile-menu.is-open .mobile-menu__link span { transform: translateY(0); clip-path: inset(0 0 0 0); }
.mobile-menu.is-open .mobile-menu__link:nth-child(1) span { transition-delay: .15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) span { transition-delay: .22s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) span { transition-delay: .29s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) span { transition-delay: .36s; }
.mobile-menu__meta { font-size: 14px; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 24px; }

/* ---------- Intro loader ---------- */
.intro-loader {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: transform .8s var(--ease);
}
.intro-loader.is-hidden { transform: translateY(-100%); }
.intro-loader.is-gone { display: none; }
.intro-loader__inner {
  width: min(94vw, 760px);
  display: flex;
  justify-content: center;
}
.intro-loader__mark {
  --intro-gap: clamp(14px, 3vw, 44px);
  --intro-slot: clamp(150px, 28vw, 260px);
  display: grid;
  grid-template-columns: repeat(2, var(--intro-slot));
  column-gap: var(--intro-gap);
  align-items: center;
  justify-content: center;
  color: #1E1B17;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(56px, 8vw, 96px);
  line-height: .9;
  letter-spacing: -.055em;
  white-space: nowrap;
  visibility: hidden;
}
.intro-loader.is-ready .intro-loader__mark { visibility: visible; }
.intro-loader__word {
  grid-row: 1;
  justify-self: center;
  will-change: transform, opacity;
  animation-play-state: paused;
}
.intro-loader.is-ready .intro-loader__word { animation-play-state: running; }
.intro-loader__word--brooke {
  grid-column: 1;
  animation: intro-brooke-out 1.1s var(--ease) .65s forwards;
}
.intro-loader__word--surname {
  grid-column: 2;
  animation: intro-surname-shift 1.1s var(--ease) .65s forwards;
}
.intro-loader__word--design {
  grid-column: 2;
  opacity: 0;
  transform: translateX(18px);
  animation: intro-design-in 1.1s var(--ease) .65s forwards;
}
@keyframes intro-brooke-out {
  to { opacity: 0; transform: translateX(18px); }
}
@keyframes intro-surname-shift {
  to { transform: translateX(calc((var(--intro-slot) + var(--intro-gap)) * -1)); }
}
@keyframes intro-design-in {
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .intro-loader__word { animation: none; }
}

/* ---------- Reveal primitives ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-clip {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.reveal-clip > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .8s var(--ease);
}
.reveal-clip.is-in > span { transform: translateY(0); }

.mask-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--taupe-soft);
}
.mask-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1s var(--ease), filter .6s var(--ease-soft);
}
.mask-image::after {
  content: ""; position: absolute; inset: 0;
  background: var(--cream);
  opacity: 1;
  pointer-events: none;
  transition: opacity .75s var(--ease);
}
.mask-image.is-in::after { opacity: 0; }
.mask-image.is-in img { transform: scale(1); }
.mask-image--full { border-radius: 0; }

/* ---------- Floating illustration accents ---------- */
.float-accent {
  position: absolute;
  pointer-events: none;
  color: var(--sage);
  opacity: 0.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  animation: drift 6s ease-in-out infinite;
}
.float-accent--b { animation-delay: -2s; animation-duration: 7.5s; }
.float-accent--c { animation-delay: -4s; animation-duration: 8.5s; }
@keyframes drift {
  0%,100% { transform: translateY(0) rotate(var(--rot,0deg)); }
  50%     { transform: translateY(-6px) rotate(calc(var(--rot,0deg) + 1.5deg)); }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: clamp(60px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero__inner { max-width: 1480px; margin: 0 auto; width: 100%; padding: 0 var(--gutter); position: relative; }
.hero__eyebrow { margin-bottom: clamp(32px, 6vw, 56px); opacity: 0; transform: translateY(14px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.hero.is-in .hero__eyebrow { opacity: 1; transform: translateY(0); transition-delay: .44s; }
.hero__headline {
  margin-bottom: clamp(40px, 6vw, 80px);
  overflow-wrap: break-word;
  hyphens: none;
}
.hero__line {
  display: block;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s var(--ease);
  /* Each .hero__line is a single visual line on its own block, so we
     can stack tightly without risking descender collisions. */
  line-height: 0.95;
  padding-bottom: .18em;
  margin-bottom: -.18em;
}
.hero__headline .hero__line:nth-child(1) { font-size: clamp(44px, 9vw, 132px); }
.hero__headline .hero__line:nth-child(2) { font-size: clamp(38px, 7.6vw, 112px); font-style: italic; }
.hero__headline .hero__line:nth-child(3) { font-size: clamp(34px, 6.4vw, 96px); }
.hero__line > span {
  display: inline-block;
  max-width: 100%;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.hero.is-in .hero__line { clip-path: inset(0 0 0 0); }
.hero.is-in .hero__line > span { transform: translateY(0); }
.hero.is-in .hero__line:nth-child(1),
.hero.is-in .hero__line:nth-child(1) > span { transition-delay: 0.00s; }
.hero.is-in .hero__line:nth-child(2),
.hero.is-in .hero__line:nth-child(2) > span { transition-delay: 0.08s; }
.hero.is-in .hero__line:nth-child(3),
.hero.is-in .hero__line:nth-child(3) > span { transition-delay: 0.16s; }
.hero__bottom {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(24px, 5vw, 60px);
}
.hero.is-in .hero__bottom { opacity: 1; transform: translateY(0); transition-delay: .5s; }
.hero__sub { max-width: 560px; }
.hero__cta { display: flex; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.hero__meta {
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.9;
}
.hero__meta strong { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__meta { text-align: left; }
}

/* ---------- Marquee ---------- */
.marquee {
  display: flex;
  overflow: hidden;
  gap: 24px;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
  will-change: transform;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---------- Work cards ---------- */
.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--taupe-soft);
  flex-shrink: 0;
}
.work-card__media {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  background: var(--taupe-soft);
}
.work-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease), filter .5s var(--ease-soft), opacity .3s var(--ease-soft);
}
.work-card--image-lift .work-card__media img { filter: brightness(1.14) contrast(0.98) saturate(1.04); }
.work-card:hover .work-card__media img { transform: scale(1.04); filter: saturate(0.85) brightness(0.95); }
.work-card--image-lift:hover .work-card__media img { filter: brightness(1.04) saturate(0.9); }
img.is-broken { opacity: 0; }
.work-card__pill {
  position: absolute;
  left: 18px; bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .3s;
}
.work-card:hover .work-card__pill { transform: translateY(0); opacity: 1; }
.work-card__info {
  padding: 18px 4px 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.work-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.work-card__tags {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.work-card--marquee { width: clamp(280px, 28vw, 420px); }

/* ---------- Service cards ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}
@media (max-width: 880px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--taupe);
  border-radius: 14px;
  background: var(--cream);
  position: relative;
  transition: background-color .4s var(--ease-soft), border-color .4s var(--ease-soft), transform .4s var(--ease-soft);
  display: flex; flex-direction: column;
  gap: 22px;
}
.svc-card:hover { background: var(--taupe-soft); border-color: var(--ink); }
.svc-card__num { font-family: var(--font-display); font-style: italic; font-size: 28px; color: var(--sage-deep); }
.svc-card__title { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.svc-card__body { color: var(--ink-soft); font-size: 15px; }
.svc-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.svc-card__tags span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  padding: 6px 10px;
  border: 1px solid var(--taupe);
  border-radius: 999px;
}
.svc-card__price { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.05em; }

/* ---------- Testimonials ---------- */
.testimonial {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--taupe);
}
.testimonial:last-child { border-bottom: 1px solid var(--taupe); }
.testimonial__media { aspect-ratio: 4/5; }
.testimonial__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.testimonial__attr { margin-top: 24px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-deep); }
.testimonial__attr strong { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) {
  .testimonial { grid-template-columns: 1fr; }
}

/* ---------- Closing CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(80px, 14vw, 200px) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(34px, 6vw, 96px); max-width: 14ch; margin: 0 auto; line-height: 1.05; }
.cta-band p { max-width: 60ch; margin: 24px auto 36px; color: rgba(247,242,236,0.7); }
.cta-band .pill { margin-top: clamp(36px, 5vw, 56px); }
.cta-band p + .pill { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px var(--gutter) 28px;
}
.site-footer__inner {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(247,242,236,0.18);
}
@media (max-width: 880px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}
.site-footer__wordmark {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.site-footer__addr, .site-footer__email { font-size: 14px; line-height: 1.6; color: rgba(247,242,236,0.7); }
.site-footer__email a { border-bottom: 1px solid rgba(247,242,236,0.3); }
.site-footer .eyebrow { color: rgba(247,242,236,0.55); margin-bottom: 16px; }
.site-footer .eyebrow::before { background: rgba(247,242,236,0.4); }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer ul a { color: rgba(247,242,236,0.85); transition: color .25s; }
.site-footer ul a:hover { color: var(--cream); }
.site-footer__big { font-family: var(--font-display); font-size: 28px; line-height: 1.1; margin-bottom: 18px; }
.site-footer__col--cta .pill--ghost { color: var(--cream); border-color: var(--cream); }
.site-footer__col--cta .pill--ghost::before { background: var(--cream); }
.site-footer__col--cta .pill--ghost:hover { color: var(--ink); }
.site-footer__strip {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(247,242,236,0.55);
  letter-spacing: 0.04em;
}
@media (max-width: 600px) { .site-footer__strip { flex-direction: column; gap: 10px; text-align: center; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .25s;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--sage); }

/* ---------- Rotating badge ---------- */
.rotating-badge {
  width: 156px; height: 156px;
  position: relative;
  color: var(--sage);
}
.rotating-badge__svg { width: 100%; height: 100%; animation: spin 25s linear infinite; }
.rotating-badge__dot {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Filter pills (Work) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 60px);
}
.filter-pill {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--taupe);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: transparent;
  transition: background-color .3s var(--ease-soft), color .3s var(--ease-soft), border-color .3s var(--ease-soft);
}
.filter-pill:hover { border-color: var(--sage); color: var(--sage-deep); }
.filter-pill.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- Masonry ---------- */
.masonry { columns: 2; column-gap: clamp(20px, 2.5vw, 40px); }
@media (max-width: 760px) { .masonry { columns: 1; } }
@media (max-width: 760px) {
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; mask-image: none; -webkit-mask-image: none; }
  .marquee__track { animation: none; }
  .work-card--marquee { width: 82vw; scroll-snap-align: start; }
}
.masonry > * { break-inside: avoid; margin-bottom: clamp(20px, 2.5vw, 40px); display: block; }

/* ---------- Form (Contact) ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--taupe);
  padding: 22px 0 12px;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color .3s var(--ease-soft);
  border-radius: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field label {
  position: absolute;
  left: 0;
  top: 22px;
  font-size: 14px;
  color: var(--ink-soft);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .3s var(--ease), color .3s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select.has-value + label,
.field.is-focused label,
.field.has-value label {
  transform: translateY(-22px) scale(0.8);
  color: var(--sage-deep);
}
.field:focus-within { border-color: var(--ink); }
.field:focus-within input, .field:focus-within textarea, .field:focus-within select { border-color: var(--ink); }
.honeypot { position: absolute; left: -9999px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.form__error { color: #a32a2a; margin-top: 12px; min-height: 1.2em; }
.form__success { display: none; margin-top: 12px; min-height: 1.2em; }
.form.is-sent .form__success { display: block; }
.form.is-sent .form__fields { display: none; }
.form__success svg circle,
.form__success svg path { stroke-dasharray: 226; stroke-dashoffset: 226; }
.form__success svg path { stroke-dasharray: 64; stroke-dashoffset: 64; }
.form.is-sent .form__success svg circle { animation: draw-check .75s var(--ease) forwards; }
.form.is-sent .form__success svg path { animation: draw-check .55s var(--ease) .32s forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }

/* ---------- Accordion (Services FAQ) ---------- */
.accordion__item {
  border-bottom: 1px solid var(--taupe);
}
.accordion__btn {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
}
.accordion__btn::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 24px;
  transition: transform .35s var(--ease);
}
.accordion__item.is-open .accordion__btn::after { transform: rotate(45deg); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
  color: var(--ink-soft);
}
.accordion__panel-inner { padding: 0 0 24px; max-width: 60ch; }
.accordion__item.is-open .accordion__panel { max-height: 400px; }

/* ---------- About stacked variants ---------- */
.stacked-variant {
  font-family: var(--font-display);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 6vh 0;
}
.stacked-variant--1 { font-size: clamp(34px, 6vw, 88px); font-weight: 500; }
.stacked-variant--2 { font-size: clamp(28px, 4.6vw, 68px); font-style: italic; font-weight: 500; text-indent: 8vw; }
.stacked-variant--3 { font-size: clamp(22px, 3.3vw, 48px); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.stacked-variant--4 { font-size: clamp(20px, 2.6vw, 38px); font-weight: 500; max-width: 18ch; }
.stacked-variant.reveal { transform: translateX(-40px); }
.stacked-variant--2.reveal,
.stacked-variant--4.reveal { transform: translateX(40px); }
.stacked-variant.reveal.is-in { transform: translateX(0); }

/* ---------- Editorial work detail treatment ---------- */
.editorial-hero { padding-top: clamp(150px, 17vw, 230px); }
.editorial-intro { font-size: clamp(20px, 2.1vw, 30px); line-height: 1.35; }
.editorial-pullquote {
  max-width: 13ch;
  margin-left: auto;
  font-size: clamp(46px, 8.6vw, 132px);
  line-height: .88;
  color: var(--sage-deep);
}
.editorial-spread { row-gap: clamp(44px, 8vw, 110px); }
.editorial-note { align-self: end; max-width: 32ch; }
@media (max-width: 760px) { .editorial-pullquote { margin-left: 0; } }

/* ---------- Studio principles ---------- */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 60px); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.principle__num { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--sage-deep); }
.principle__title { font-family: var(--font-display); font-size: clamp(24px, 2.5vw, 34px); margin: 8px 0 12px; line-height: 1.1; }
.principle__body { color: var(--ink-soft); font-size: 15px; max-width: 40ch; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px var(--gutter) 80px;
}
.notfound h1 { font-size: clamp(40px, 8vw, 116px); margin-bottom: 24px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .intro-loader { display: none !important; }
  .marquee__track { animation: none !important; transform: none !important; }
  .float-accent { animation: none !important; }
  .rotating-badge__svg { animation: none !important; }
}

/* ---------- Misc helpers ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link:focus-visible {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 400;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  clip: auto;
  overflow: visible;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 760px) { .row-2 { grid-template-columns: 1fr; } }
.row-2--centered { align-items: center; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row span {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid var(--taupe); border-radius: 999px;
  color: var(--sage-deep);
}

.credentials {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
}
.credentials span { display: inline-flex; align-items: center; gap: 16px; }
.credentials span:not(:last-child)::after { content: "·"; color: var(--sage); }

.image-caption { margin-top: 14px; font-size: 14px; color: var(--ink-soft); font-style: italic; max-width: 60ch; }

.next-project {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(32px, 5vw, 60px) 0;
  border-top: 1px solid var(--taupe);
}
.next-project__label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-deep); }
.next-project__title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 56px); line-height: 1.0; margin-top: 6px; }

.breadcrumb { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 24px; }

/* ---------- Process bullets ---------- */
.process { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.process li {
  counter-increment: step;
  padding-left: 56px;
  position: relative;
  font-size: 16px;
  color: var(--ink-soft);
  padding-top: 4px;
  min-height: 36px;
}
.process li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--sage);
}
.process li strong { color: var(--ink); font-weight: 500; }

/* ---------- What's next strip (Contact) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 6vw, 80px); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step__num { font-family: var(--font-display); font-style: italic; color: var(--sage-deep); font-size: 18px; }
.step__title { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); margin: 8px 0 8px; line-height: 1.1; }
.step__body { color: var(--ink-soft); font-size: 14px; }

.breadcrumb ol { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.breadcrumb li { display:inline; }
