/* ---------- tokens ---------- */
:root {
  --paper: #D9D8CE;
  --paper-alt: #CDCBBD;
  --ink: #1A1917;
  --ink-soft: #55534D;
  --accent: #24392E;
  --accent-bright: #3E5B48;
  --accent-deep: #162319;
  --brass: #8A6A3F;
  --brass-soft: #C89B5C;
  --brass-bright: #E0B876;
  --line: #BDBAA9;
  --line-strong: #9C9887;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 100%;
  --gutter: clamp(14px, 2.5vw, 28px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-low: 0 1px 2px rgba(26, 25, 23, 0.06), 0 2px 8px rgba(26, 25, 23, 0.06);
  --shadow-high: 0 6px 14px rgba(22, 30, 25, 0.12), 0 22px 44px rgba(22, 30, 25, 0.16);
  --shadow-glow: 0 8px 24px rgba(36, 57, 46, 0.22), 0 2px 8px rgba(36, 57, 46, 0.18);
  --shadow-glow-gold: 0 8px 22px rgba(200, 155, 92, 0.28), 0 2px 6px rgba(200, 155, 92, 0.2);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* semantic surface tokens — these flip for dark mode. --paper/--ink themselves
     stay fixed constants, used where a surface is deliberately always-dark
     (footer, contact, pricing card, hero banners) regardless of site theme. */
  --surface: var(--paper);
  --surface-alt: var(--paper-alt);
  --on-surface: var(--ink);
}

:root[data-theme="dark"] {
  --surface: #26221C;
  --surface-alt: #302B23;
  --on-surface: #EDEAE2;
  --ink-soft: #9C9689;
  --line: #3D372E;
  --line-strong: #514A3F;
  --shadow-low: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-high: 0 6px 14px rgba(0, 0, 0, 0.42), 0 22px 44px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 8px 26px rgba(62, 91, 72, 0.35), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-glow-gold: 0 8px 24px rgba(224, 184, 118, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; z-index: 200;
  font-family: var(--font-mono); font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- eyebrow / plaque (shared structural device) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 20px;
}

.plaque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
.plaque__tick {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--brass-soft), var(--brass-bright));
  display: inline-block;
}
.plaque--invert { color: var(--paper); opacity: 0.75; }
.plaque--invert .plaque__tick { background: var(--paper); opacity: 0.6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn--primary {
  background: linear-gradient(155deg, var(--accent-bright) 0%, var(--accent) 55%, var(--accent-deep) 130%);
  color: var(--paper);
  box-shadow: var(--shadow-low);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--on-surface);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-low); }
.btn--full { width: 100%; justify-content: center; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(234, 231, 224, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(26, 25, 23, 0.03), 0 8px 24px rgba(26, 25, 23, 0.04);
}
:root[data-theme="dark"] .nav { background: rgba(38, 34, 28, 0.85); }
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--on-surface);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}
.nav__logo-mark { color: var(--accent); }
.nav__links {
  display: none;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.nav__links a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  display: none;
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--on-surface);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__cta:hover { background: var(--on-surface); color: var(--surface); }
.nav__toggle {
  background: none; border: none; padding: 6px;
  display: flex; flex-direction: column; gap: 5px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--on-surface); display: block; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height 0.3s ease;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 15px;
}
.nav__mobile.is-open { max-height: 320px; border-top-color: var(--line); }
.nav__mobile a {
  text-decoration: none;
  color: var(--on-surface);
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.nav__cta--mobile { display: block; color: var(--accent); font-weight: 600; }

@media (min-width: 860px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none; }
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(56px, 8vw, 88px);
  display: grid;
  gap: 40px;
  align-items: center;
  min-height: 64vh;
  color: var(--paper);
  background: linear-gradient(100deg, rgba(15,13,10,.85) 0%, rgba(15,13,10,.6) 45%, rgba(15,13,10,.4) 75%), linear-gradient(0deg, rgba(15,13,10,.55) 0%, rgba(15,13,10,.2) 30%), url("images/homepage-hero.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.hero__headline {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.08;
}
.hero__headline-accent {
  color: var(--accent-bright);
  display: inline-block;
  opacity: 0;
  animation: accent-rise 0.7s ease 2.6s forwards;
}
@keyframes accent-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__headline-accent { opacity: 1; animation: none; }
}
.hero__sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 19px;
  color: var(--paper);
  opacity: 0.85;
}
.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero__proof {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper);
  opacity: 0.8;
}
.hero__proof strong { color: var(--paper); opacity: 1; font-size: 15px; }
.hero .btn--ghost { color: var(--paper); border-color: rgba(217, 216, 206, 0.45); }
.hero .btn--ghost:hover { border-color: var(--paper); color: var(--paper); background: rgba(217, 216, 206, 0.1); }

