/* ==========================================================================
   Slab Lab Pottery — slablabpottery.com
   Palette and proportions taken from the work itself: speckled stoneware,
   Green Mist and Blue Depths glaze, a rust break at the rim.
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------ */
:root {
  color-scheme: light;

  /* Clay + paper */
  --paper:      #f7f2e8;
  --paper-2:    #f0e8da;
  --paper-3:    #e6dbc7;
  --sand:       #d8cab2;

  /* Ink */
  --ink:        #1e1b16;
  --ink-2:      #453e33;
  --ink-3:      #6d6455;
  --ink-4:      #978d7b;

  /* Glaze */
  --deep:       #10222a;   /* Blue Depths, rim */
  --deep-2:     #1a3b47;
  --sea:        #2e6a79;
  --sea-lit:    #4f97a6;
  --sage:       #7c8d6c;   /* Green Mist */
  --sage-2:     #9fac8c;
  --rust:       #a3552f;   /* where the glaze thins */
  --gold:       #bf8b3f;

  /* Roles */
  --bg:         var(--paper);
  --fg:         var(--ink);
  --muted:      var(--ink-3);
  --rule:       color-mix(in srgb, var(--ink) 14%, transparent);
  --rule-soft:  color-mix(in srgb, var(--ink) 8%, transparent);
  --accent:     var(--rust);

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  --step-0:  clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.25rem + 1vw, 2rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --step-4:  clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);
  --step-5:  clamp(3rem, 1.5rem + 6.5vw, 7.5rem);

  /* Space */
  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --bay: clamp(4.5rem, 10vw, 9.5rem);
  --max: 1320px;
  --measure: 62ch;

  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 76px;
}

@media (max-width: 720px) { :root { --header-h: 62px; } }

/* ---------- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: color-mix(in srgb, var(--sage) 40%, transparent); color: var(--ink); }

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

/* Paper grain — sits above the background, below content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: 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='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

/* ---------- Typography helpers ----------------------------------------- */
.display {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.022em;
}
.label {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: var(--measure);
}
.serif-italic { font-family: var(--display); font-style: italic; font-weight: 400; }

/* ---------- Layout ------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}
.bay { padding-block: var(--bay); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; }
}
.section-head__index {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.section-head__index span:first-child {
  font-variant-numeric: tabular-nums;
  font-size: var(--step--1);
  color: var(--accent);
  letter-spacing: 0.1em;
}
.section-head h2 { font-size: var(--step-4); }

/* ==========================================================================
   Scroll progress + header
   ========================================================================== */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 90;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--deep), var(--sea), var(--sage), var(--rust));
  will-change: transform;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--rule-soft);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
.site-header.is-stuck::after { opacity: 1; }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__mark .ring { transform-origin: 50% 50%; transition: transform 0.9s var(--ease-out); }
.brand:hover .ring { transform: rotate(24deg); }
.brand__name {
  font-family: var(--display);
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  line-height: 1;
  font-weight: 500;
}
.brand__name em { font-style: normal; color: var(--accent); }

.nav { display: none; }
@media (min-width: 940px) {
  .nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
}
.nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-block: 0.4rem;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: var(--ink); }

