/* Soheil Oriental Rugs. White ground, gold linework drawn like the borders and medallions of a rug,
   and burnt brown, the color of walnut-husk dye, for type and buttons.
   Everything reads without JavaScript; motion.js adds the movement on top (html.motion). */
:root {
  --white: #FFFFFF;
  --paper: #FCFAF6;
  --gold: #B08A3E;
  --gold-text: #8A6A2A;
  --gold-soft: #D8C28C;
  --gold-pale: #EFE4C8;
  --brown: #5B2A16;
  --brown-deep: #3A1A0D;
  --ink: #2E1C14;
  --ink-soft: #6B5446;

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --text: "Jost", "Segoe UI", sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.5rem;
  --step-2: 2rem;
  --step-3: clamp(2.6rem, 5vw, 4.25rem);
  --step-4: clamp(3rem, 5vw, 5.25rem);

  --wrap: 78rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --header: 4.5rem;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);

  /* Gold lattice: the diamond grid a weaver draws a field pattern on */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 0L56 28L28 56L0 28z' fill='none' stroke='%23B08A3E' stroke-width='0.8'/%3E%3Cpath d='M28 24l4 4-4 4-4-4z' fill='%23B08A3E'/%3E%3C/svg%3E");

  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* A faint grain, like paper or wool */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035; mix-blend-mode: multiply;
}

img, canvas, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  color: var(--brown-deep);
  text-wrap: balance;
}
h2 { font-size: var(--step-3); font-weight: 300; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); line-height: 1.2; font-weight: 500; }
p { margin: 0; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold); }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.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;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--white); color: var(--ink); padding: 0.5rem 1rem;
}
.skip:focus { top: 1rem; }

/* Opening: a whole rug is woven across the screen, knot by knot from the bottom, then lifts away */
.intro { display: none; }
.has-intro .intro {
  position: fixed; inset: 0; z-index: 95; overflow: hidden;
  display: block; background: var(--white); cursor: pointer;
  /* if the script never runs, get out of the way */
  animation: intro-failsafe 0.01s 7s forwards;
}
@keyframes intro-failsafe { to { visibility: hidden; opacity: 0; } }
.intro-loom { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-weaver {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--gold); box-shadow: 0 0 14px 2px rgba(176, 138, 62, 0.55);
  will-change: transform;
}
.intro-skip {
  position: absolute; left: 0; right: 0; bottom: 1.1rem; text-align: center;
  font-size: 0.8rem; letter-spacing: 0.06em; color: var(--brown-deep);
  text-shadow: 0 0 6px var(--white), 0 0 2px var(--white);
}

/* Knitting: the hero rug is first tied in knots, then the photo itself shows through */
.knit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity 0.9s ease; }
.knit.is-done { opacity: 0; }

/* Custom cursor, only with a mouse */
.cursor { display: none; }
.has-cursor .cursor {
  display: block; position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
}
.has-cursor .cursor.is-on { opacity: 1; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary { cursor: none; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--brown); transition: opacity 0.2s; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease),
    background-color 0.3s, border-color 0.3s, opacity 0.3s;
}
.cursor-label {
  font: 500 0.78rem/1.2 var(--text); color: var(--white); text-align: center;
  opacity: 0; transition: opacity 0.2s; padding: 0 0.6rem;
}
.cursor.is-link .cursor-ring { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgba(176, 138, 62, 0.12); }
.cursor.is-label .cursor-ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--brown); border-color: var(--brown); }
.cursor.is-label .cursor-label { opacity: 1; transition-delay: 0.1s; }
.cursor.is-label .cursor-dot, .cursor.is-loupe .cursor-dot, .cursor.is-loupe .cursor-ring { opacity: 0; }

/* Buttons: a brown fill that rises from below, with a gold line just inside */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.75rem 1.75rem;
  background: var(--brown); color: var(--white);
  font: 500 var(--step--1)/1.2 var(--text); letter-spacing: 0.02em;
  text-decoration: none; text-align: center;
  border: 1px solid var(--brown);
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brown-deep);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 3px; pointer-events: none;
  border: 1px solid rgba(216, 194, 140, 0.55);
}
.btn:hover::before { transform: translateY(0); }
.btn--line { background: transparent; color: var(--brown); border-color: var(--gold-soft); }
.btn--line::before { background: var(--brown); }
.btn--line::after { border-color: var(--gold-pale); }
.btn--line:hover { color: var(--white); border-color: var(--brown); }
.btn--small { min-height: 2.6rem; padding: 0.45rem 1.2rem; font-size: 0.875rem; }
.magnet { will-change: transform; }