.hero__map {
  justify-self: center;
  width: 100%;
  max-width: 340px;
  background: rgba(15, 13, 10, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(217, 216, 206, 0.14);
  border-radius: 6px;
  padding: 28px;
  box-shadow: var(--shadow-glow);
}
.laneway-svg { width: 100%; height: auto; overflow: visible; }
.laneway-svg__route {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-route 2.4s 0.3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.laneway-svg__stop--start { stop-color: var(--brass-bright); }
.laneway-svg__stop--end { stop-color: var(--paper); }

.laneway-svg__dot { opacity: 0; animation: dot-in 0.4s ease forwards; }
.laneway-svg__dot--start { fill: var(--brass-bright); filter: drop-shadow(0 0 5px var(--brass-bright)); animation-delay: 2.5s; }
.laneway-svg__dot--design { fill: var(--brass-bright); filter: drop-shadow(0 0 4px var(--brass-bright)); animation-delay: 2.65s; }
.laneway-svg__dot--build { fill: var(--paper); filter: drop-shadow(0 0 4px var(--paper)); animation-delay: 2.8s; }
.laneway-svg__dot--end { fill: var(--paper); filter: drop-shadow(0 0 5px var(--paper)); animation-delay: 2.95s; }

.laneway-svg__label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0;
  animation: dot-in 0.4s ease forwards;
}
.laneway-svg__label--start { fill: var(--brass-bright); animation-delay: 2.6s; }
.laneway-svg__label--design { fill: var(--brass-bright); font-size: 9px; animation-delay: 2.75s; }
.laneway-svg__label--build { fill: var(--paper); font-size: 9px; animation-delay: 2.9s; }
.laneway-svg__label--end { fill: var(--paper); animation-delay: 3.05s; }

@keyframes draw-route { to { stroke-dashoffset: 0; } }
@keyframes dot-in { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .laneway-svg__route { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .laneway-svg__dot, .laneway-svg__label { opacity: 1; animation: none; }
}

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 64px; }
  .hero__map { justify-self: end; }
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 16px 0;
  border-bottom: 1px solid #3A3833;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee-scroll 24s linear infinite;
}
.marquee__item {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  white-space: nowrap;
}
.marquee__item::after { content: "·"; margin-left: 48px; color: #4A4842; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- rule column (the laneway signature) ---------- */
.rule-col {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.section {
  position: relative;
  padding: 64px 14px;
  border-bottom: 1px solid transparent;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .section { opacity: 1; transform: none; transition: none; }
}

/* ---------- generic scroll reveal (used on sample-project pages) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.section__title {
  font-size: clamp(24px, 3.2vw, 34px);
  max-width: 22ch;
  margin-bottom: 40px;
}
.section__title--invert { color: var(--paper); }

@media (min-width: 640px) {
  .section { padding: 64px 22px; }
}

/* ---------- services ---------- */
.services__grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  position: relative;
  background: var(--surface);
  padding: 28px;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.45s var(--ease);
}
.service-card:hover { background: var(--surface-alt); }
.service-card:hover::before { width: 100%; }
.service-card h3 { font-size: 19px; margin-bottom: 12px; }
.service-card p { color: var(--ink-soft); font-size: 15.5px; }

.services__grid.reveal .service-card { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.services__grid.reveal.is-visible .service-card { opacity: 1; transform: translateY(0); }
.services__grid.reveal.is-visible .service-card:nth-child(2) { transition-delay: 0.08s; }
.services__grid.reveal.is-visible .service-card:nth-child(3) { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
  .services__grid.reveal .service-card { opacity: 1; transform: none; transition: none; }
}

@media (min-width: 700px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- process + craft (shared row) ---------- */
.process-craft__grid { display: grid; gap: 56px; min-width: 0; }
.process-craft__grid > * { min-width: 0; }
@media (min-width: 900px) {
  .process-craft__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 64px; }
  .process-craft__grid > .reveal:last-child { transition-delay: 0.12s; }
}
.process-craft__grid--wide { max-width: 1280px; margin: 0 auto; }

/* ---------- process ---------- */
.process__list { position: relative; display: flex; flex-direction: column; gap: 32px; }
.process__list::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.process__list::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 6px;
  width: 1px;
  height: 0;
  background: var(--accent);
  transition: height 1.6s var(--ease) 0.15s;
}
.section.is-visible .process__list::after,
.reveal.is-visible .process__list::after { height: calc(100% - 12px); }
@media (prefers-reduced-motion: reduce) {
  .process__list::after { transition: none; height: calc(100% - 12px); }
}
.process__item { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; }
.process__num {
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 15px;
  padding-top: 4px;
  background: var(--surface);
}
.process__item h3 { font-size: 19px; margin-bottom: 8px; }
.process__item p { color: var(--ink-soft); font-size: 15.5px; max-width: 56ch; }

/* ---------- work ---------- */
.work__grid { display: grid; gap: 28px; }
.work-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-low);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.work-card:hover, .work-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.work-card__image { transition: transform 0.5s var(--ease); }
.work-card:hover .work-card__image, .work-card:focus-visible .work-card__image { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .work-card:hover .work-card__image { transform: none; }
}
.work-card:hover .work-card__view, .work-card:focus-visible .work-card__view { opacity: 1; transform: translateX(0); }
.work-card__view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  opacity: 0.7;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.work-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(0deg, rgba(15,13,10,.5) 0%, rgba(15,13,10,.3) 100%), url("images/cafe-hospitality-hero.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.work-card__icon { display: none; }
.work-card__image--2 { background: linear-gradient(0deg, rgba(15,13,10,.5) 0%, rgba(15,13,10,.3) 100%), url("images/fashion-retail-hero.jpg"); background-size: cover; background-position: center; }
.work-card__image--3 { background: linear-gradient(0deg, rgba(15,13,10,.5) 0%, rgba(15,13,10,.3) 100%), url("images/architecture-studio-hero.jpg"); background-size: cover; background-position: center; }
.work-card__image--4 { background: linear-gradient(0deg, rgba(15,13,10,.5) 0%, rgba(15,13,10,.3) 100%), url("images/health-clinic-hero.jpg"); background-size: cover; background-position: center; }
.work-card__image--5 { background: linear-gradient(0deg, rgba(15,13,10,.5) 0%, rgba(15,13,10,.3) 100%), url("images/allyantra-hero.jpg"); background-size: cover; background-position: center; }
.work-card__body { padding: 22px 24px 26px; }
.work-card__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
}
.work-card__body h3 { font-size: 21px; margin-bottom: 10px; }
.work-card__body > p:not(.work-card__tag):not(.work-card__stat) { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.work-card__stat {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

@media (min-width: 700px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- testimonials ---------- */
.testimonials__grid { display: grid; gap: 24px; }
.testimonial {
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.testimonial p {
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 14px;
}
.testimonial cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 13px;
  color: var(--ink-soft);
}

@media (min-width: 860px) {
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* ---------- pricing ---------- */
.pricing__wrap { display: grid; gap: 32px; }
.pricing__list { display: flex; flex-direction: column; }
.pricing__row {
  position: relative;
  padding: 20px 0 20px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease);
}
.pricing__row:last-child { border-bottom: 1px solid var(--line); }
.pricing__row::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.pricing__row:hover { padding-left: 14px; }
.pricing__row:hover::before { transform: scaleY(1); }
.pricing__row h3 { font-size: 17px; margin-bottom: 6px; }
.pricing__row p { color: var(--ink-soft); font-size: 15px; }

.pricing__card {
  background: var(--ink);
  color: var(--paper);
  padding: 32px 28px;
  align-self: start;
  box-shadow: var(--shadow-high);
}
.pricing__label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brass-soft); margin-bottom: 12px; }
.pricing__amount { font-family: var(--font-display); font-size: 44px; font-weight: 700; margin-bottom: 8px; }
.pricing__amount span { font-family: var(--font-mono); font-size: 15px; font-weight: 400; color: var(--brass-soft); margin-left: 6px; }
.pricing__note { font-size: 14px; color: #C9C4B8; margin-bottom: 24px; }

@media (min-width: 860px) {
  .pricing__wrap { grid-template-columns: 1.3fr 1fr; }
}

/* ---------- contact ---------- */
.contact {
  background: var(--ink);
  color: var(--paper);
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
}

.contact__form {
  display: grid;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brass-soft); }
.field input, .field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 10px 2px;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.contact__form input, .contact__form textarea { color: var(--paper); border-bottom-color: #4A4842; }
.contact__form input:focus, .contact__form textarea:focus { border-bottom-color: var(--accent-bright); }
.contact__note { font-family: var(--font-mono); font-size: 13px; color: var(--accent-bright); min-height: 1.2em; }

@media (min-width: 640px) {
  .contact__form { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .contact__form button { width: fit-content; }
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px var(--gutter) 28px;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #3A3833;
}
.footer__logo { color: var(--paper); margin-bottom: 10px; }
.footer__brand p { color: #B7B3A9; font-size: 15px; max-width: 32ch; }
.footer__links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer__heading { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brass-soft); margin-bottom: 14px; }
.footer__links a {
  position: relative;
  display: block;
  width: fit-content;
  text-decoration: none;
  color: #C9C4B8;
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.3s var(--ease);
}
.footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 1px;
  background: var(--brass-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.footer__links a:hover { color: var(--paper); }
.footer__links a:hover::after { transform: scaleX(1); }
.footer__bottom {
  max-width: var(--container);
  margin: 20px auto 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7A776E;
}

@media (min-width: 700px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: start; }
}

/* ---------- case study pages ---------- */
.case-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 44vh;
  padding: 40px var(--gutter) 48px;
  color: var(--paper);
  overflow: hidden;
}
.case-hero__visual { display: none; }
.case-hero--1 { background: linear-gradient(0deg, rgba(15,13,10,.82) 0%, rgba(15,13,10,.4) 46%, rgba(15,13,10,.14) 100%), linear-gradient(100deg, rgba(15,13,10,.6) 0%, rgba(15,13,10,.05) 55%), url("images/cafe-hospitality-hero.jpg"); }
.case-hero--2 { background: linear-gradient(0deg, rgba(15,13,10,.82) 0%, rgba(15,13,10,.4) 46%, rgba(15,13,10,.14) 100%), linear-gradient(100deg, rgba(15,13,10,.6) 0%, rgba(15,13,10,.05) 55%), url("images/fashion-retail-hero.jpg"); }
.case-hero--3 { background: linear-gradient(0deg, rgba(15,13,10,.82) 0%, rgba(15,13,10,.4) 46%, rgba(15,13,10,.14) 100%), linear-gradient(100deg, rgba(15,13,10,.6) 0%, rgba(15,13,10,.05) 55%), url("images/architecture-studio-hero.jpg"); }
.case-hero--4 { background: linear-gradient(0deg, rgba(15,13,10,.82) 0%, rgba(15,13,10,.4) 46%, rgba(15,13,10,.14) 100%), linear-gradient(100deg, rgba(15,13,10,.6) 0%, rgba(15,13,10,.05) 55%), url("images/health-clinic-hero.jpg"); }
.case-hero--5 { background: linear-gradient(0deg, rgba(15,13,10,.82) 0%, rgba(15,13,10,.4) 46%, rgba(15,13,10,.14) 100%), linear-gradient(100deg, rgba(15,13,10,.6) 0%, rgba(15,13,10,.05) 55%), url("images/allyantra-hero.jpg"); }
.case-hero--1, .case-hero--2, .case-hero--3, .case-hero--4, .case-hero--5 {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.case-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  animation: hero-rise 0.8s ease both;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .case-hero__inner { animation: none; }
}
.case-back {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--paper);
  opacity: 0.85;
  margin-bottom: 28px;
  transition: opacity 0.3s var(--ease);
}
.case-back::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.case-back:hover { opacity: 1; }
.case-back:hover::after { transform: scaleX(1); }
.case-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 14px;
}
.case-title {
  font-size: clamp(30px, 5vw, 48px);
  max-width: 18ch;
  line-height: 1.1;
}

