/* ==========================================================================
   ARCEAUS — site styles

   1. Tokens & base
   2. Shared components (labels, line reveals, buttons)
   3. Site chrome (header, floating nav, footer, page curtain)
   4. Home page
      hero · lead · statement · services · work cards · contact panel
   5. Inner pages
      page head · work grid · pricing · project · info · contact page
   6. Motion states (pre-animation states, reduced motion)

   Responsive rules sit directly under the component they change.
   The single breakpoint is 820px.
   ========================================================================== */

/* ==========================================================================
   1. Tokens & base
   ========================================================================== */

:root {
  --paper: #f3f3ef;
  --ink: #222;
  --mute: #8a8a85;
  --soft: #6b6b66;
  --line: #d9d9d3;
  --mauve: #c2b0b5;
  --blue: #9aa5ab;
  --dark: #232323;
  --pad: clamp(16px, 2.6vw, 40px);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

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

html {
  background: var(--paper);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.service:focus-visible,
.float-nav a:focus-visible,
.hero-dots button:focus-visible {
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -64px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   2. Shared components
   ========================================================================== */

.pad {
  padding-left: var(--pad);
  padding-right: var(--pad);
}

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

h1 {
  font-size: clamp(46px, 9vw, 164px);
  line-height: 0.96;
  word-spacing: -0.05em;
}

/* Small grey caption, e.g. "/ Services /". Also used on headings. */
.label {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: inherit;
  color: var(--mute);
}

/* Masked line: its child slides up from below the line when revealed. */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.line > span {
  display: inline-block;
}

.lede {
  max-width: 520px;
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--soft);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2.1fr 2fr;
  gap: 20px;
  align-items: start;
}

.section-head h2 {
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border: 0;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out);
}

.btn:hover {
  transform: scale(1.04);
}

.btn i {
  width: 9px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 820px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   3. Site chrome
   ========================================================================== */

/* ---- Page transition curtain ---- */

.page-curtain {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--dark);
  pointer-events: none;
}

.js .page-curtain {
  display: block;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: var(--paper);
  transition: background 0.5s;
}

.logo {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
  transition: background 0.5s, color 0.5s, padding 0.5s;
}

.logo img,
.site-footer__logo img {
  display: block;
  width: clamp(120px, 12vw, 170px);
  height: auto;
}

.clock {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--mute);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}

.header-actions .btn {
  transition: transform 0.4s var(--ease-out), background 0.5s, color 0.5s, padding 0.5s;
}

.dk .clock {
  color: #a4a4a0;
}

@media (max-width: 820px) {
  .clock {
    display: none;
  }
}

/* ---- Floating bottom nav ---- */

.float-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  width: max-content;
  max-width: calc(100vw - 20px);
  margin: 0 auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--paper);
  font-size: 13px;
}

.float-nav a {
  padding: 10px 18px;
  border-radius: 99px;
  color: var(--mute);
  white-space: nowrap;
  transition: background 0.4s, color 0.4s;
}

.float-nav a[aria-current] {
  background: var(--ink);
  color: var(--paper);
}

.float-nav a[aria-current]::after {
  content: ' \2197';
}

.dk .float-nav {
  background: rgba(35, 35, 35, 0.88);
  border-color: #444;
}

.dk .float-nav a[aria-current] {
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 420px) {
  .float-nav a {
    padding: 10px 13px;
    font-size: 12.5px;
  }
}

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

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px 20px;
  align-items: start;
  padding-top: 70px;
  padding-bottom: 120px;
  font-size: 14px;
}

.site-footer a {
  display: block;
  margin-bottom: 4px;
}

.site-footer a[href^='mailto'] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer small {
  align-self: end;
  color: var(--mute);
  font-size: 12.5px;
}

.site-footer__meta {
  line-height: 1.6;
}

.site-footer .to-top {
  grid-column: 4;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 22px;
}

/* One-line footer used under the full-height contact panel. */
.site-footer--slim {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 96px;
}