/* Button */
.btn {
  --btn-bg: var(--deep);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.78em 1.5em;
  border: 1px solid var(--btn-bg);
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover { color: var(--btn-bg); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--rule); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); border-color: var(--ink); }
.btn--sm { padding: 0.6em 1.1em; font-size: 0.76rem; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none; border: 0; cursor: pointer;
  align-items: center;
}
@media (min-width: 940px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 79;
  background: var(--paper);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
.drawer.is-open { transform: translateY(0); visibility: visible; transition-delay: 0s; }
.drawer nav { display: grid; gap: 0.2rem; }
.drawer nav a {
  font-family: var(--display);
  font-size: clamp(1.9rem, 8vw, 2.9rem);
  line-height: 1.25;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  opacity: 0;
  transform: translateY(14px);
}
.drawer.is-open nav a { animation: drawerIn 0.5s var(--ease-out) forwards; }
.drawer nav a small { font-family: var(--sans); font-size: 0.72rem; color: var(--ink-4); letter-spacing: 0.12em; }
@keyframes drawerIn { to { opacity: 1; transform: none; } }
.drawer__foot { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; font-size: 0.85rem; color: var(--muted); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: clip;
  background: var(--deep);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.12) translate3d(0, var(--hero-y, 0px), 0);
  will-change: transform;
  filter: saturate(1.02);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(16,34,42,0.55) 0%, rgba(16,34,42,0.12) 32%, rgba(16,34,42,0.62) 78%, rgba(16,34,42,0.9) 100%),
    radial-gradient(120% 80% at 20% 100%, rgba(16,34,42,0.7), transparent 60%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(3rem, 9vh, 7rem);
  color: var(--paper);
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 0.9rem;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  margin-bottom: clamp(1.1rem, 3vw, 2rem);
}
.hero__eyebrow::before {
  content: ""; width: clamp(28px, 6vw, 64px); height: 1px;
  background: currentColor; opacity: 0.55;
}
.hero h1 {
  font-size: var(--step-5);
  max-width: 15ch;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span {
  display: block;
  transform: translateY(102%);
  animation: riseIn 1.15s var(--ease-out) forwards;
}
.hero h1 .ln:nth-child(2) > span { animation-delay: 0.1s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes riseIn { to { transform: translateY(0); } }
.hero h1 em { font-style: italic; color: var(--sage-2); }

.hero__foot {
  display: grid;
  gap: 1.6rem;
  align-items: end;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.55s forwards;
}
@media (min-width: 860px) {
  .hero__foot { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__foot p {
  max-width: 44ch;
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  font-size: var(--step-1);
  line-height: 1.5;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero .btn { --btn-bg: var(--paper); --btn-fg: var(--deep); }
.hero .btn::before { background: var(--deep); }
.hero .btn:hover { color: var(--paper); }
.hero .btn--ghost { --btn-bg: transparent; --btn-fg: var(--paper); border-color: color-mix(in srgb, var(--paper) 40%, transparent); }
.hero .btn--ghost::before { background: var(--paper); }
.hero .btn--ghost:hover { color: var(--deep); border-color: var(--paper); }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(1.5rem, 4vh, 3rem);
  z-index: 3;
  display: none;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 65%, transparent);
  writing-mode: vertical-rl;
}
@media (min-width: 860px) { .scroll-cue { display: flex; } }
.scroll-cue i {
  display: block; width: 1px; height: 54px;
  background: linear-gradient(180deg, transparent, currentColor);
  position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0;
  background: var(--paper);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* ==========================================================================
   Ticker — speed responds to scroll velocity
   ========================================================================== */
.ticker {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: color-mix(in srgb, var(--paper) 90%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
  padding-block: clamp(0.9rem, 2vw, 1.4rem);
}
.ticker__track {
  display: flex;
  width: max-content;
  transform: translate3d(var(--tx, 0px), 0, 0);
  will-change: transform;
}
.ticker__group {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-right: clamp(1.5rem, 3vw, 3rem);
  flex: none;
}
.ticker__group span {
  font-family: var(--display);
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.ticker__group span:nth-child(even) { font-style: italic; color: var(--sage-2); }
.ticker__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rust); flex: none; }

/* ==========================================================================
   Statement — words brighten as they pass
   ========================================================================== */
.statement { background: var(--paper); }
.statement__body {
  font-family: var(--display);
  font-size: clamp(1.55rem, 4.4vw, 3.35rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.statement__body .w {
  color: color-mix(in srgb, var(--ink) 18%, transparent);
  transition: color 0.45s var(--ease);
}
.statement__body .w.lit { color: var(--ink); }
.statement__body .w.accent.lit { color: var(--accent); font-style: italic; }

.statement__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 980px) { .statement__grid { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.statement__aside { display: grid; gap: 1.6rem; }
.statement__aside dl { display: grid; gap: 1.1rem; }
.statement__aside .row {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  padding-bottom: 0.9rem; border-bottom: 1px solid var(--rule-soft);
}
.statement__aside dt { color: var(--muted); font-size: 0.88rem; }
.statement__aside dd { margin: 0; font-family: var(--display); font-size: 1.05rem; text-align: right; }

/* ==========================================================================
   Featured piece — sticky image, scrolling detail
   ========================================================================== */
.feature { background: var(--paper-2); position: relative; overflow: clip; }
.feature__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 980px) { .feature__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(3rem, 6vw, 6rem); } }

.feature__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 70px -40px rgba(30,27,22,0.55);
}
@media (min-width: 980px) { .feature__media { position: sticky; top: calc(var(--header-h) + 3vh); aspect-ratio: 4 / 5.1; } }
.feature__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.9s var(--ease), transform 1.4s var(--ease-out);
}
.feature__media img.is-active { opacity: 1; transform: scale(1); }
.feature__media::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(30,27,22,0.1);
  pointer-events: none;
}
.feature__count {
  position: absolute; z-index: 2;
  left: 1rem; bottom: 1rem;
  display: flex; gap: 6px;
}
.feature__count i {
  width: 22px; height: 2px; border-radius: 2px;
  background: color-mix(in srgb, var(--paper) 45%, transparent);
  transition: background 0.4s var(--ease);
}
.feature__count i.on { background: var(--paper); }

.feature__steps { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.feature__step {
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  opacity: 0.4;
  transition: opacity 0.5s var(--ease);
}
.feature__step.is-active { opacity: 1; }
.feature__step h3 { font-family: var(--display); font-size: var(--step-2); margin-bottom: 0.6rem; letter-spacing: -0.015em; }
.feature__step p { color: var(--ink-2); max-width: 46ch; }
.feature__step .label { display: block; margin-bottom: 0.9rem; }

.price-tag {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--display); font-size: var(--step-2);
  margin-top: 0.4rem;
}
.price-tag small { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Work grid
   ========================================================================== */
.work { background: var(--paper); }
.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 780px) { .filters { flex-wrap: wrap; overflow: visible; } }
.filters button {
  flex: none;
  min-height: 42px;
  padding: 0.52em 1.05em;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 100px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.filters button:hover { border-color: var(--ink-4); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters button .n { opacity: 0.5; font-variant-numeric: tabular-nums; margin-left: 0.35em; font-size: 0.9em; }

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.6rem) clamp(1.1rem, 2.2vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.card.in { opacity: 1; transform: none; }
.card.is-hidden { display: none; }

/* A standout piece takes two columns and a wider crop */
@media (min-width: 700px) {
  .card.is-feature { grid-column: span 2; }
  .card.is-feature .card__frame { aspect-ratio: 16 / 11; }
  .card.is-feature h3 { font-size: 1.42rem; }
  .card.is-feature .card__price { font-size: 1.2rem; }
}

.card__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
  aspect-ratio: 4 / 5;
  margin-bottom: 1.05rem;
}
.card__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08) translate3d(0, var(--py, 0px), 0);
  transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease);
}
.card:hover .card__frame img { transform: scale(1.14) translate3d(0, var(--py, 0px), 0); }
.card__frame::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(30,27,22,0.09);
  pointer-events: none;
}
.card__badge {
  position: absolute; z-index: 2; top: 0.75rem; left: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.34em 0.72em;
  border-radius: 100px;
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 600;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink-2);
}
.card__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card__badge[data-status="available"] { color: #2f6b3c; }
.card__badge[data-status="multiples"] { color: var(--sea); }
.card__badge[data-status="sold"] { color: var(--ink-4); }
.card__badge[data-status="inquire"] { color: var(--rust); }

.card__more {
  position: absolute; z-index: 2; right: 0.75rem; bottom: 0.75rem;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(8px) scale(0.9);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease-out);
}
.card:hover .card__more, .card:focus-within .card__more { opacity: 1; transform: none; }
.card__more svg { width: 15px; height: 15px; }

