/* ==========================================================================
   Sections — Values · Work · Services · Approach · Motion · Studio · CTA · Footer
   Hard structural transitions between dark and paper. No crossfades.
   ========================================================================== */

.section { position: relative; }
.section--paper { background: var(--paper); color: var(--text-dark); }
.section--paper-soft { background: var(--paper-soft); color: var(--text-dark); }
.section--dark { background: var(--bg); color: var(--text-light); }

.section__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 24px;
  align-items: end;
}
.section__head .eyebrow { grid-column: 1 / 4; align-self: start; padding-top: .9em; }
.section__title {
  grid-column: 4 / 12;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-heading);
  line-height: .98;
  letter-spacing: var(--tracking-display);
}
@media (max-width: 1023px) {
  .section__head .eyebrow { grid-column: 1 / -1; padding-top: 0; }
  .section__title { grid-column: 1 / -1; }
}

/* ---- Values ------------------------------------------------------------ */

.values {
  padding-block: clamp(56px, 6vw, 92px);
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.value {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 26px;
  align-items: start;
  padding-inline: clamp(24px, 2.8vw, 44px);
  border-left: 1px solid var(--line-light);
}
.value:first-child { padding-left: 0; border-left: 0; }
.value__icon {
  width: 48px;
  height: 48px;
  stroke: rgba(21, 21, 18, .72);
  stroke-width: 1.15;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value__icon .accent-dot { fill: var(--accent); stroke: none; }
/* Behind `.js` like every other pre-animation state (`motion.css`, `hero.css`):
   the retracted stroke is only ever undone by the reveal observer, so where no
   script runs - the CMS editor strips author scripts unless the site switched
   them on - an ungated version leaves the icon as its accent dots and the round
   cap of a stroke nobody will draw. `boot.js` states the rule: a page without
   the behaviour layer is served the settled design, not a blank one. */
.js .value__icon [data-draw] {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1100ms var(--ease-reveal);
}
.js .value.is-revealed .value__icon [data-draw] { stroke-dashoffset: 0; }
.value__title {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-top: 4px;
}
.value__copy {
  margin-top: 14px;
  font-size: .95rem;
  line-height: 1.5;
  max-width: 250px;
  color: var(--text-dark-muted);
}

@media (max-width: 1023px) {
  .values__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .value:nth-child(odd) { padding-left: 0; border-left: 0; }
  .value:nth-child(n+3) { padding-top: 40px; border-top: 1px solid var(--line-light); }
}
@media (max-width: 479px) {
  .values__grid { grid-template-columns: 1fr; row-gap: 0; }
  .value { padding: 28px 0; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line-light); }
  .value:nth-child(n+3) { padding-top: 28px; }
}

/* ---- Featured work ----------------------------------------------------- */

.work {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line-light);
}
.work__list {
  margin-top: clamp(64px, 7vw, 120px);
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 9vw, 150px);
}
.work__clients {
  margin-top: clamp(64px, 7vw, 120px);
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
}
.work__client {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  letter-spacing: -.01em;
  line-height: 1.2;
}

.project {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 28px;
  align-items: end;
}
.project__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-image);
  background: var(--bg-soft);
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-reveal);
}
.project__meta { display: flex; flex-direction: column; gap: 14px; }
.project__title {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-project);
  line-height: 1;
  letter-spacing: var(--tracking-display);
}
.project__title .arrow { font-family: var(--font-sans); font-size: .55em; color: #3f8f00; }
.project__tags {
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}
.project__desc { max-width: 380px; color: var(--text-dark-muted); font-size: .95rem; }

/* Editorial rhythm — no identical cards */
.project--01 .project__media { grid-column: 1 / 10; aspect-ratio: 16 / 10; }
.project--01 .project__meta  { grid-column: 10 / 13; }

.project--02 .project__meta  { grid-column: 1 / 5; order: 1; }
.project--02 .project__media { grid-column: 6 / 13; aspect-ratio: 4 / 3; order: 2; }

.project--03 .project__media { grid-column: 1 / 13; aspect-ratio: 21 / 9; }
.project--03 .project__meta  { grid-column: 1 / 7; }

@media (hover: hover) and (pointer: fine) {
  .project:hover .project__media img { transform: scale(1.018); }
  .project:hover .project__title .arrow { transform: translate(3px, -2px); }
}

@media (max-width: 1023px) {
  .project__media, .project__meta { grid-column: 1 / -1 !important; order: initial !important; }
  .project--01 .project__media { aspect-ratio: 16 / 10; }
  .project--02 .project__media { aspect-ratio: 4 / 3; }
  .project--03 .project__media { aspect-ratio: 16 / 9; }
}

/* ---- Services ---------------------------------------------------------- */

.services {
  padding-block: var(--section-y);
}
.services__list {
  margin-top: clamp(56px, 6vw, 96px);
  border-bottom: 1px solid var(--line-dark);
}
.service {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr minmax(240px, 360px) 52px;
  column-gap: var(--grid-gap);
  align-items: center;
  min-height: 112px;
  padding-block: 26px;
  padding-left: 0;
  border-top: 1px solid var(--line-dark);
  transition:
    background-color var(--dur-row) var(--ease-fast),
    padding-left var(--dur-row) var(--ease-fast);
}
.service::before {
  /* accent indicator */
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(.4);
  transition: opacity var(--dur-row) var(--ease-fast), transform var(--dur-row) var(--ease-fast);
}
.service__index { color: var(--text-light-subtle); }
.service__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-project);
  line-height: 1;
  letter-spacing: var(--tracking-display);
  transition: transform var(--dur-row) var(--ease-fast);
}
.service__desc {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--text-light-muted);
}
.service__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--accent);
  font-size: .9rem;
}