/* Header: fixed, clear over the hero, white once you scroll */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: transform 0.6s var(--ease), background-color 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gold-pale);
}
.site-header.is-hidden { transform: translateY(-100%); }
.bar { display: flex; align-items: center; gap: 2rem; min-height: var(--header); }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand-name { font-family: var(--display); font-size: 1.45rem; font-weight: 500; line-height: 1; color: var(--brown-deep); }
.brand-name span { display: block; margin-top: 0.15rem; font-family: var(--text); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.04em; color: var(--gold-text); }
.nav { display: flex; gap: 2.2rem; }
.nav a { position: relative; text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.3s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.2rem; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover { color: var(--brown-deep); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(var(--header) + 2rem) 0 5.5rem;
}
.hero-lattice span { position: absolute; inset: 0; background: var(--lattice) center / 56px 56px; pointer-events: none; }
.lattice-base {
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 80%);
}
.lattice-glow {
  /* a pool of light that follows the mouse across the weave */
  --mx: 70%; --my: 50%;
  opacity: 0; transition: opacity 0.8s;
  -webkit-mask-image: radial-gradient(circle 240px at var(--mx) var(--my), #000, transparent);
  mask-image: radial-gradient(circle 240px at var(--mx) var(--my), #000, transparent);
}
.hero.is-lit .lattice-glow { opacity: 0.95; }
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.hero-kicker { font-family: var(--display); font-style: italic; font-size: 1.35rem; color: var(--gold-text); }
.hero-title { margin-top: 1.25rem; font-size: var(--step-4); font-weight: 300; line-height: 1; letter-spacing: -0.015em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.lede { margin-top: 2rem; color: var(--ink-soft); max-width: 31em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }

.medallion { position: relative; margin: 0; width: 100%; max-width: 36rem; justify-self: end; }
.medallion-art { position: relative; aspect-ratio: 1; }
.ml { position: absolute; inset: 0; width: 100%; height: 100%; }
.ml path { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ml-outer { opacity: 0.5; }
.ml-diamond path { stroke-width: 1.5; }
.ml path.ml-tip { fill: var(--gold); stroke: none; }
.medallion-img {
  /* the square sits inside the plain diamond, its corners on the diamond's edges */
  position: absolute; left: 24%; top: 24%; width: 52%; height: 52%;
  display: block; background: var(--white);
  box-shadow: 0 0 0 5px var(--white), 0 0 0 6px var(--gold), 0 0 0 10px var(--white), 0 0 0 11px var(--gold-soft),
    0 30px 60px -20px rgba(58, 26, 13, 0.35);
}
.medallion-img img { width: 100%; height: 100%; object-fit: cover; }
.loupe {
  /* a jeweller's loupe: the rug at native resolution under the mouse */
  position: absolute; left: 0; top: 0; width: 150px; height: 150px; border-radius: 50%;
  pointer-events: none; opacity: 0;
  background-repeat: no-repeat; background-color: var(--white);
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 5px rgba(255, 255, 255, 0.9), 0 0 0 6px var(--gold-soft),
    0 20px 40px rgba(58, 26, 13, 0.35);
  transition: opacity 0.3s;
}
.medallion-img.is-looking .loupe { opacity: 1; }
.medallion figcaption { margin-top: 0.25rem; text-align: center; font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink-soft);
}
.scroll-cue::after {
  content: ""; width: 1px; height: 2.5rem; background: var(--gold);
  transform-origin: top; animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Marquee of rug names */
.marquee { overflow: hidden; padding-block: clamp(1.25rem, 3vw, 2.25rem); border-block: 1px solid var(--gold-pale); }
.marquee-track {
  display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
  width: max-content; white-space: nowrap;
  font-family: var(--display); font-weight: 300; font-style: italic;
  font-size: clamp(3rem, 8vw, 7.5rem); line-height: 1.1; color: var(--brown-deep);
}
.marquee-track .o { color: transparent; -webkit-text-stroke: 1px var(--gold); }
.marquee-track i { flex: none; width: 0.16em; height: 0.16em; background: var(--gold); transform: rotate(45deg); }

/* Collection. A grid by default; a pinned horizontal gallery on wide screens with motion. */
.collection { padding-block: clamp(4rem, 9vw, 7.5rem); overflow-x: clip; }
.collection-track { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.collection-intro p { margin-top: 1.25rem; color: var(--ink-soft); max-width: 30em; }
.collection-hint { display: none; }
.pieces {
  list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2.4vw, 2rem);
}
.collection-end { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; justify-items: center; }
.collection-progress { display: none; }

.collection.is-horizontal { padding-block: 0; }
.is-horizontal .collection-pin { position: relative; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.is-horizontal .collection-track {
  display: flex; align-items: center; gap: clamp(3rem, 6vw, 7rem);
  width: max-content; max-width: none; margin: 0;
  padding: var(--header) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 0;
}
.is-horizontal .collection-intro { flex: none; width: min(28rem, 32vw); }
.is-horizontal .collection-hint {
  display: flex; align-items: center; gap: 0.75rem; margin-top: 2rem;
  font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--gold-text);
}
.is-horizontal .collection-hint::after { content: ""; width: 4rem; height: 1px; background: var(--gold); }
.is-horizontal .pieces { display: flex; align-items: flex-start; gap: clamp(2rem, 3.5vw, 3.5rem); margin: 0; }
.is-horizontal .pieces li { flex: none; width: clamp(240px, 21vw, 340px); }
.is-horizontal .pieces li:nth-child(even) { margin-top: clamp(3rem, 9vh, 6rem); }
.is-horizontal .collection-end { flex: none; width: min(24rem, 28vw); margin: 0; }
.is-horizontal .collection-progress {
  display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2.25rem;
  height: 1px; background: var(--gold-pale);
}
.collection-progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }

.piece { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.piece-frame { position: relative; display: block; will-change: transform; }
.piece-frame::before {
  /* a gold frame that draws itself around the rug on hover */
  content: ""; position: absolute; inset: -9px; pointer-events: none;
  border: 1px solid var(--gold);
  clip-path: inset(0 100% 100% 0);
  transition: clip-path 0.9s var(--ease);
}
.piece-frame::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.piece:hover .piece-frame::before, .piece:focus-visible .piece-frame::before { clip-path: inset(0 0 0 0); }
.piece-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper); outline: 1px solid var(--gold-pale); }
.piece-img img { width: 100%; height: 100%; object-fit: cover; scale: 1.14; transition: scale 1.4s var(--ease); }
.piece:hover .piece-img img, .piece:focus-visible .piece-img img { scale: 1.26; }
.piece-name { margin-top: 1.4rem; font-family: var(--display); font-size: 1.55rem; font-weight: 500; line-height: 1.1; color: var(--brown-deep); }
.piece-meta { margin-top: 0.3rem; font-size: 0.9rem; color: var(--ink-soft); }
.piece-size { margin-top: 0.1rem; font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--gold-text); }
.piece-link {
  position: relative; margin-top: 0.6rem; align-self: flex-start;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; color: var(--brown);
}
.piece-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.15rem; height: 1px;
  background: var(--gold-soft); transform-origin: left; transition: transform 0.6s var(--ease), background-color 0.3s;
}
.piece:hover .piece-link::after { background: var(--brown); transform: scaleX(1.15); }

