/* ==========================================================================
   Blake Berard: Fractional CMO & Chief AI Officer
   Black canvas, neutral UI. The artwork provides the color.
   ========================================================================== */

:root {
  --bg: #000;
  --bg-2: #0a0a0a;
  --bg-3: #131313;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #ecebe7;
  --text-2: #b9b6b0;
  --muted: #85827c;
  --stone: #d9d4ca;

  --f-display: 'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1560px;
  --gutter: clamp(20px, 4vw, 56px);
  --gutter-wide: clamp(20px, 2.4vw, 44px); /* near-full-width sections */
  --section: clamp(88px, 11vw, 150px);
  --nav-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 300; margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: italic; }
::selection { background: var(--stone); color: #000; }
:focus-visible { outline: 1px solid var(--stone); outline-offset: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: 2560px; padding: 0 var(--gutter-wide); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; background: var(--text); color: #000;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Small type ---------- */
.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 30px;
  font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding-top: .18em; /* Josefin caps sit high; nudge them to optical center */
  color: #000; background: var(--text);
  border: 1px solid var(--text);
  border-radius: 999px;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--bg);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
  border-radius: inherit;
}
.btn:hover { color: var(--text); }
.btn:hover::before { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: #000; border-color: var(--text); }
.btn--small { --h: 40px; padding: 0 20px; padding-top: .18em; font-size: 12.5px; }

.icon-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: inline-grid; place-items: center; font-size: 18px;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), opacity .3s;
}
.icon-btn:hover { background: var(--text); color: #000; border-color: var(--text); }
.icon-btn:disabled { opacity: .3; pointer-events: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: transform .6s var(--ease), background .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font-family: var(--f-display); font-weight: 400;
  font-size: 19px; letter-spacing: .32em; text-transform: uppercase;
  padding-top: 4px; /* Josefin sits high; optically center */
}
.wordmark--small { font-size: 14px; }
/* bigger name on large screens: ~25px at 1200, 30px at 1440, 40px at 1920, capped at 48px */
@media (min-width: 1200px) {
  .nav .wordmark { font-size: clamp(24px, 2.1vw, 48px); letter-spacing: .3em; line-height: 1; }
}
@media (min-width: 1600px) { :root { --nav-h: 92px; } }
.nav__links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav__links a:not(.btn) {
  position: relative; font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
  transition: color .3s;
}
.nav__links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:not(.btn):hover, .nav__links a.is-current { color: var(--text); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle { display: none; flex: none; width: 44px; height: 44px; margin-right: -10px; position: relative; } /* flex:none stops it shrinking on tiny phones */
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--text);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav.is-open .nav__toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; z-index: 2; }
  .wordmark { position: relative; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(0, 0, 0, .96);
    opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav__links a:not(.btn) { font-family: var(--f-display); font-size: 30px; letter-spacing: .04em; text-transform: none; color: var(--text); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav.is-open { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  /* --pw = portrait width: 80% of the left half of the hero (40vw), capped at the
     image's 1000px. The photo is 1000x1842, so --ph is its height. The copy starts
     just below the face (about 56% down the photo) at every screen size. */
  --pw: min(40vw, 1000px);
  --ph: calc(var(--pw) * 1.842);
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-start;
  padding: calc(var(--ph) * .56) 0 110px;
  overflow: hidden;
}
.hero__content { position: relative; z-index: 2; }
.hero__title, .hero__lede, .hero__eyebrow { text-shadow: 0 2px 24px rgba(0, 0, 0, .65), 0 0 2px rgba(0, 0, 0, .4); }
.hero__content > * { max-width: 760px; }
.hero__eyebrow { margin-bottom: 34px; flex-wrap: wrap; row-gap: 8px; }
.hero__eyebrow > span:not(.dot) { white-space: nowrap; }
.hero__title {
  font-size: clamp(42px, 6.8vw, 100px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
}
.hero__title em { color: var(--text-2); font-weight: 200; }
.hero__title .line { display: block; overflow: hidden; padding: .06em 0 0; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; white-space: nowrap; }
.hero__title .hy { margin: 0 .06em 0 .04em; } /* real Josefin hyphen, with a touch of air on each side */
.hero__lede { font-size: clamp(17px, 1.35vw, 19px); color: var(--text-2); max-width: 540px !important; margin-bottom: 44px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* intro animation */
[data-hero] { opacity: 0; transform: translateY(24px); }
.hero__title [data-hero] { opacity: 1; transform: translateY(105%); }
.is-ready [data-hero] {
  opacity: 1; transform: none;
  transition: transform 1.3s var(--ease), opacity 1.3s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + 150ms);
}

/* portrait: hard-left at the top of the hero; the copy sits below the face */
.hero__portrait {
  position: absolute; z-index: 1; top: 0; left: 0;
  width: var(--pw); height: var(--ph);
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.6s var(--ease) .1s;
  will-change: transform;
}
.is-ready .hero__portrait { opacity: .9; }
.hero__portrait img {
  width: 100%; height: 100%; max-width: none;
  mix-blend-mode: lighten; /* its black drops out, so it never covers the art wall */
  transform: scale(1.05); transform-origin: left center;
  transition: transform 3.2s var(--ease) .1s;
  /* fade the ceiling light, the bottom and the right edge into the page */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 2%, #000 20%, #000 70%, transparent 98%),
    linear-gradient(to right, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 2%, #000 20%, #000 70%, transparent 98%),
    linear-gradient(to right, #000 72%, transparent 100%);
  mask-composite: intersect;
}
.is-ready .hero__portrait img { transform: none; }

/* mouse-follow light */
.hero__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60px circle at var(--mx, 30%) var(--my, 40%), rgba(255, 255, 255, .06), transparent 60%);
  transition: background .2s;
}

/* the art wall */
.hero__wall {
  position: absolute; z-index: 0;
  top: -10%; bottom: -10%; right: -4%;
  width: min(70vw, 1340px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  transform: rotate(-7deg);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%);
  mask-composite: intersect;
  opacity: 0;
  transition: opacity 2s var(--ease) .4s;
}
.is-ready .hero__wall { opacity: .78; }
.wall__col { position: relative; overflow: hidden; }
.wall__track {
  display: flex; flex-direction: column; gap: 14px;
  animation: wall-up var(--dur, 60s) linear infinite;
  will-change: transform;
}
.wall__col--rev .wall__track { animation-name: wall-down; }
.wall__track img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 4px; filter: saturate(.92); }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }

.hero::after { /* soften the wall behind the text */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .7) 0, rgba(0, 0, 0, 0) 150px), /* keeps the nav legible */
    radial-gradient(ellipse 60% 55% at 0% 82%, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)), /* behind the headline + copy */
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .9) 20%, rgba(0, 0, 0, .55) 38%, rgba(0, 0, 0, .15) 56%, rgba(0, 0, 0, 0) 70%);
}