.case-meta {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gutter);
  display: grid;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.case-meta__item dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brass);
  margin-bottom: 4px;
}
.case-meta__item dd { margin: 0; font-size: 16px; }

.case-body {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
}
.case-body h2 {
  font-size: 22px;
  margin-bottom: 16px;
}
.case-body p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 20px;
}
.case-body section { margin-bottom: 48px; }

.case-stats {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
  display: grid;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.case-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
}
.case-stat span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.case-cta {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 80px;
  text-align: center;
}
.case-cta h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 24px; max-width: 30ch; margin-inline: auto; }
.case-cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (min-width: 700px) {
  .case-meta { grid-template-columns: repeat(4, 1fr); }
  .case-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- demo homepage extras ---------- */
.sample-banner {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  padding: 12px var(--gutter);
}
.sample-banner a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.sample-banner .theme-toggle--banner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--paper);
}
.sample-banner a:hover { color: var(--brass-soft); }

.case-hero__sub {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 17px;
  opacity: 0.92;
}
.case-hero__actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn--ghost-invert {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--paper);
}
.btn--ghost-invert:hover {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
}

.demo-grid {
  display: grid;
  gap: 20px;
}
.demo-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-low);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.demo-tile:hover { border-color: var(--accent); box-shadow: var(--shadow-high); }
.demo-tile__fill {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease);
}
.demo-tile:hover .demo-tile__fill { transform: scale(1.05); }
.demo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .demo-tile__fill { transition: none; }
  .demo-tile:hover .demo-tile__fill { transform: none; }
}
.demo-tile__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper);
  z-index: 2;
}
.demo-tile__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  max-width: 84px;
  height: auto;
  color: var(--paper);
  opacity: 0.9;
  z-index: 1;
  transition: transform 0.6s var(--ease);
}
.demo-tile:hover .demo-tile__icon { transform: translate(-50%, -50%) translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .demo-tile:hover .demo-tile__icon { transform: translate(-50%, -50%); }
}
@media (min-width: 700px) {
  .demo-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .demo-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.menu-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 36px 0 4px;
}
.menu-category:first-of-type { margin-top: 8px; }
.menu-category__icon { width: 20px; height: 20px; color: var(--brass); flex-shrink: 0; }