.card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.card h3 { font-family: var(--display); font-size: 1.14rem; line-height: 1.28; letter-spacing: -0.012em; }

/* Stretches over the whole card so any part of it is clickable */
.card__hit {
  font: inherit; color: inherit; text-align: left;
  background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer;
}
.card__hit::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--radius); }
.card__hit:focus-visible { outline: none; }
.card__hit:focus-visible::after { outline: 2px solid var(--deep); outline-offset: 4px; }
.card__price { font-family: var(--display); font-size: 1.05rem; white-space: nowrap; color: var(--ink-2); }
.card__price.is-ask { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-4); }
.card__meta { margin-top: 0.3rem; font-size: 0.82rem; color: var(--ink-4); }
.card__shots { margin-top: 0.45rem; font-size: 0.72rem; color: var(--ink-4); letter-spacing: 0.06em; }

.empty {
  grid-column: 1 / -1;
  padding: 4rem 0;
  text-align: center;
  color: var(--muted);
  font-family: var(--display);
  font-size: var(--step-1);
}

.work__note {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 820px) { .work__note { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }
.work__note p { color: var(--muted); font-size: 0.92rem; max-width: 52ch; }
.work__note strong { color: var(--ink-2); font-weight: 600; }

/* ==========================================================================
   Process — sticky media, stepped text
   ========================================================================== */
.process { background: var(--deep); color: var(--paper); position: relative; overflow: clip; }
.process .label { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.process .section-head h2 { color: var(--paper); }
.process .section-head p { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.process .section-head__index span:first-child { color: var(--sage-2); }

.process__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 980px) { .process__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); } }