.round-link {
  display: grid; place-items: center; text-align: center;
  width: clamp(11rem, 16vw, 14rem); aspect-ratio: 1; border-radius: 50%;
  padding: 1.75rem;
  font-family: var(--display); font-size: 1.45rem; line-height: 1.15; color: var(--brown-deep); text-decoration: none;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 7px var(--white), inset 0 0 0 8px var(--gold-pale);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.round-link:hover { background: var(--brown); color: var(--white); box-shadow: inset 0 0 0 7px var(--brown), inset 0 0 0 8px rgba(216, 194, 140, 0.6); }

/* Services: a list of large titles; with a mouse, a rug close-up floats beside the pointer */
.services { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem); }
.svc-list { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; border-top: 1px solid var(--gold-pale); }
.svc {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1rem 3rem; align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--gold-pale);
}
.svc::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s var(--ease);
}
.svc:hover::after { transform: scaleX(1); }
.svc h3 { font-size: clamp(2.3rem, 5vw, 4.5rem); font-weight: 300; line-height: 1; transition: transform 0.8s var(--ease), color 0.4s; }
.svc:hover h3 { transform: translateX(1.5rem); color: var(--brown); }
.svc p { color: var(--ink-soft); max-width: 32em; }
.svc-media { grid-column: 1 / -1; position: relative; display: block; max-width: 34rem; aspect-ratio: 16 / 10; overflow: hidden; outline: 1px solid var(--gold-pale); outline-offset: 5px; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.has-cursor .svc-media { display: none; }
.svc-preview { display: none; }
.has-cursor .svc-preview {
  display: block; position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: clamp(200px, 18vw, 280px); aspect-ratio: 1; opacity: 0; visibility: hidden;
  outline: 1px solid var(--gold); outline-offset: 7px;
  box-shadow: 0 30px 60px -20px rgba(58, 26, 13, 0.45);
}
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* A full-width photo of a rug on the loom, between the process and the hand-knotted tells */
.band { position: relative; margin: 0; height: clamp(24rem, 78vh, 46rem); overflow: hidden; background: var(--brown-deep); }
.band-media { position: absolute; inset: 0; }
.band-media picture { display: block; height: 100%; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.motion .band-media { inset: -10% 0; }
.band::after {
  content: ""; position: absolute; inset: clamp(10px, 1.6vw, 18px); pointer-events: none;
  border: 1px solid rgba(216, 194, 140, 0.75);
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(30, 14, 6, 0.72));
}
.band-caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 0 calc(var(--gutter) + 1rem) clamp(2.25rem, 5vw, 3.5rem);
  font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.08;
  color: var(--white); text-wrap: balance; max-width: min(var(--wrap), 52rem); margin-left: max(0px, calc((100vw - var(--wrap)) / 2));
}