.service-list__icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
  margin-right: 16px;
}

.menu-layout { display: grid; gap: 48px; max-width: 1280px; margin: 0 auto; }
@media (min-width: 900px) {
  .menu-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
}
.menu-sidebar { display: flex; flex-direction: column; gap: 36px; }
@media (min-width: 900px) {
  .menu-sidebar { position: sticky; top: 96px; }
}
.menu-sidebar__steps { gap: 24px; }
.menu-sidebar__steps .process__item h3 { font-size: 16px; }
.menu-sidebar__steps .process__item p { font-size: 14px; }

.menu-list { display: flex; flex-direction: column; max-width: 720px; }
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.menu-list .menu-item:last-child { border-bottom: 1px solid var(--line); }
.menu-item__name { font-family: var(--font-display); font-size: 17px; }
.menu-item__note { display: block; color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.menu-item__price { font-family: var(--font-mono); color: var(--brass); white-space: nowrap; }
.menu-item__right { display: flex; align-items: center; gap: 16px; }
.menu-item__right .qty-control { min-width: 116px; display: flex; justify-content: flex-end; }

.product-grid { display: grid; gap: 24px; }
.product-card { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-low); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.product-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.product-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.product-card__body > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-card__body h3 { font-size: 17px; }
.product-card__body .add-to-cart,
.product-card__body .qty-stepper { width: 100%; }
.product-card__body .qty-stepper { justify-content: space-between; }
.product-card__price { font-family: var(--font-mono); font-size: 14px; color: var(--brass); }
@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- quantity stepper ---------- */
.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
}
.qty-btn {
  width: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--on-surface);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.qty-btn:hover { background: var(--accent); color: var(--paper); }