.process__stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--deep-2);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,0.9);
}
@media (min-width: 980px) {
  .process__grid { grid-template-areas: "media steps"; }
  .process__stage { grid-area: media; position: sticky; top: calc(var(--header-h) + 8vh); }
  .process__steps { grid-area: steps; }
}
.process__stage figure { position: absolute; inset: 0; margin: 0; }
.process__stage img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1s var(--ease), transform 1.6s var(--ease-out);
}
.process__stage figure.is-active img { opacity: 1; transform: scale(1); }
.process__stage figcaption {
  position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 1rem;
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 80%, transparent);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.6s var(--ease) 0.15s, transform 0.6s var(--ease-out) 0.15s;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
.process__stage figure.is-active figcaption { opacity: 1; transform: none; }

.process__rail {
  position: absolute; z-index: 3; right: 1rem; top: 1rem; bottom: 1rem;
  width: 2px; border-radius: 2px;
  background: color-mix(in srgb, var(--paper) 18%, transparent);
  overflow: hidden;
}
.process__rail i {
  position: absolute; inset: 0 0 auto 0;
  height: 100%;
  background: var(--sage-2);
  transform-origin: 50% 0;
  transform: scaleY(var(--pp, 0));
  transition: transform 0.35s var(--ease);
}

.process__steps { display: grid; gap: clamp(2.5rem, 6vw, 5rem); counter-reset: step; }
.process__step {
  padding-left: clamp(2.6rem, 5vw, 3.6rem);
  position: relative;
  opacity: 0.32;
  transition: opacity 0.55s var(--ease);
}
.process__step.is-active { opacity: 1; }
.process__step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; left: 0; top: 0.35em;
  font-size: 0.74rem; letter-spacing: 0.12em;
  color: var(--sage-2);
  font-variant-numeric: tabular-nums;
}
.process__step::after {
  content: "";
  position: absolute; left: 0.55rem; top: 2.4em; bottom: -2.4em;
  width: 1px;
  background: color-mix(in srgb, var(--paper) 16%, transparent);
}
.process__step:last-child::after { display: none; }
.process__step h3 { font-family: var(--display); font-size: var(--step-2); margin-bottom: 0.65rem; letter-spacing: -0.015em; }
.process__step p { color: color-mix(in srgb, var(--paper) 72%, transparent); max-width: 44ch; }

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--paper-2); overflow: clip; }
.about__grid { display: grid; gap: clamp(2.2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 6.5rem); } }
.about__portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sand);
  box-shadow: 0 34px 80px -50px rgba(30,27,22,0.6);
}
.about__portrait img {
  width: 100%; height: 112%;
  object-fit: cover;
  object-position: 50% 22%;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.about__body { display: grid; gap: 1.5rem; }
.about__body h2 { font-size: var(--step-3); max-width: 16ch; }
.about__body p { color: var(--ink-2); max-width: 52ch; }
.about__body blockquote {
  margin: 0.4rem 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--rust);
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink);
  max-width: 40ch;
}
.about__facts {
  display: grid; gap: 0.9rem;
  margin-top: 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
@media (min-width: 620px) { .about__facts { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; } }
.about__facts div { display: grid; gap: 0.25rem; }
.about__facts dt { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }
.about__facts dd { margin: 0; font-family: var(--display); font-size: 1.02rem; line-height: 1.35; }

/* ==========================================================================
   Homes / testimonial band
   ========================================================================== */
.homes { background: var(--paper); }
.homes__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .homes__grid { grid-template-columns: minmax(0,1fr) minmax(0,0.85fr); gap: clamp(3rem, 6vw, 5.5rem); } }
.homes__quote { font-family: var(--display); font-size: var(--step-3); line-height: 1.22; letter-spacing: -0.02em; max-width: 17ch; }
.homes__quote span { color: var(--accent); font-style: italic; }
.homes__cite { margin-top: 1.6rem; color: var(--muted); font-size: 0.9rem; }
.homes__media {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 70px -45px rgba(30,27,22,0.55);
}
.homes__media img { width: 100%; }

/* ==========================================================================
   Enquire
   ========================================================================== */
.enquire { background: var(--paper-2); }
.enquire__grid { display: grid; gap: clamp(2.4rem, 5vw, 4rem); }
@media (min-width: 940px) { .enquire__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); } }

