:root {
  --bg: #fbf6ee;
  --bg-alt: #f3ead9;
  --ink: #1f1a14;
  --ink-soft: #5a5247;
  --ink-dim: #8a7f6e;
  --accent: #ff6a2b;
  --accent-deep: #d8420e;
  --accent-soft: #ffd6a8;
  --teal: #1f8c8a;
  --line: #e5dcc7;
  --line-soft: #f0e7d3;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(31, 26, 20, 0.05), 0 4px 12px rgba(31, 26, 20, 0.04);
  --shadow: 0 1px 0 rgba(31, 26, 20, 0.04), 0 12px 30px rgba(31, 26, 20, 0.08);
  --shadow-lg: 0 2px 6px rgba(31, 26, 20, 0.06), 0 24px 60px rgba(31, 26, 20, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint horizontal "layer lines" tying everything to the 3D-print theme */
body {
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      rgba(31, 26, 20, 0.025) 31px,
      rgba(31, 26, 20, 0.025) 32px
    );
}

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

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

::selection { background: var(--accent-soft); color: var(--ink); }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.04;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  letter-spacing: -0.025em;
}
h2 { font-size: clamp(1.65rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 0 0 0.7em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.hl {
  background-image: linear-gradient(180deg, transparent 62%, var(--accent-soft) 62%, var(--accent-soft) 95%, transparent 95%);
  padding: 0 0.05em;
}

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 40px);
  background: rgba(251, 246, 238, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  line-height: 0;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 32px;
  height: 32px;
  display: block;
}

.nav nav { display: flex; gap: 24px; font-size: 0.95rem; color: var(--ink-soft); }
.nav nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.15s;
}
.nav nav a:hover { color: var(--ink); }
.nav nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.nav nav a:hover::after { transform: scaleX(1); }

@media (max-width: 560px) {
  .nav nav { gap: 14px; font-size: 0.85rem; }
}

/* ============== HERO ============== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) clamp(20px, 4vw, 40px) clamp(30px, 5vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  position: relative;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

.hero h1 {
  margin-bottom: 0.55em;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  /* let it break naturally; usually 2 tidy lines */
  max-width: 18ch;
}
@media (max-width: 900px) { .hero h1 { max-width: 20ch; } }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 32em;
  margin-bottom: 1.6em;
  line-height: 1.55;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 1.8em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s, color 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 10px 22px -10px rgba(216, 66, 14, 0.7);
}
.btn.primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 14px 28px -12px rgba(216, 66, 14, 0.8);
}
.btn.ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.btn.big { padding: 15px 28px; font-size: 1.05rem; }

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  color: var(--ink-soft);
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.hero-stats li {
  position: relative;
  padding-left: 12px;
  min-width: max-content;
}
.hero-stats li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
}
.hero-stats b {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 3px;
  letter-spacing: -0.015em;
}
.hero-stats span { font-size: 0.85rem; }

/* hero image — show the FULL collage, no cropping */
.hero-art {
  position: relative;
}
.hero-frame {
  position: relative;
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(135deg, #fff 0%, #fbf3e3 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  overflow: hidden;
}
.hero-frame::before {
  /* subtle grid texture inside the frame */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(31, 26, 20, 0.07) 1px, transparent 0);
  background-size: 18px 18px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero-frame img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  z-index: 1;
}
.hero-frame .tape {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 110px; height: 22px;
  background: rgba(255, 184, 92, 0.7);
  border: 1px dashed rgba(216, 66, 14, 0.35);
  border-radius: 2px;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
}
.blob-a {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,179,122,0.85), transparent 70%);
  top: -40px; left: -40px;
}
.blob-b {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(155,217,214,0.7), transparent 70%);
  bottom: -50px; right: -40px;
}

/* ============== STRIP ============== */
.strip {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid #2a221b;
  border-bottom: 1px solid #2a221b;
  position: relative;
}
.strip::before, .strip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 32px;
  z-index: 2;
  pointer-events: none;
}
.strip::before { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.strip::after { right: 0; background: linear-gradient(to left, var(--ink), transparent); }

.strip-track {
  display: inline-flex;
  gap: 40px;
  padding: 16px 20px;
  animation: marquee 32s linear infinite;
  font-family: "Fraunces", serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  user-select: none;
}
.strip-track span { flex-shrink: 0; }
.strip-track span.dot { color: var(--accent); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
}

/* ============== SECTIONS ============== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(50px, 8vw, 100px) clamp(20px, 4vw, 40px);
}
.section.alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section.alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 50px);
}
.section-head .sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

/* ============== CARDS ============== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.card::after {
  /* tiny "print layer" detail along bottom of card on hover */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c, var(--accent)) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d8cdb1;
}
.card:hover::after { opacity: 1; }

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--c) 16%, white);
  border: 1px solid color-mix(in srgb, var(--c) 32%, white);
  position: relative;
  overflow: hidden;
}
.card-icon::before {
  /* layered "slice" lines behind the icon */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 5px,
    color-mix(in srgb, var(--c) 18%, white) 5px,
    color-mix(in srgb, var(--c) 18%, white) 6px
  );
  opacity: 0.5;
}
.card-icon img, .card-icon svg {
  position: relative;
  width: 38px;
  height: 38px;
  z-index: 1;
}

.card h3 { margin-bottom: 0.3em; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

.tags {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 14px;
}
.tags li {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* ============== PROCESS ============== */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  position: relative;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 0 -1px var(--accent);
}
.step p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* ============== INTERACT ============== */
.interact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
@media (max-width: 800px) { .interact-grid { grid-template-columns: 1fr; } }

.interact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.interact-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
.interact-list li:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
  border-color: #d8cdb1;
}
.interact-list li > span {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: grid; place-items: center;
  font-size: 22px;
  border: 1px solid var(--line);
}
.interact-list b { color: var(--ink); }
.interact-list div { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; }

/* ============== VISIT ============== */
.visit { padding-top: 40px; padding-bottom: 90px; }
.visit-card {
  background: linear-gradient(135deg, #2a201a 0%, #1a1410 100%);
  color: var(--bg);
  border-radius: 28px;
  padding: clamp(36px, 5vw, 64px);
  text-align: left;
  position: relative;
  overflow: hidden;
  border: 1px solid #3a2e25;
}
.visit-card::before {
  /* dot grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 184, 122, 0.18) 1px, transparent 0);
  background-size: 22px 22px;
  z-index: 0;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, black 30%, transparent 100%);
}
.visit-card::after {
  /* warm spotlight in top-right corner */
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,106,43,0.45), rgba(255,106,43,0.1) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(20px);
}
.visit-card > * { position: relative; z-index: 1; }
.visit-card .eyebrow { color: #ffb37a; }
.visit-card .eyebrow::before { background: #ffb37a; }
.visit-card h2 { color: var(--bg); margin-bottom: 1.2em; }

.visit-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  margin-bottom: 36px;
}
.visit-meta > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 14px;
  border-left: 2px solid rgba(255,179,122,0.25);
}
.meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffb37a;
  font-weight: 700;
}
.meta-val {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bg);
  letter-spacing: -0.01em;
}
.meta-sub { font-size: 0.88rem; color: #b9ad95; line-height: 1.5; }

/* ============== FOOTER ============== */
.foot {
  border-top: 1px solid var(--line);
  padding: 30px clamp(20px, 4vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
}
.foot > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}
.foot > div .brand-mark svg { width: 26px; height: 26px; }
.foot p { margin: 0; }

/* ============== REVEAL ON SCROLL (progressive enhancement) ============== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section-head,
    .card,
    .step,
    .interact-list li,
    .visit-card {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: none; }
    }
  }
}