/* Process */
.process { background: var(--paper); border-block: 1px solid var(--gold-pale); padding-block: clamp(4rem, 9vw, 7rem); }
.steps-wrap { position: relative; margin-top: 3rem; }
.steps-line {
  position: absolute; top: 1.45rem; left: 1.45rem; right: 0; height: 1px;
  background: var(--gold-soft); transform-origin: left;
}
.steps {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem;
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 4.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.9rem; height: 2.9rem;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.3rem; font-weight: 500; color: var(--brown);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath d='M22 1L43 22L22 43L1 22z' fill='%23FCFAF6' stroke='%23B08A3E'/%3E%3Cpath d='M22 5L39 22L22 39L5 22z' fill='none' stroke='%23D8C28C'/%3E%3C/svg%3E") center / contain no-repeat;
}
.steps h3 { font-size: 1.65rem; }
.steps p { margin-top: 0.5rem; color: var(--ink-soft); }

/* Hand-knotted tells, with the knot loom */
.tells { padding-block: clamp(4rem, 9vw, 7.5rem); }
.tells-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5.5rem); align-items: center;
}
.tells-lede { margin-top: 1.25rem; color: var(--ink-soft); max-width: 30em; }
.tells-list { margin: 2.25rem 0 0; display: grid; gap: 1.75rem; }
.tells-list div { padding-left: 1.5rem; border-left: 1px solid var(--gold); }
.tells-list dt { font-family: var(--display); font-size: 1.65rem; font-weight: 500; line-height: 1.2; color: var(--brown-deep); }
.tells-list dd { margin: 0.4rem 0 0; color: var(--ink-soft); max-width: 34em; }

.loom { margin: 0; }
.loom-frame {
  background: var(--paper);
  perspective: 1400px;
  padding: 12px;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold-soft); outline-offset: 7px;
  will-change: transform;
}
.loom canvas { width: 100%; height: auto; aspect-ratio: 72 / 78; }
.loom canvas.is-turning { animation: turn 0.7s ease-in-out; }
@keyframes turn {
  0% { transform: rotateY(0); }
  50% { transform: rotateY(90deg); }
  100% { transform: rotateY(0); }
}
.loom figcaption {
  display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between;
  margin-top: 1.6rem; font-size: var(--step--1); color: var(--ink-soft);
}
.loom figcaption p { max-width: 30em; }
.flip {
  flex: none;
  font: 500 0.9rem/1.2 var(--text); color: var(--brown);
  background: var(--white); border: 1px solid var(--gold-soft);
  padding: 0.6rem 1rem; cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}
.flip:hover { border-color: var(--brown); background: var(--paper); }

/* Story: the one burnt-brown band */
.story {
  position: relative; overflow: hidden;
  background: var(--brown-deep); color: var(--paper);
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
.story-lattice { position: absolute; inset: 0; background: var(--lattice) center / 56px 56px; opacity: 0.14; pointer-events: none; }
.story-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.story h2 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.4rem); }
.story-year {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(7rem, 19vw, 16rem); line-height: 0.8; letter-spacing: -0.02em; font-variant-numeric: lining-nums;
  color: transparent; -webkit-text-stroke: 1px var(--gold);
  /* the gold fills in from the bottom as the section scrolls in */
  --fill: 0%;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% var(--fill) no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
.story blockquote { margin: 1.75rem 0; padding: 0; }
.story-quote { font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 400; line-height: 1.3; color: var(--white); }
.story blockquote footer { margin-top: 1rem; font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--gold-soft); }
.story-copy > p { max-width: 34em; color: rgba(252, 250, 246, 0.82); }
.honors { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(216, 194, 140, 0.35); }