@media (hover: hover) and (pointer: fine) {
  .service:hover { background: rgba(255, 255, 255, .035); padding-left: 12px; }
  .service:hover::before { opacity: 1; transform: scale(1); }
  .service:hover .service__index { color: var(--accent); }
  .service:hover .service__title { transform: translateX(4px); }
  .service:hover .service__arrow .arrow { transform: translate(3px, -3px); }
}

@media (max-width: 1023px) {
  .service {
    grid-template-columns: 40px 1fr 32px;
    grid-template-areas:
      "index title arrow"
      "index desc  arrow";
    row-gap: 12px;
    min-height: 0;
  }
  .service__index { grid-area: index; align-self: start; padding-top: .3em; }
  .service__title { grid-area: title; }
  .service__desc  { grid-area: desc; }
  .service__arrow { grid-area: arrow; width: 32px; height: 32px; border: 0; align-self: start; }
  /* The indicator follows the row's markers, which this layout moved to the
     first line: the index and the arrow above both take `align-self: start`.
     Left on the base rule's `top: 50%` it tracks the row's MIDDLE instead, and
     that middle sinks with every line the description wraps to - measured 22px
     below the number at 767px and 45px at 390px. The offset is the number's own
     line: the row's top padding plus the index's font-size, which is its `.3em`
     of padding and half its line box to within a pixel. */
  .service::before { top: calc(26px + .72rem); }
}

/* ---- Approach ---------------------------------------------------------- */

.approach {
  padding-block: var(--section-y);
}
.approach__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
}
.approach__statement {
  grid-column: 1 / 6;
  position: sticky;
  top: 140px;
  align-self: start;
}
.approach__statement .eyebrow { margin-bottom: 28px; }
.approach__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 4.3vw, 5.2rem);
  line-height: .98;
  letter-spacing: var(--tracking-display);
}
.approach__note {
  margin-top: 28px;
  max-width: 360px;
  color: var(--text-dark-muted);
}

.approach__process {
  grid-column: 7 / 13;
  position: relative;
  padding-left: 32px;
}
.approach__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-light);
}
.approach__rail-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(0);
}
.approach__rail-dot {
  position: absolute;
  left: -3px;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.phase {
  display: grid;
  grid-template-columns: 60px 1fr;
  column-gap: var(--grid-gap);
  min-height: 150px;
  padding-block: 34px;
  border-top: 1px solid var(--line-light);
  opacity: .38;
  transition: opacity 500ms var(--ease-fast);
}
.phase:last-child { border-bottom: 1px solid var(--line-light); }
.phase.is-active { opacity: 1; }
.phase__index { padding-top: .5em; color: var(--text-dark-muted); }
.phase.is-active .phase__index { color: #3f8f00; }
.phase__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 2.6vw, 2.8rem);
  line-height: 1;
  letter-spacing: var(--tracking-display);
}
.phase__desc {
  margin-top: 14px;
  max-width: 420px;
  color: var(--text-dark-muted);
  font-size: .95rem;
}