.enquire__aside { display: grid; gap: 1.6rem; align-content: start; }
.enquire__aside h2 { font-size: var(--step-3); max-width: 13ch; }
.contact-list { display: grid; gap: 1.05rem; }
.contact-list a, .contact-list span { text-decoration: none; }
.contact-list .row { display: grid; gap: 0.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule-soft); }
.contact-list dt { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }
.contact-list dd { margin: 0; font-family: var(--display); font-size: 1.08rem; }
.contact-list dd a { border-bottom: 1px solid var(--rule); padding-bottom: 1px; transition: border-color 0.3s var(--ease); }
.contact-list dd a:hover { border-color: var(--accent); }

form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.42rem; }
.field label { font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.82em 0.95em;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 0.98rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-4); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--deep); background: #fff; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d6455' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.3rem; }
.form-note { font-size: 0.8rem; color: var(--ink-4); max-width: 40ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--deep); color: color-mix(in srgb, var(--paper) 80%, transparent); padding-block: clamp(3rem, 7vw, 5.5rem) 2rem; }
.site-footer a { text-decoration: none; }
.footer__top { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid color-mix(in srgb, var(--paper) 14%, transparent); }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.footer__word { font-family: var(--display); font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; color: var(--paper); letter-spacing: -0.025em; max-width: 12ch; }
.footer__word em { font-style: italic; color: var(--sage-2); }
.footer__col h4 { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 50%, transparent); margin-bottom: 1rem; }
.footer__col li { margin-bottom: 0.55rem; }
.footer__col a { transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--paper); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.8rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.8rem; font-size: 0.78rem;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}
.footer__bottom a:hover { color: var(--paper); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  border: 0; padding: 0; margin: 0;
  width: 100%; max-width: none; height: 100%; max-height: none;
  background: transparent;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(12,20,24,0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[open] { display: grid; }
.lb__panel {
  position: relative;
  background: var(--paper);
  width: min(1180px, 100%);
  max-height: 100%;
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  animation: lbIn 0.45s var(--ease-out);
}
@keyframes lbIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .lb__panel { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); max-height: min(92vh, 900px); border-radius: var(--radius); }
}
.lb__media { position: relative; background: var(--paper-3); min-height: 44vh; }
@media (min-width: 900px) { .lb__media { min-height: 0; } }
.lb__stage { position: relative; aspect-ratio: 4/5; height: 100%; }
.lb__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s var(--ease); }
.lb__stage img.on { opacity: 1; }
.lb__thumbs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; padding: 0.7rem; overflow-x: auto; scrollbar-width: none; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumbs button {
  flex: none; width: 52px; height: 62px; padding: 0; border: 0; cursor: pointer;
  border-radius: 2px; overflow: hidden; opacity: 0.55;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
  transition: opacity 0.3s var(--ease), box-shadow 0.3s var(--ease);
  background: none;
}
.lb__thumbs button.on { opacity: 1; box-shadow: 0 0 0 2px var(--paper); }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lb__nav[data-dir="prev"] { left: 0.7rem; }
.lb__nav[data-dir="next"] { right: 0.7rem; }
.lb__nav svg { width: 15px; height: 15px; }

.lb__body { padding: clamp(1.5rem, 3.5vw, 2.6rem); display: grid; gap: 1.2rem; align-content: start; }
.lb__body h3 { font-family: var(--display); font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.02em; }
.lb__body .desc { color: var(--ink-2); }
.lb__spec { display: grid; gap: 0.75rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.lb__spec .row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; font-size: 0.9rem; }
.lb__spec dt { color: var(--ink-4); }
.lb__spec dd { margin: 0; }
.lb__close {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lb__close svg { width: 14px; height: 14px; }

/* ==========================================================================
   Reveal utility
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

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

/* Toast */
.toast {
  position: fixed; z-index: 120; left: 50%; bottom: 1.4rem;
  transform: translate(-50%, 140%);
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.2rem; border-radius: 100px;
  font-size: 0.85rem; box-shadow: 0 18px 40px -22px rgba(0,0,0,0.7);
  transition: transform 0.55s var(--ease-out);
  max-width: calc(100vw - 2rem);
}
.toast.on { transform: translate(-50%, 0); }

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@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;
  }
  [data-reveal], .card { opacity: 1 !important; transform: none !important; }
  .hero h1 .ln > span { transform: none; }
  .hero__foot { opacity: 1; }
  .hero__media img { transform: scale(1.04); }
  .card__frame img, .about__portrait img { transform: none !important; }
  .feature__media img, .process__stage img { transform: none !important; }
  .feature__step, .process__step { opacity: 1; }
  .statement__body .w { color: var(--ink); }
}

@media print {
  .site-header, .progress, .scroll-cue, .ticker, .drawer { display: none !important; }
  body::before { display: none; }
}