.qty-value {
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--on-surface);
  border-left: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}

.info-list { display: flex; flex-direction: column; gap: 20px; max-width: 100%; }
.info-list > div {
  padding-left: 16px;
  border-left: 2px solid var(--brass-soft);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.3s var(--ease);
}
.reveal.is-visible .info-list > div { opacity: 1; transform: translateY(0); }
.reveal.is-visible .info-list > div:nth-child(2) { transition-delay: 0.1s; }
.reveal.is-visible .info-list > div:nth-child(3) { transition-delay: 0.2s; }
.reveal.is-visible .info-list > div:nth-child(4) { transition-delay: 0.3s; }
.info-list > div:hover { border-color: var(--brass-bright); }
@media (prefers-reduced-motion: reduce) {
  .info-list > div { opacity: 1; transform: none; transition: border-color 0.3s var(--ease); }
}
.info-list dt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brass); margin-bottom: 4px; }
.info-list dd { margin: 0; font-size: 16px; color: var(--ink-soft); }

.service-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-list__item { background: var(--surface); padding: 22px 24px; display: flex; justify-content: flex-start; align-items: center; gap: 0; transition: background 0.3s var(--ease); }
.service-list__item:hover { background: var(--surface-alt); }
.service-list__item h3 { font-size: 17px; }
.service-list__item p { color: var(--ink-soft); font-size: 14.5px; margin-top: 4px; }
@media (min-width: 700px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
}

