/* Final polish preview — additive layer, intentionally restrained. */
:root {
  --polish-accent: #b9a22d;
  --polish-ease: cubic-bezier(.22, 1, .36, 1);
  --polish-shadow: 0 18px 44px rgba(23, 24, 21, .06);
}

/* Editorial rhythm */
.section { padding-block: clamp(80px, 7.4vw, 112px); }
.section-head { margin-bottom: clamp(46px, 4.4vw, 66px); }
.section-head h2 { margin-top: 18px; }
.section-intro { margin-top: 22px; }
.services .heading { margin-bottom: 50px; }
.services-grid { gap: clamp(30px, 3vw, 48px); }
.work-grid { row-gap: clamp(60px, 6vw, 88px); }
.card-copy { padding-top: 28px; }
.profile-pillars { margin-top: 42px; }

/* Homepage edit: preserve source material and assets, but remove repetition. */
#beesness,
#lamartina,
.work-archive,
.media-more,
.proof a[href="#lamartina"] { display: none !important; }
.selected-work { padding-bottom: clamp(72px, 6.8vw, 104px); }
.media { padding-bottom: clamp(68px, 6vw, 94px); }
.press-section { padding-top: clamp(68px, 6vw, 94px); }

/* Small, personal accent: Beesness-inspired, never dominant. */
.hero h1 span { color: var(--polish-accent); }
.eyebrow,
.kicker { text-rendering: geometricPrecision; }
.site-header {
  transition: box-shadow .45s ease, border-color .45s ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(37, 37, 34, .1);
  box-shadow: var(--polish-shadow);
}
#main:focus { outline: none; }

/* Hero: a nearly imperceptible cinematic lift. */
.hero-photo { overflow: hidden; }
.hero-photo img {
  --polish-parallax: 0px;
  transform: translate3d(0, var(--polish-parallax), 0) scale(1.012);
  transform-origin: 50% 45%;
}
.polish-enhanced .hero-title,
.polish-enhanced .hero-photo,
.polish-enhanced .hero-copy {
  opacity: 0;
  transform: translateY(12px);
}
.polish-enhanced.polish-hero-visible .hero-title,
.polish-enhanced.polish-hero-visible .hero-photo,
.polish-enhanced.polish-hero-visible .hero-copy {
  opacity: 1;
  transform: none;
  transition: opacity .82s var(--polish-ease), transform .82s var(--polish-ease);
}
.polish-enhanced.polish-hero-visible .hero-photo { transition-delay: .05s; }
.polish-enhanced.polish-hero-visible .hero-copy { transition-delay: .12s; }

/* Quiet, uniform scroll reveals. */
.polish-enhanced .polish-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .74s var(--polish-ease), transform .74s var(--polish-ease);
}
.polish-enhanced .polish-reveal.is-polish-visible {
  opacity: 1;
  transform: none;
}

/* Collaboration names have a shared optical box and weight. */
.proof { gap: clamp(16px, 2vw, 30px); }
.proof a {
  position: relative;
  display: flex;
  min-height: 84px;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  color: rgba(37, 37, 34, .86);
  transition: color .28s ease, background-color .28s ease, transform .28s ease;
}
.proof a::after {
  position: absolute;
  right: 14px;
  bottom: 10px;
  left: 14px;
  height: 1px;
  content: "";
  background: var(--polish-accent);
  opacity: 0;
  transform: scaleX(.25);
  transform-origin: left;
  transition: opacity .28s ease, transform .34s var(--polish-ease);
}

/* CTA system: consistent, editorial and recognisable. */
.button {
  position: relative;
  border: 1px solid var(--ink);
  box-shadow: inset 0 -2px 0 var(--polish-accent);
  letter-spacing: .025em;
  transition: color .3s ease, background-color .3s ease, transform .3s var(--polish-ease), box-shadow .3s ease;
}
.text-link {
  border-bottom-color: rgba(37, 37, 34, .56);
  transition: color .28s ease, border-color .28s ease, transform .28s var(--polish-ease);
}
.beesness .text-link { border-bottom-color: rgba(247, 246, 242, .48); }