/* FAQ */
.faq { max-width: 56rem; padding-block: clamp(4rem, 9vw, 7.5rem); }
.faq h2 { margin-bottom: 2rem; }
.faq details { border-bottom: 1px solid var(--gold-pale); }
.faq details:first-of-type { border-top: 1px solid var(--gold-pale); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.4rem; font-family: var(--display); font-size: 1.65rem; font-weight: 500; line-height: 1.25; color: var(--brown-deep);
  transition: color 0.3s, padding-left 0.6s var(--ease);
}
.faq summary:hover { color: var(--brown); padding-left: 0.5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.7rem; height: 0.7rem;
  border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  transform: rotate(45deg) translateY(-0.2rem); transition: transform 0.5s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-0.1rem); }
.faq details p { padding-bottom: 1.5rem; color: var(--ink-soft); max-width: 42em; }
.faq details::details-content { height: 0; overflow: clip; transition: height 0.5s var(--ease), content-visibility 0.5s allow-discrete; }
.faq details[open]::details-content { height: auto; }

/* Visit */
.visit { background: var(--paper); border-top: 1px solid var(--gold-pale); padding-block: clamp(4rem, 9vw, 7rem); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; }
.visit-lede { margin-top: 1rem; color: var(--ink-soft); max-width: 26em; }
.visit-phone {
  display: inline-block; margin-top: 2rem;
  font-family: var(--display); font-weight: 300; font-size: clamp(2.6rem, 6vw, 5.25rem); line-height: 1; font-variant-numeric: lining-nums;
  color: var(--brown); text-decoration: none;
  border-bottom: 1px solid var(--gold-soft); padding-bottom: 0.4rem;
  transition: color 0.3s, border-color 0.3s;
}
.visit-phone:hover { color: var(--brown-deep); border-color: var(--brown); }
.contact {
  font-style: normal; display: grid; gap: 1.25rem; font-size: 1.125rem;
  background: var(--white); padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--gold); outline: 1px solid var(--gold-soft); outline-offset: 7px;
  margin: 8px;
}
.contact strong { font-family: var(--display); font-size: 1.6rem; font-weight: 500; color: var(--brown-deep); }
.contact a:not(.btn) { color: var(--brown); }

/* Footer, signed off with the name in outline */
.site-footer { position: relative; overflow: hidden; background: var(--white); padding-top: 4rem; }
.footer-inner { display: grid; gap: 1rem; justify-items: start; color: var(--ink-soft); }
.footer-inner img { width: 220px; height: auto; }
.footer-inner p { max-width: 40em; }
.small { font-size: var(--step--1); }
.footer-word {
  margin: 1.5rem 0 0; text-align: center; white-space: nowrap;
  font-family: var(--display); font-weight: 300; font-size: 27vw; line-height: 0.78; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px var(--gold-soft);
}
.fringe {
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--gold-soft) 0 2px, transparent 2px 7px);
  -webkit-mask-image: linear-gradient(0deg, #000 40%, transparent);
  mask-image: linear-gradient(0deg, #000 40%, transparent);
}

/* Headings that rise into place */
.reveal-title .mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.reveal-title .mask > span { display: block; }

/* Mobile call bar */
.callbar { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .hero { min-height: 0; padding-bottom: 4.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .medallion { justify-self: center; max-width: 30rem; }
  .lattice-base {
    -webkit-mask-image: linear-gradient(180deg, transparent 45%, #000 85%);
    mask-image: linear-gradient(180deg, transparent 45%, #000 85%);
  }
  .scroll-cue { display: none; }
  .pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-line { display: none; }
  .tells-grid { grid-template-columns: 1fr; }
  .loom { max-width: 30rem; }
  .story-grid { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --header: 4rem; --step-4: clamp(2.3rem, 10.5vw, 3rem); }
  .bar .btn--small { display: none; }
  .hero-actions .btn { width: 100%; }
  .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piece-name { font-size: 1.25rem; }
  .piece-size { font-size: 1.05rem; }
  .loom figcaption { flex-direction: column; }
  .steps { grid-template-columns: 1fr; }
  .faq summary { font-size: 1.35rem; }
  .callbar {
    display: flex; justify-content: center; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    min-height: 3.5rem; padding-bottom: env(safe-area-inset-bottom);
    background: var(--brown); color: var(--white);
    font-weight: 500; letter-spacing: 0.02em; text-decoration: none;
    box-shadow: inset 0 2px 0 var(--gold);
  }
  body { padding-bottom: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .piece-img img, .btn::before, .piece-frame::before, .svc h3, .svc::after { transition: none; }
  .scroll-cue::after { animation: none; }
  .loom canvas.is-turning { animation: none; }
  .faq details::details-content { transition: none; }
}