@media (max-width: 820px) {
  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 132px;
  }

  .site-footer__logo {
    margin-bottom: 4px;
  }

  .site-footer__nav {
    display: grid;
    gap: 5px;
  }

  .site-footer__meta {
    line-height: 1.7;
  }

  .site-footer small {
    align-self: auto;
  }

  .site-footer .to-top {
    grid-column: auto;
    grid-row: auto;
    width: 52px;
    height: 52px;
  }

  .site-footer--slim {
    display: flex;
    gap: 8px 28px;
  }
}

/* ==========================================================================
   4. Home page
   ========================================================================== */

/* ---- Hero ---- */

.hero {
  padding-top: 30px;
}

.hero__top {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 23%);
  gap: 24px;
  align-items: start;
}

.line > .hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.16em;
}

.glyph-arrow {
  height: 0.52em;
  width: auto;
  margin-right: 0.1em;
  color: var(--blue);
}

.hero__intro {
  justify-self: end;
  max-width: 340px;
  padding-top: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.hero__intro a {
  display: block;
  margin-top: 28px;
  font-size: 14px;
}

/* ---- Ticker ---- */

.ticker {
  overflow: hidden;
  margin: 26px 0 12px;
  font-size: 12.5px;
  text-transform: uppercase;
  color: var(--mute);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.ticker__group {
  display: flex;
  align-items: center;
  flex: none;
  gap: 14px;
  padding-right: 14px;
  white-space: nowrap;
}

.ticker__current {
  color: var(--ink);
  font-weight: 600;
}

.ticker__dot {
  width: 9px;
  height: 9px;
  opacity: 0.6;
}

.ticker__arrow {
  position: relative;
  width: 96px;
  height: 1px;
  margin: 0 2px;
  background: currentColor;
  opacity: 0.6;
}

.ticker__arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid;
  border-right: 1px solid;
  transform: rotate(45deg);
}

/* ---- Hero image ---- */

.hero__scene {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 22px;
  background: var(--mauve);
}

/* Film-grain overlay */
.hero__scene::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-slides {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;
  transition: opacity 0.85s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 20px;
  display: flex;
  gap: 7px;
}

.hero-dots button {
  position: relative;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: transparent;
  opacity: 0.65;
  cursor: pointer;
}

/* Enlarged tap target around each 7px dot */
.hero-dots button::before {
  content: '';
  position: absolute;
  inset: -9px;
}

.hero-dots button.active {
  background: var(--paper);
  opacity: 1;
}

@media (max-width: 820px) {
  .hero__top {
    grid-template-columns: 1fr;
  }

  .hero__intro {
    justify-self: start;
  }

  .hero__scene {
    aspect-ratio: 3 / 2;
    border-radius: 16px;
  }
}

/* ---- Lead paragraph ---- */

.lead {
  display: grid;
  grid-template-columns: 1fr 2.1fr 2fr;
  padding-top: 90px;
  padding-bottom: 50px;
}

.lead p {
  grid-column: 2;
  font-size: clamp(22px, 2.5vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

@media (max-width: 820px) {
  .lead {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 60px;
  }

  .lead p {
    grid-column: 1;
  }
}

/* ---- Statement: "We develop with purpose." ----
   Base styles are the static layout (no JS / reduced motion): the words
   wrap and sit in solid ink. The scroll-driven horizontal version is
   switched on under `.js` when motion is allowed (see home.js). */

.statement {
  padding: 14vh 0;
}

.statement__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1em 0.2em;
  padding: 0 var(--pad);
  font-size: clamp(64px, 15vw, 200px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.statement__arrow {
  height: 0.3em;
  width: auto;
  flex: none;
  color: #d4d4cf;
}

.statement__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 0.36em;
  height: 0.36em;
  border-radius: 50%;
  background: #d8d8d3;
}

.statement__badge svg {
  width: 55%;
  height: 55%;
}

@media (prefers-reduced-motion: no-preference) {
  .js .statement {
    position: relative;
    height: calc(100vh + var(--statement-scroll, 0px));
    height: calc(100svh + var(--statement-scroll, 0px));
    padding: 0;
  }

  .js .statement__stage {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }

  .js .statement__row {
    flex-wrap: nowrap;
    gap: 0.2em;
    padding: 0 0 0 6vw;
    font-size: clamp(120px, 24vw, 360px);
    white-space: nowrap;
    will-change: transform;
  }

  /* Words are filled left→right by scrolling background-position (see home.js). */
  .js .statement__word {
    color: transparent;
    background: linear-gradient(90deg, #222 0%, #222 50%, #dcdcd7 50%, #dcdcd7 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    background-clip: text;
    -webkit-background-clip: text;
  }
}

@media (max-width: 820px) and (prefers-reduced-motion: no-preference) {
  .js .statement__row {
    font-size: clamp(110px, 42vw, 200px);
  }
}

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

.services {
  padding-top: 70px;
  padding-bottom: 130px;
}

.services ul {
  margin-top: 20px;
  list-style: none;
}

.service {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.service__row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 2fr;
  align-items: start;
  padding: 26px 0;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  transition: opacity 0.5s;
}

.services ul:hover .service:not(:hover) .service__row {
  opacity: 0.4;
}

.service__num,
.service__toggle {
  color: var(--mute);
  font-weight: 400;
  text-transform: none;
}

.service__title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}

.service__title button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

/* Collapsed by default; `.is-open` (set by home.js) reveals it. */
.service__body {
  height: 0;
  max-width: 480px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  text-transform: none;
  color: var(--soft);
}

.service.is-open .service__body {
  height: auto;
  opacity: 1;
  visibility: visible;
}

.service__body p {
  padding-top: 26px;
}

/* Cursor-following image preview */
.service-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  width: 180px;
  height: 130px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  contain: layout paint;
}

.service-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

@media (hover: none) {
  .service-preview {
    display: none;
  }
}

@media (max-width: 820px) {
  .services {
    padding-top: 40px;
    padding-bottom: 90px;
  }

  .service__row {
    grid-template-columns: 44px 1fr;
  }

  .service__toggle {
    display: none;
  }
}

/* ---- Selected work: stacking cards ---- */

.work-intro {
  padding-bottom: 30px;
}

.cases {
  padding-top: 20px;
  padding-bottom: 60px;
}

/* Each card sticks a little lower than the previous one so they stack like a deck. */
.case {
  position: sticky;
  top: calc(76px + var(--i, 0) * 26px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-content: start;
  min-height: clamp(560px, 78vh, 720px);
  margin-bottom: 40px;
  padding: clamp(48px, 5vw, 68px) calc(min(52%, 720px) + clamp(52px, 6vw, 84px)) clamp(48px, 5vw, 68px) clamp(32px, 4vw, 56px);
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: var(--bg);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.04);
  font-size: 15px;
  transform-origin: 50% 0;
  will-change: transform;
}

.case__title h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: inherit;
  text-transform: uppercase;
}

.case__title span {
  color: var(--soft);
  font-size: 14px;
}

.case__desc p {
  max-width: 460px;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.case .btn {
  align-self: start;
  margin-top: 6px;
}

.case__preview {
  position: absolute;
  right: clamp(32px, 4vw, 56px);
  bottom: clamp(36px, 4vw, 52px);
  width: min(52%, 720px);
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  contain: layout paint;
}

.case__preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.all-work {
  position: relative;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

@media (max-width: 820px) {
  /* On small screens the cards stop sticking and simply overlap slightly. */
  .case {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px 20px;
    border-radius: 14px 14px 0 0;
  }

  .case + .case {
    margin-top: -14px;
  }

  .case__preview {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    margin-top: 28px;
  }

  .all-work {
    display: none;
  }
}

/* ---- Contact panel (home page + contact page) ---- */

.contact {
  min-height: 700px;
  margin: 0 clamp(10px, 1.4vw, 20px);
  padding: 110px var(--pad) 120px;
  border-radius: 30px;
  background: var(--dark);
  color: var(--paper);
}

.contact :focus-visible {
  outline-color: var(--paper);
}

.contact__title {
  margin-left: clamp(0px, 9vw, 140px);
  font-size: clamp(46px, 7.6vw, 112px);
  line-height: 1;
  word-spacing: normal;
}

.contact__dots {
  display: flex;
  align-items: center;
  margin: 14px 0 0 clamp(0px, 30vw, 420px);
}

.contact__dot {
  display: grid;
  place-items: center;
  width: clamp(50px, 6vw, 84px);
  height: clamp(50px, 6vw, 84px);
  border-radius: 50%;
  color: #222;
}

.contact__dot svg {
  width: 48%;
  height: 48%;
}

.contact__path {
  display: block;
  width: min(520px, 44vw);
  height: auto;
  margin: 14px 0 0 clamp(0px, 24vw, 340px);
}

.contact__body {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: 20px;
  margin: 40px 0 0 clamp(0px, 9vw, 140px);
  font-size: 14px;
}

.contact__body p {
  max-width: 300px;
  line-height: 1.5;
  color: #a4a4a0;
}

.contact__details {
  margin-top: 70px;
  font-size: 12px;
  font-style: normal;
  color: #77776f;
}

.contact__details span {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--paper);
}

.contact__details .btn {
  margin-top: 26px;
}

.contact__cal {
  min-height: 540px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  touch-action: auto;
}

.contact__cal iframe {
  width: 100%;
  min-height: 540px;
  border: 0;
  touch-action: auto;
}

.contact label {
  display: block;
  margin-bottom: 22px;
  font-size: 12px;
  text-transform: uppercase;
  color: #77776f;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #3a3a3a;
  border-radius: 0;
  background: none;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
  text-transform: none;
  resize: none;
}

.contact input:focus,
.contact textarea:focus {
  outline: 0;
  border-color: var(--paper);
}

.contact input[aria-invalid='true'] {
  border-color: var(--mauve);
}

.form-status {
  min-height: 16px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--mauve);
}

@media (max-width: 820px) {
  .contact {
    padding-top: 80px;
    border-radius: 24px;
  }

  .contact__title,
  .contact__body,
  .contact__dots {
    margin-left: 0;
  }

  .contact__body {
    grid-template-columns: 1fr;
  }

  .contact__cal,
  .contact__cal iframe {
    min-height: 600px;
  }

  .contact__path {
    width: 72vw;
    margin-left: 0;
  }
}

/* ==========================================================================
   5. Inner pages
   ========================================================================== */

/* ---- Page head ---- */

.page-head {
  padding-top: 50px;
}

.page-head h1 {
  margin-top: 18px;
  font-size: clamp(44px, 8.4vw, 150px);
}

/* ---- Work grid ---- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: 50px 0 120px;
}

.work-card {
  display: block;
}

.work-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
}

.work-card__media img,
.project-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: multiply;
}

.work-card__media img {
  transition: transform 1.2s var(--ease-out);
}

.work-card:hover .work-card__media img {
  transform: scale(1.06);
}

.work-card__meta {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 16px 4px;
  font-size: 14px;
  color: var(--mute);
}

.work-card__meta h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.work-card__meta em {
  margin-left: auto;
  font-style: normal;
}

/* ---- Pricing ---- */

.project-pricing {
  padding-top: 90px;
  padding-bottom: 70px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
  border: 1px solid var(--line);
}

.price-card {
  position: relative;
  min-height: 430px;
  padding: 30px 24px 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.price-card:last-child {
  border-right: 0;
}

.price-card--featured {
  z-index: 1;
  margin: -1px 0;
  border: 2px solid var(--ink);
}

.price-card p,
.price-note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--mute);
}