/* Images remain untouched; only their viewport receives a tiny hover lift. */
.work > figure,
.iulm-photos,
.cover-pair,
.certificate,
.book-images { overflow: hidden; }
.work > img,
.work > figure img,
.iulm-photos img,
.cover-pair img,
.certificate img,
.book-cover {
  transform-origin: center;
  transition: transform .65s var(--polish-ease), filter .65s ease;
}
.media-highlight {
  transition: transform .38s var(--polish-ease), box-shadow .38s ease;
}
.media-play { transition: border-color .3s ease, background-color .3s ease, transform .3s var(--polish-ease); }

@media (hover: hover) and (pointer: fine) {
  .proof a:hover {
    color: var(--ink);
    background: rgba(37, 37, 34, .025);
    text-decoration: none;
    transform: translateY(-2px);
  }
  .proof a:hover::after { opacity: .75; transform: scaleX(1); }
  .button:hover {
    color: var(--ink);
    background: transparent;
    box-shadow: inset 0 -3px 0 var(--polish-accent);
    transform: translateY(-1px);
  }
  .text-link:hover {
    color: var(--ink);
    border-bottom-color: var(--polish-accent);
    text-decoration: none;
    transform: translateY(-1px);
  }
  .beesness .text-link:hover { color: #fff; }
  .work:hover > img,
  .work:hover > figure img,
  .work:hover .iulm-photos img,
  .cover-pair:hover img,
  .certificate:hover img,
  .book-images:hover .book-cover { transform: scale(1.012); }
  .media-highlight:hover {
    box-shadow: 0 18px 42px rgba(23, 24, 21, .08);
    transform: translateY(-3px);
  }
  .media-highlight:hover .media-play {
    border-color: var(--polish-accent);
    background: rgba(185, 162, 45, .1);
    transform: translateX(2px);
  }
}

/* Tablet refinement */
@media (min-width: 651px) and (max-width: 1000px) {
  .wrap { padding-inline: clamp(34px, 5.5vw, 56px); }
  .section { padding-block: 74px; }
  .hero { padding-top: 42px; padding-bottom: 58px; column-gap: 7%; }
  .hero-photo { min-height: 460px; }
  .section-head { margin-bottom: 46px; }
  .work-grid { row-gap: 62px; }
  .proof a { min-height: 78px; padding-inline: 10px; }
}

/* Mobile gets its own rhythm rather than a scaled desktop layout. */
@media (max-width: 650px) {
  .wrap { padding-inline: 24px; }
  .section { padding-block: 58px; }
  .hero { padding-top: 30px; padding-bottom: 46px; }
  .hero-title { padding-bottom: 24px; }
  .hero-photo { overflow: visible; }
  .hero-photo img { height: clamp(290px, 39svh, 355px); transform: none; }
  .hero-copy { margin-top: 24px; }
  .hero-copy > p { margin-top: 14px; }
  .section-head { margin-bottom: 36px; }
  .section-intro { margin-top: 20px; }
  .services .heading { margin-bottom: 36px; }
  .services-grid { gap: 34px; }
  .proof-section { padding-block: 60px; }
  .proof { gap: 12px; }
  .proof a { min-height: 82px; padding: 12px 10px; }
  .work-grid { row-gap: 0; }
  .work,
  .work-wide,
  .work:last-child { margin-bottom: 0; }
  .card-copy { padding-top: 24px; }
  .cover-grid article { margin-bottom: 44px; }
  .media-copy { padding: 26px 24px 28px; }
  .press > a { padding-block: 30px; }
  .book-section { gap: 38px; }
  .contact-form { margin-top: 42px; }
  .polish-enhanced .polish-reveal { transform: translateY(10px); }
}

/* Accessibility: no motion, no parallax, content always visible. */
@media (prefers-reduced-motion: reduce) {
  .polish-enhanced .hero-title,
  .polish-enhanced .hero-photo,
  .polish-enhanced .hero-copy,
  .polish-enhanced .polish-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-photo img,
  .work img,
  .cover-pair img,
  .certificate img,
  .book-cover,
  .media-highlight,
  .button,
  .text-link { transition: none !important; transform: none !important; }
}

/* Future component — designed but intentionally not rendered or populated. */
.future-testimonials[hidden] { display: none !important; }
.future-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.future-testimonial { min-height: 240px; padding: 32px; background: var(--paper); }

/* THE WALL — homepage preview */
.wall-home {
  overflow: hidden;
  padding-bottom: clamp(76px, 9vw, 136px);
  color: #f5f3ed;
  background: #0e0f0d;
}
.wall-home-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: end;
  gap: 48px;
  padding-top: clamp(76px, 9vw, 132px);
  padding-bottom: clamp(42px, 5vw, 72px);
}
.wall-home .kicker { color: rgba(255,255,255,.6); }
.wall-home h2 {
  margin: 12px 0 0;
  font-size: clamp(70px, 11vw, 170px);
  line-height: .82;
  letter-spacing: -.045em;
}
.wall-home-intro { justify-self: end; width: min(100%, 390px); }
.wall-home-intro p {
  margin: 0 0 30px;
  font-family: Italiana, Georgia, serif;
  font-size: clamp(27px, 3.2vw, 47px);
  line-height: 1.02;
}
.wall-home-intro em { font-family: Georgia, serif; font-weight: 400; }
.wall-home-cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  color: inherit;
  border-bottom: 2px solid var(--polish-accent);
  font-size: 10px;
  letter-spacing: .18em;
  text-decoration: none;
  transition: color .3s ease, transform .35s var(--polish-ease);
}
.wall-home-canvas {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(8px, 1vw, 16px);
  height: clamp(520px, 72vw, 900px);
  padding-inline: clamp(8px, 1.2vw, 18px);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #0e0f0d;
}
.wall-home-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: clamp(8px, 1vw, 16px);
  will-change: transform;
  animation: wallHomeDrift 20s cubic-bezier(.45,.05,.55,.95) infinite alternate;
}
.wall-home-track-b { margin-top: -9%; animation-direction: alternate-reverse; animation-duration: 24s; }
.wall-home-track figure { margin: 0; overflow: hidden; background: #1b1c19; }
.wall-home-track figure:nth-child(3n + 1) { grid-row: span 2; }
.wall-home-track img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  max-height: 430px;
  object-fit: cover;
  object-position: 50% 32%;
  filter: saturate(.95) contrast(1.01);
  transition: transform .75s var(--polish-ease), filter .55s ease;
}
@keyframes wallHomeDrift { to { transform: translate3d(0,-22px,0); } }
@media (hover:hover) and (pointer:fine) {
  .wall-home-cta:hover { color: var(--polish-accent); transform: translateY(-1px); }
  .wall-home-canvas:hover img { transform: scale(1.012); filter: saturate(1) contrast(1); }
}
@media (max-width: 760px) {
  .wall-home { padding-block: 0 72px; }
  .wall-home-head { grid-template-columns: 1fr; gap: 30px; padding-top: 72px; padding-bottom: 38px; }
  .wall-home h2 { font-size: clamp(68px, 23vw, 102px); }
  .wall-home-intro { justify-self: stretch; width: 100%; }
  .wall-home-intro p { margin-bottom: 24px; font-size: clamp(29px, 10vw, 42px); }
  .wall-home-canvas { grid-template-columns: 1fr 1fr; height: 72svh; min-height: 560px; gap: 7px; padding-inline: 7px; }
  .wall-home-track { grid-template-columns: 1fr; gap: 7px; animation-duration: 18s; }
  .wall-home-track-b { margin-top: -18%; animation-duration: 22s; }
  .wall-home-track img { min-height: 210px; max-height: 330px; }
}
@media (prefers-reduced-motion: reduce) {
  .wall-home-track { animation: none; transform: none; }
  .wall-home-track img, .wall-home-cta { transition: none !important; }
}