@media (max-width: 900px) {
  .hero { --pw: 80vw; }
  .hero__eyebrow { font-size: 11px; letter-spacing: .18em; gap: 10px; }
  .hero__eyebrow::before { display: none; }
  .hero__wall { width: 120vw; right: -30vw; opacity: 0; }
  .is-ready .hero__wall { opacity: .2; }
  .is-ready .hero__portrait { opacity: .85; }
  .hero__portrait img { mix-blend-mode: normal; } /* keep the art wall from showing through the face */
  .hero::after { background: linear-gradient(0deg, #000 10%, rgba(0, 0, 0, .78) 55%, rgba(0, 0, 0, .3) 100%); }
}
@media (max-width: 600px) { .hero { --pw: 96vw; } }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  position: relative;
}
.stats::before, .stats::after {
  content: ''; position: absolute; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line);
}
.stats::before { top: 0; }
.stats::after { bottom: 0; }
.stat { padding: 48px 28px 44px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  font-family: var(--f-display); font-weight: 200;
  font-size: clamp(48px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 14px; display: flex; align-items: baseline;
}
.stat__num small { font-size: .42em; color: var(--muted); font-weight: 300; margin-left: 4px; letter-spacing: 0; }
.stat__num small:first-child { margin: 0 2px 0 0; }
.stat p { font-size: 16.8px; color: var(--muted); max-width: 264px; line-height: 1.55; }
@media (max-width: 900px) {
  .stat { padding: 36px 20px; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 30px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding-top: 0; }
.section__head { margin-bottom: clamp(56px, 7vw, 96px); max-width: 900px; }
.section__head .eyebrow { margin-bottom: 28px; }
.section__head--split {
  max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end;
}
.section__title { font-size: clamp(38px, 5.2vw, 76px); letter-spacing: -0.02em; line-height: 1.04; }
.section__title em { color: var(--text-2); font-weight: 200; }
.section__intro { color: var(--text-2); font-size: 18px; max-width: 560px; }
.section__head > .section__intro { margin-top: 32px; }
@media (max-width: 900px) { .section__head--split { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service {
  position: relative;
  padding: clamp(32px, 4vw, 56px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .6s var(--ease), transform .8s var(--ease);
}
.service::before { /* cursor spotlight */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(50px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .07), transparent 55%);
  transition: opacity .5s;
}
.service:hover { border-color: var(--line-2); }
.service:hover::before { opacity: 1; }
.service__top { margin-bottom: 40px; }
.service__index { display: block; font-size: 12px; letter-spacing: .2em; color: var(--muted); margin-bottom: 32px; }
.service__title { font-size: clamp(30px, 3vw, 44px); margin-bottom: 18px; letter-spacing: -0.015em; }
.service__tag { color: var(--text-2); font-size: 17px; }
.service__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service__list li {
  position: relative; padding: 16px 0 16px 32px; border-bottom: 1px solid var(--line);
  color: var(--text-2); font-size: 15.5px;
  transition: color .4s, padding-left .5s var(--ease);
}
.service__list li::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--muted);
  transition: width .5s var(--ease), background .4s;
}
.service__list li:hover { color: var(--text); padding-left: 40px; }
.service__list li:hover::before { width: 22px; background: var(--text); }

.engage { margin-top: clamp(64px, 8vw, 110px); }
.engage__title { font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 32px; }
.engage__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.engage__item { padding: 32px 32px 8px 0; }
.engage__item + .engage__item { padding-left: 32px; border-left: 1px solid var(--line); }
.engage__item h4 { font-size: 22px; font-weight: 400; margin-bottom: 12px; }
.engage__item p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .engage__grid { grid-template-columns: 1fr; }
  .engage__item, .engage__item + .engage__item { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.process__step { position: relative; padding: 40px 28px 0 0; }
.process__step::before { /* timeline rule that draws in */
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-2);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s;
}
.process__step.is-in::before { transform: scaleX(1); }
.process__step::after {
  content: ''; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--text);
}
.process__num { display: block; font-size: 12px; letter-spacing: .2em; color: var(--muted); margin-bottom: 18px; }
.process__step h3 { font-size: 26px; margin-bottom: 14px; }
.process__step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.about__lead { position: sticky; top: calc(var(--nav-h) + 40px); }
.about__lead .eyebrow { margin-bottom: 28px; }
.about__body > p { color: var(--text-2); margin-bottom: 24px; }
.about__body > p.about__big { font-size: clamp(20px, 1.8vw, 25px); line-height: 1.55; color: var(--text); font-weight: 300; margin-bottom: 28px; }
.pillars { margin: 56px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.pillar:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--line); }
.pillar dt { font-family: var(--f-display); font-size: 21px; margin-bottom: 10px; }
.pillar dd { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__lead { position: static; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(even) { padding: 24px 0; border-left: 0; }
}

/* ---------- Experience ---------- */
.timeline { border-top: 1px solid var(--line); }
.role {
  position: relative;
  display: grid; grid-template-columns: 220px 1fr; gap: 40px;
  padding: clamp(36px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}
.role::after { /* hover sweep */
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--text);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.role:hover::after { transform: scaleX(1); }
.role__years { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 12px; }
.role__company { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.02em; margin-bottom: 8px; transition: transform .7s var(--ease); }
.role:hover .role__company { transform: translateX(10px); }
.role__title { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-bottom: 20px; }
.role__desc { color: var(--text-2); max-width: 720px; }
.tags { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--f-display); font-size: 14px; font-weight: 600; color: var(--text-2); padding: 8px 15px 6px; border: 1px solid var(--line-2); border-radius: 999px; }
.skills { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.skills h4 { font-family: var(--f-body); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.skills p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
@media (max-width: 900px) {
  .role { grid-template-columns: 1fr; gap: 10px; }
  .role__years { padding-top: 0; }
  .skills { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }

/* ==========================================================================
   WORK GRID
   ========================================================================== */
.filters {
  position: relative; display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 36px; padding-bottom: 0;
}
.filter {
  position: relative; z-index: 1;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding-top: .18em;
  border: 1px solid var(--line);
  transition: color .45s var(--ease), border-color .45s;
}
.filter sup { font-size: 10px; letter-spacing: .05em; margin-left: 4px; opacity: .7; vertical-align: super; }
.filter:hover { color: var(--text); border-color: var(--line-2); }
.filter.is-active { color: #000; border-color: transparent; }
.filters__indicator {
  position: absolute; z-index: 0; top: 0; left: 0; height: 44px; border-radius: 999px; background: var(--text);
  transition: transform .6s var(--ease), width .6s var(--ease);
}

/* Masonry: JS distributes tiles into these columns (shortest first) */
.grid {
  --gap: clamp(8px, 1vw, 14px);
  display: flex; align-items: flex-start; gap: var(--gap);
  transition: opacity .35s var(--ease);
}
.grid__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.grid.is-fading { opacity: 0; }
.tile {
  position: relative; display: block; width: 100%;
  overflow: hidden; border-radius: 4px;
  background: var(--bg-3);
  opacity: 0; transform: translateY(26px) scale(.985);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.tile.is-in { opacity: 1; transform: none; }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.1s var(--ease), filter .8s var(--ease), opacity .6s;
  opacity: 0;
}
.tile img.is-loaded { opacity: 1; }
.tile::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .82) 100%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.tile__cap {
  position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px;
  text-align: left;
  transform: translateY(12px); opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.tile__cat { display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.tile__title { display: block; font-family: var(--f-display); font-size: 19px; line-height: 1.2; color: #fff; }
.tile__plus {
  position: absolute; z-index: 2; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5); color: #fff; display: grid; place-items: center; font-size: 16px; line-height: 1;
  opacity: 0; transform: scale(.7) rotate(-45deg); transition: transform .6s var(--ease), opacity .5s;
  background: rgba(0, 0, 0, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
@media (hover: hover) {
  .tile:hover img { transform: scale(1.06); }
  .tile:hover::after, .tile:focus-visible::after { opacity: 1; }
  .tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; transform: none; }
  .tile:hover .tile__plus, .tile:focus-visible .tile__plus { opacity: 1; transform: none; }
  .grid:hover .tile.is-in:not(:hover) img { filter: brightness(.55) saturate(.7); }
}
.grid__more { display: flex; justify-content: center; margin-top: 56px; }
.grid__more[hidden] { display: none; }
.noscript { color: var(--muted); }

/* ==========================================================================
   PHOTOGRAPHY STRIP
   ========================================================================== */
.section--photo { padding-bottom: calc(var(--section) * .8); }
.section__intro-wrap { display: flex; flex-direction: column; gap: 28px; }
.strip__controls { display: flex; gap: 10px; }
.strip {
  display: flex; gap: clamp(10px, 1.2vw, 18px);
  overflow-x: auto; overflow-y: hidden;
  padding: 0 var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; }
.strip::after { content: ''; flex: 0 0 1px; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging .shot { pointer-events: none; }
.shot {
  position: relative; flex: 0 0 auto;
  height: clamp(300px, 62vh, 640px);
  border-radius: 4px; overflow: hidden; background: var(--bg-3);
  scroll-snap-align: start;
  opacity: 0; transform: translateX(40px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0ms);
}
.shot.is-in { opacity: 1; transform: none; }
@media (max-width: 700px) { .shot { height: 52vh; height: 52svh; min-height: 280px; } }
.shot img { height: 100%; width: auto; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; opacity: 0; user-select: none; -webkit-user-drag: none; }
.shot img.is-loaded { opacity: 1; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75));
  font-family: var(--f-display); font-size: 18px;
  opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
@media (hover: hover) {
  .shot:hover img { transform: scale(1.04); }
  .shot:hover figcaption { opacity: 1; transform: none; }
}
.strip__progress { margin-top: 36px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.strip__progress span { position: absolute; inset: 0; background: var(--text); transform-origin: left; transform: scaleX(0); transition: transform .2s linear; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { border-top: 1px solid var(--line); overflow: hidden; }
.contact .eyebrow { margin-bottom: 32px; }
.contact__title { font-size: clamp(56px, 11vw, 168px); line-height: .95; letter-spacing: -0.035em; font-weight: 300; margin-bottom: 40px; }
.contact__title em { color: var(--text-2); font-weight: 200; }
.contact__lede { color: var(--text-2); max-width: 560px; font-size: 18px; margin-bottom: 56px; }
.contact__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 40px; border-top: 1px solid var(--line); }
.contact__email, .contact__meta .contact__phone {
  position: relative; font-family: var(--f-display); font-size: clamp(26px, 3.6vw, 52px); letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 18px;
}
.contact__email span { display: inline-block; transition: transform .6s var(--ease); }
.contact__email::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease);
}
.contact__email:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__meta .contact__phone { color: var(--text); padding: 0; margin: 0 0 14px; align-self: flex-end; line-height: 1.1; }
.contact__phone::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease);
}
.contact__phone:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__label { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact__email:hover span { transform: translateX(10px); }
.contact__meta { display: flex; flex-direction: column; gap: 4px; text-align: right; color: var(--muted); font-size: 15px; }
.contact__meta a { color: var(--text-2); transition: color .3s; padding: 8px 0; margin: -8px 0; } /* bigger tap area, same layout */
.contact__meta a:hover { color: var(--text); }
@media (max-width: 700px) { .contact__meta { text-align: left; } .contact__meta .contact__phone { align-self: flex-start; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 13px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer .wordmark { color: var(--text); }
.footer__top { transition: color .3s; padding: 12px 0; margin: -12px 0; }
.footer__top:hover { color: var(--text); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .5s var(--ease);
}
.lightbox.is-open .lightbox__backdrop { opacity: 1; }
.lightbox__stage {
  position: absolute; inset: 72px 96px 88px; display: grid; place-items: center;
  pointer-events: none;
}
.lightbox__frame {
  pointer-events: auto;
  max-width: 100%; max-height: 100%;
  display: grid; place-items: center;
  opacity: 0; transform: scale(.97);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.lightbox.is-open .lightbox__frame.is-shown { opacity: 1; transform: none; }
.lightbox__frame img {
  max-width: 100%; max-height: calc(100vh - 160px); max-height: calc(100svh - 160px);
  width: auto; height: auto; object-fit: contain; border-radius: 3px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
/* tall website screenshots scroll inside the frame */
.lightbox__frame.is-tall {
  width: min(1100px, 100%); height: 100%;
  overflow-y: auto; overscroll-behavior: contain; display: block; border-radius: 3px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.lightbox__frame.is-tall img { max-height: none; width: 100%; border-radius: 0; }
.lightbox__bar {
  position: absolute; left: 96px; right: 96px; bottom: 0; height: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease) .1s, transform .6s var(--ease) .1s;
}
.lightbox.is-open .lightbox__bar { opacity: 1; transform: none; }
.lightbox__caption { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.lightbox__cat { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.lightbox__title { font-family: var(--f-display); font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__count { font-size: 13px; letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.lightbox__btn {
  position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--text); display: grid; place-items: center; font-size: 18px;
  background: rgba(0, 0, 0, .4);
  opacity: 0; transition: opacity .5s var(--ease), background .3s, color .3s, border-color .3s;
}
.lightbox.is-open .lightbox__btn { opacity: 1; }
.lightbox__btn:hover { background: var(--text); color: #000; border-color: var(--text); }
.lightbox__close { top: 14px; right: 22px; font-size: 15px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__hint {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.lightbox__hint.is-visible { opacity: 1; }
.lightbox__loader {
  position: absolute; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-2); border-top-color: var(--text);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .lightbox__stage { inset: 64px 12px 120px; }
  .lightbox__bar { left: 20px; right: 20px; height: 120px; align-items: flex-start; padding-top: 20px; flex-direction: column; gap: 4px; }
  .lightbox__caption { flex-direction: column; gap: 2px; max-width: calc(100% - 140px); }
  .lightbox__title { white-space: normal; font-size: 19px; line-height: 1.25; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 28px; transform: none; }
  .lightbox__prev { left: auto; right: 84px; }
  .lightbox__count { margin-top: 6px; font-size: 12px; }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  [data-reveal], [data-hero], .hero__title [data-hero], .tile, .shot { opacity: 1 !important; transform: none !important; }
  .wall__track { animation: none !important; }
}

/* very narrow phones (Galaxy Fold, small Androids): keep the wordmark and menu button side by side */
@media (max-width: 360px) {
  .wordmark { font-size: 15px; letter-spacing: .24em; padding: 12px 0 8px; }
  .contact__email, .contact__meta .contact__phone { font-size: 22px; gap: 12px; }
  .hero__eyebrow .dot { display: none; }
  .hero__eyebrow { column-gap: 0; flex-direction: column; align-items: flex-start; }
}