@media (max-width: 1023px) {
  .approach__statement { grid-column: 1 / -1; position: static; margin-bottom: 56px; }
  .approach__process { grid-column: 1 / -1; padding-left: 0; }
  .approach__rail { display: none; }
  .phase { opacity: 1; min-height: 0; padding-block: 26px; grid-template-columns: 44px 1fr; }
}

/* ---- Motion statement -------------------------------------------------- */

.motion {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a0a08;
  color: var(--text-light);
  padding-block: clamp(96px, 12vw, 180px);
}
.motion__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.motion__path path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke;
  opacity: .9;
}
.motion__path .motion__path-orbit {
  stroke: rgba(243, 240, 232, .22);
}
.motion__point {
  position: absolute;
  z-index: 1;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #eaffd6;
  box-shadow: 0 0 0 6px var(--accent-glow);
  pointer-events: none;
}
.motion__inner { position: relative; z-index: 2; }
.motion__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 6.6vw, 7.6rem);
  line-height: .94;
  letter-spacing: var(--tracking-display);
  max-width: 11em;
}
.motion__sub {
  margin-top: 40px;
  max-width: 520px;
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: var(--text-light-muted);
  margin-left: clamp(0px, 25%, 380px);
}
@media (max-width: 1023px) {
  .motion { min-height: 0; }
  .motion__sub { margin-left: 0; }
}

/* ---- Studio ------------------------------------------------------------ */

.studio {
  padding-block: var(--section-y);
}
.studio__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 56px;
}
.studio__intro { grid-column: 1 / 9; }
.studio__statement {
  margin-top: 30px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 2.9vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.studio__aside {
  grid-column: 10 / 13;
  align-self: end;
}
.studio__categories {
  border-top: 1px solid var(--line-light);
  counter-reset: studio-category;
}
.studio__category {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: baseline;
  column-gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  letter-spacing: -.01em;
  line-height: 1;
}
.studio__category { counter-increment: studio-category; }
.studio__category .index { color: var(--text-dark-subtle); }
.studio__category .index::before { content: counter(studio-category, decimal-leading-zero); }
.studio__category .dot { opacity: 0; transition: opacity var(--dur-fast) var(--ease-fast); }
.studio__category.is-revealed .dot { opacity: 1; }

.studio__graphic {
  grid-column: 1 / 13;
  height: 1px;
  background: var(--line-light);
  position: relative;
  margin-top: 8px;
}
.studio__graphic-svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 48px;
  overflow: visible;
}
.studio__graphic-svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 1023px) {
  .studio__intro, .studio__aside { grid-column: 1 / -1; }
  .studio__graphic { display: none; }
}

/* ---- Final CTA --------------------------------------------------------- */

.cta {
  min-height: 62svh;
  display: flex;
  align-items: center;
  padding-block: clamp(96px, 12vw, 180px);
  border-top: 1px solid var(--line-light);
}
.cta__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 40px;
  align-items: end;
}
.cta__title {
  grid-column: 1 / 9;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 6.5vw, 7.4rem);
  line-height: .94;
  letter-spacing: var(--tracking-display);
}
.cta__title .accent-italic { color: #4faa00; }
.cta__side {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.cta__text { color: var(--text-dark-muted); max-width: 320px; }

@media (max-width: 1023px) {
  .cta { min-height: 0; }
  .cta__title, .cta__side { grid-column: 1 / -1; }
}

/* ---- Footer ------------------------------------------------------------ */

.footer {
  padding-block: clamp(64px, 7vw, 110px) 40px;
  border-top: 1px solid var(--line-dark);
}
.footer__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 48px;
}
.footer__brand { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 24px; }
.footer__tagline { color: var(--text-light-muted); max-width: 300px; }
.footer__col { grid-column: span 2; }
.footer__col:first-of-type { grid-column: 7 / 9; }
.footer__col-title {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-light-subtle);
  margin-bottom: 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a,
.footer__links button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-nav);
  font-weight: 500;
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  opacity: .72;
  transition: opacity var(--dur-fast) var(--ease-fast);
  text-align: left;
}
@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover, .footer__links button:hover { opacity: 1; }
}
.footer__bottom {
  margin-top: clamp(56px, 6vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark-soft);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-light-subtle);
}

@media (max-width: 1023px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col:first-of-type { grid-column: span 6; }
}
@media (max-width: 479px) {
  .footer__col, .footer__col:first-of-type { grid-column: 1 / -1; }
}