.price-amount {
  display: block;
  margin: 28px 0 8px;
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.price-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-btn {
  justify-content: space-between;
  width: 100%;
  margin-top: 26px;
  background: var(--dark);
}

.price-includes {
  margin: 24px -24px 0;
  padding: 24px;
  border-top: 1px solid var(--line);
}

.price-includes strong {
  font-size: 13px;
  font-weight: 500;
}

.price-includes ul {
  padding: 10px 0 0;
  list-style: none;
}

.price-includes li {
  font-size: 13px;
  line-height: 1.8;
  color: var(--mute);
}

.price-includes li::before {
  content: '\2713';
  margin-right: 8px;
  color: var(--ink);
}

.price-note {
  margin-top: 28px;
}

/* ---- Project detail ---- */

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
  align-items: end;
  margin-top: 30px;
}

.project-meta__list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
}

.project-meta dd {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 500;
}

.project-hero {
  aspect-ratio: 2.2 / 1;
  margin-top: 44px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--mauve);
}

.split {
  display: grid;
  grid-template-columns: 1fr 2.1fr 2fr;
  gap: 20px;
  padding: 40px 0 60px;
}

.split h2 {
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.split .lede {
  margin: 0;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.project-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: multiply;
}

.next-project {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-top: 20px;
  padding: 50px 0 120px;
  border-top: 1px solid var(--line);
}

.next-project__title {
  font-size: clamp(34px, 6vw, 90px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.next-project__arrow {
  margin-left: auto;
  font-size: 40px;
}

/* ---- Info (about) ---- */

.about-copy {
  display: grid;
  gap: 24px;
}

.about-copy .lede {
  margin: 0;
}

.about-copy .lede--lead {
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.3;
  color: var(--ink);
}

.about-mark {
  margin: 0;
}

.about-mark img {
  display: block;
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
}

.about-mark figcaption {
  max-width: 260px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mute);
}

.info-section {
  display: grid;
  grid-template-columns: 1fr 4.1fr;
  gap: 20px;
  margin: 0 var(--pad);
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.info-section h2 {
  margin-top: 10px;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.info-row:first-child {
  padding-top: 0;
}

.info-row__title {
  display: block;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: inherit;
}

.info-row__meta {
  font-size: 13.5px;
  color: var(--mute);
}

.info-row p {
  max-width: 560px;
  line-height: 1.55;
  color: var(--soft);
}

.info-row--faq {
  display: block;
}

.info-row--faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 18px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.info-row--faq summary::-webkit-details-marker {
  display: none;
}

.info-row--faq summary::after {
  content: '+';
  color: var(--mute);
}

.info-row--faq[open] summary::after {
  content: '\2212';
}

.info-row--faq p {
  margin-top: 12px;
}

/* ---- Contact page ---- */

/* Full-height panel tucked up under the sticky header. */
.contact--page {
  min-height: calc(100vh - 20px);
  margin-top: -76px;
  padding-top: 170px;
}

@media (max-width: 820px) {
  .work-grid,
  .price-grid,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .price-card,
  .price-card--featured {
    min-height: 0;
    margin: 0;
    padding: 28px 20px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .price-card:last-child {
    border-bottom: 0;
  }

  .price-includes {
    margin-left: -20px;
    margin-right: -20px;
  }

  .project-hero {
    aspect-ratio: 4 / 3;
  }

  .project-meta,
  .project-meta__list {
    gap: 20px 36px;
  }

  .split,
  .info-section,
  .info-row {
    grid-template-columns: 1fr;
  }

  .next-project {
    flex-wrap: wrap;
  }

  .contact--page {
    padding-top: 140px;
  }
}

/* ==========================================================================
   6. Motion states
   Elements below start hidden only when JS + GSAP are running (`.js`), so
   the page is fully readable without them. home.js / inner.js / common.js
   animate each one in.
   ========================================================================== */

.js .hero__intro,
.js .ticker,
.js .hero__scene,
.js [data-reveal],
.js .lead p {
  opacity: 0;
}

.js .lead p {
  color: #b3b3ae; /* animates to ink */
}

.js .line > span {
  transform: translateY(112%);
}

/* The contact arrow-head appears once the line has finished drawing. */
.js #contact-arrow {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .js .hero__intro,
  .js .ticker,
  .js .hero__scene,
  .js [data-reveal],
  .js .lead p {
    opacity: 1;
  }

  .js .lead p {
    color: var(--ink);
  }

  .js .line > span {
    transform: none;
  }

  .js #contact-arrow {
    opacity: 1;
  }

  .js .page-curtain {
    display: none;
  }

  .hero-slide {
    transition: none;
  }
}