.booking-widget {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-low);
}
.booking-widget__row { margin-bottom: 20px; }
.booking-widget__row:last-of-type { margin-bottom: 24px; }
.booking-widget__label { display: block; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brass); margin-bottom: 10px; }
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--on-surface);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.pill:hover { border-color: var(--accent); }
.pill.is-selected {
  background: linear-gradient(155deg, var(--accent-bright), var(--accent));
  border-color: var(--accent);
  color: var(--paper);
  box-shadow: var(--shadow-low);
}

.demo-note {
  margin-top: 40px;
  padding: 18px 22px;
  border: 1px dashed var(--line-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.demo-note a { color: var(--accent); }

/* ---------- cart / checkout ---------- */
.add-to-cart {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--on-surface);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.add-to-cart:hover { border-color: var(--accent); color: var(--accent); }
.add-to-cart.is-added { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.menu-item__right { display: flex; align-items: center; gap: 16px; }

.cart-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.cart-fab.is-visible { display: inline-flex; }
.cart-fab__count {
  background: var(--accent);
  color: var(--paper);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
}

.cart-panel { border: 1px solid var(--line); background: var(--surface); padding: 26px; max-width: 560px; margin: 0 auto; box-shadow: var(--shadow-low); }
.cart-panel__empty { color: var(--ink-soft); font-size: 15px; margin: 0; }
.cart-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.cart-line:last-of-type { border-bottom: 1px solid var(--line); }
.cart-line__qty { color: var(--ink-soft); font-family: var(--font-mono); font-size: 13px; margin-left: 8px; }
.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

/* ---------- faq ---------- */
.faq { max-width: 680px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.15s ease;
}
.faq summary:hover {
  color: var(--accent);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--brass);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-soft); font-size: 15px; margin-top: 12px; max-width: 60ch; }

/* ---------- payment ---------- */
.card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.card-fields[hidden] { display: none; }
.card-fields .field { gap: 6px; min-width: 0; }
.card-fields .field--full { grid-column: 1 / -1; }
.payment-note {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
@media (max-width: 480px) {
  .card-fields { grid-template-columns: 1fr; }
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin-left: 4px;
  border: none;
  background: transparent;
  color: var(--on-surface);
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle__icon {
  position: absolute;
  width: 19px;
  height: 19px;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.theme-toggle__icon--sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle__icon--moon { opacity: 0; transform: rotate(-70deg) scale(0.5); }
:root[data-theme="dark"] .theme-toggle__icon--sun { opacity: 0; transform: rotate(70deg) scale(0.5); }
:root[data-theme="dark"] .theme-toggle__icon--moon { opacity: 1; transform: rotate(0deg) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .theme-toggle__icon { transition: opacity 0.2s linear; transform: none !important; }
}

/* ---------- custom cursor ---------- */
html.has-custom-cursor,
html.has-custom-cursor a,
html.has-custom-cursor button,
html.has-custom-cursor input,
html.has-custom-cursor textarea,
html.has-custom-cursor summary,
html.has-custom-cursor [role="button"] {
  cursor: none;
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.cursor-dot.is-visible,
.cursor-ring.is-visible {
  opacity: 1;
}
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  transition: opacity 0.25s var(--ease), transform 0.15s var(--ease), background 0.3s var(--ease);
}
.cursor-dot.is-active { transform-origin: center; }
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--on-surface);
  opacity: 0;
  transition: opacity 0.25s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.cursor-ring.is-visible { opacity: 0.45; }
.cursor-ring.is-active {
  width: 54px;
  height: 54px;
  opacity: 0.9;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.cursor-dot.is-active { opacity: 0; }
@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- scrollspy + back to top ---------- */
.nav__links a.is-current { color: var(--accent); }
.nav__links a.is-current::after { transform: scaleX(1); }

.back-to-top {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 150;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.back-to-top:hover { background: var(--accent); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.2s linear, visibility 0.2s; }
}

/* ---------- selection + scrollbar ---------- */
::selection {
  background: var(--accent);
  color: var(--paper);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) var(--surface);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 0;
  border: 2px solid var(--surface);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- cross-page view transitions ---------- */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* ---------- code showcase ---------- */
.code-window {
  background: var(--ink);
  border: 1px solid #3A3833;
  box-shadow: var(--shadow-glow-gold);
  max-width: 100%;
  overflow: hidden;
}
.code-window__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #3A3833;
}
.code-window__dots { display: flex; gap: 6px; }
.code-window__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4A4842;
}
.code-window__filename {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8A8578;
}
.code-window__body {
  margin: 0;
  padding: 22px 24px 26px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  overflow-x: auto;
  color: #C9C4B8;
}
@media (max-width: 480px) {
  .code-window__body {
    font-size: 11.5px;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: visible;
  }
}
.code-sel { color: #B08D57; }
.code-prop { color: #8FB39C; }
.code-val { color: #EAE7E0; }
.code-comment { color: #6F6B60; font-style: italic; }
.code-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  margin-left: 2px;
  background: #B08D57;
  vertical-align: -2px;
  animation: code-blink 1s steps(1) infinite;
}
@keyframes code-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .code-cursor { animation: none; }
}

.tech-strip {
  margin-top: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-strip__label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
  margin-right: 4px;
}
.tech-badge {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-alt);
  color: var(--on-surface);
  white-space: nowrap;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.tech-badge:hover { border-color: var(--brass-soft); color: var(--brass); }

/* ---------- size selector ---------- */
.size-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.size-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  min-width: 36px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--on-surface);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.size-pill:hover { border-color: var(--accent); }
.size-pill.is-selected {
  background: linear-gradient(155deg, var(--accent-bright), var(--accent));
  border-color: var(--accent);
  color: var(--paper);
}
.size-hint { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); }
.add-to-cart:disabled,
.qty-control button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.add-to-cart:disabled:hover { border-color: var(--line-strong); color: var(--on-surface); }
.shipping-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

/* ---------- practitioner grid ---------- */
.practitioner-grid { display: grid; gap: 24px; margin-top: 8px; }
.practitioner-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow-low);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.practitioner-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-high); }
.practitioner-card__icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 16px; }
.practitioner-card h3 { font-size: 17px; margin-bottom: 2px; }
.practitioner-card__role {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brass);
  margin-bottom: 10px;
}
.practitioner-card p { color: var(--ink-soft); font-size: 14.5px; }
@media (min-width: 700px) {
  .practitioner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .practitioner-grid { grid-template-columns: repeat(4, 1fr); }
}
