@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
  --bg: #FAFAF7;
  --paper: #FFFFFF;
  --ink: #17150F;
  --ink-soft: #2C2A24;
  --muted: #76716A;
  --hairline: #E5E1D8;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --shadow-1: 0 1px 2px rgba(23, 21, 15, 0.04), 0 4px 14px rgba(23, 21, 15, 0.05);
  --shadow-2: 0 2px 4px rgba(23, 21, 15, 0.05), 0 14px 36px rgba(23, 21, 15, 0.08);
  --shadow-3: 0 4px 8px rgba(23, 21, 15, 0.06), 0 32px 64px rgba(23, 21, 15, 0.12);

  --container: 1240px;
  --pad-x: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-feature-settings: "ss01", "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* Logo: "punch" for the paper-colored negative space (inner circle, inner flame) */
.punch { fill: var(--bg); }

/* ───────── Header ───────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad-x);
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.brand-mark { display: inline-flex; color: var(--ink); }
.brand-mark img { display: block; width: 32px; height: 32px; }

.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.015em;
}

.brand-name em {
  font-style: italic;
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right .45s cubic-bezier(.2,.7,.2,1);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { right: 0; }

.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:not([aria-current="page"]) { color: var(--ink-soft); }

/* ───────── Shell / Pages ───────── */
.shell {
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--pad-x) clamp(64px, 8vw, 112px);
}

/* ───────── Footer ───────── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--pad-x) 36px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  margin-top: auto;
}

.site-footer .dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted);
  margin: 0 10px;
  vertical-align: middle;
}

.site-footer a { color: inherit; transition: color .3s ease; }
.site-footer a:hover { color: var(--ink); }

.site-footer-left,
.site-footer-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 640px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 24px var(--pad-x) 32px;
  }
}

/* ───────── Editorial primitives ───────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--muted);
}

.display {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(46px, 9vw, 138px);
  line-height: 0.92;
  letter-spacing: -0.038em;
  margin: 36px 0 0;
  color: var(--ink);
}

.display em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
}

.display--md {
  font-size: clamp(40px, 7vw, 96px);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.012em;
  font-weight: 350;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 44px 0 0;
}

.prose p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  font-weight: 350;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 1.4em;
}

.prose p:last-child { margin-bottom: 0; }

.prose em { font-style: italic; }

.rule {
  width: 56px;
  height: 1px;
  background: var(--ink);
  margin: 64px 0;
  border: 0;
}

/* ───────── Landing ───────── */
.shell--landing {
  display: flex;
  align-items: center;
  padding-top: clamp(40px, 6vw, 72px);
}

.landing-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: end;
}

.landing-main { min-width: 0; }

.landing-emblem {
  width: 100%;
  max-width: 360px;
  justify-self: end;
}

@media (max-width: 880px) {
  .landing-grid {
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: start;
  }
  .landing-emblem { justify-self: start; max-width: 380px; }
}

/* ───────── Landing: large logo mark ───────── */
.landing-mark {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  display: block;
  color: var(--ink);
  filter:
    drop-shadow(0 1px 2px rgba(23, 21, 15, 0.05))
    drop-shadow(0 22px 36px rgba(23, 21, 15, 0.09));
}

.landing-mark svg { width: 100%; height: 100%; display: block; }

.landing-mark .flame-wrap {
  transform-origin: 50% 55%;
  animation: breathe 7.2s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-mark .flame-wrap { animation: none; }
}

/* ───────── Landing: workshop marquee ───────── */
.landing-marquee {
  margin-top: clamp(80px, 11vw, 152px);
  padding: 20px 0 4px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: baseline;
}

.landing-marquee .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.landing-marquee .label .spark {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px rgba(23,21,15,0.04);
  animation: ember 3.2s ease-in-out infinite;
}

@keyframes ember {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(0.82); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-marquee .label .spark { animation: none; }
}

.marquee-link {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  line-height: 1.1;
}

.marquee-link em { font-style: italic; font-weight: 300; }

.marquee-link .arrow {
  display: inline-block;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  font-family: var(--mono);
  font-size: 0.62em;
  color: var(--ink-soft);
}

.marquee-link:hover .arrow { transform: translateX(8px); }

@media (max-width: 640px) {
  .landing-marquee {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ───────── Emblem (small product card) ───────── */
.emblem {
  background: var(--paper);
  border-radius: 6px;
  padding: 26px 30px 28px;
  box-shadow: var(--shadow-2);
  transition: transform .55s cubic-bezier(.2,.7,.2,1),
              box-shadow .55s cubic-bezier(.2,.7,.2,1);
}

.emblem:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
}

.emblem-meta {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.emblem-meta .pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
}

.emblem-meta .pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  opacity: 0;
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(.5); opacity: .6; }
  100% { transform: scale(2.2); opacity: 0; }
}

.emblem-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 450;
  letter-spacing: -0.022em;
  margin: 0 0 10px;
  line-height: 1.05;
}

.emblem-desc {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 30ch;
  font-weight: 350;
  margin: 0 0 20px;
}

.emblem-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.emblem-link .arrow {
  display: inline-block;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}

.emblem-link:hover .arrow { transform: translateX(4px); }

/* ───────── Subpage layout ───────── */
.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(56px, 8vw, 112px);
}

@media (max-width: 760px) {
  .page-head { grid-template-columns: 1fr; gap: 40px; }
}

.page-head .display { margin: 24px 0 0; }

.page-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  align-self: end;
  padding-bottom: 14px;
}

@media (max-width: 760px) {
  .page-meta { text-align: left; }
}

.page-meta .meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--hairline);
  padding: 8px 0;
}

.page-meta .meta-row:last-child { border-bottom: 0; }

.page-meta .meta-row span:first-child { color: var(--muted); }
.page-meta .meta-row span:last-child { color: var(--ink); }

.page-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
}

@media (max-width: 880px) {
  .page-body { grid-template-columns: 1fr; gap: 56px; }
}

/* ───────── Prose aside (About sidebar) ───────── */
.prose-aside {
  font-family: var(--serif);
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.prose-aside .aside-block {
  padding: 22px 24px 24px;
  background: var(--paper);
  border-radius: 4px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prose-aside .aside-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose-aside .aside-value {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.prose-aside .aside-value em { font-style: italic; }

.prose-aside .aside-value a { color: var(--ink); border-bottom: 1px solid var(--hairline); padding-bottom: 1px; transition: border-color .3s ease; }
.prose-aside .aside-value a:hover { border-color: var(--ink); }

.pull-quote {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 350;
  color: var(--ink);
  margin: 56px 0 0;
  padding: 0 0 0 28px;
  border-left: 1px solid var(--ink);
  max-width: 34ch;
}

.pull-quote em { font-style: italic; font-weight: 300; }
.pull-quote .attr {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

/* ───────── Principles (Philosophy) ───────── */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 24px;
}

.principle {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--hairline);
}

.principle:last-child { border-bottom: 1px solid var(--hairline); }

.principle-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 10px;
}

.principle-name {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 350;
  letter-spacing: -0.022em;
  margin: 0 0 12px;
  line-height: 1.05;
}

.principle-name em { font-style: italic; }

.principle-body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  font-weight: 350;
  margin: 0;
}

/* ───────── Product card (Products page) ───────── */
.product-stage {
  background: var(--paper);
  box-shadow: var(--shadow-3);
  border-radius: 8px;
  padding: clamp(36px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 880px) {
  .product-stage { grid-template-columns: 1fr; gap: 48px; }
}

.product-stage .corner {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-stage .corner .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.product-stage .product-name {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 350;
  letter-spacing: -0.032em;
  line-height: 0.96;
  margin: 28px 0 0;
}

.product-stage .product-name em {
  font-style: italic;
  font-weight: 300;
}

.product-stage .product-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.product-stage .product-desc {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 350;
  margin: 28px 0 0;
  max-width: 38ch;
}

.product-stage .product-status {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.product-stage .product-status .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

/* Product visual: a quiet "library" panel suggesting the app */
.product-visual {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: center;
  padding: clamp(8px, 2vw, 20px) 0;
}

.prompt-panel {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.prompt-panel-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}

.prompt-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.3;
}

.prompt-row + .prompt-row {
  border-top: 1px solid var(--hairline);
}

.prompt-row .pin {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex: 0 0 auto;
}

.prompt-row .pin.outline {
  background: transparent;
  border: 1px solid var(--ink);
}

.prompt-row .label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ───────── Coming-list / Products other tools ───────── */
.future-list {
  margin-top: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
}

.future-list h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 24px;
}

.future-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 40px);
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}

.future-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.future-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.future-name em { font-style: italic; }

.future-desc {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--muted);
  margin-left: 16px;
  font-weight: 350;
}

.future-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 760px) {
  .future-row { grid-template-columns: 60px 1fr; }
  .future-status { grid-column: 2; }
  .future-desc { display: block; margin: 6px 0 0; }
}

/* Plain variant inherits the 3-column grid from .future-row.
   The first .future-status is the description (serif);
   the last is the small uppercase status label (default styling). */
.future-row--plain > .future-status:not(:last-child) {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  text-transform: none;
}

@media (max-width: 760px) {
  .future-row--plain > .future-status:last-child {
    grid-column: 2;
    margin-top: 4px;
  }
}

/* ───────── Page reveal ───────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.reveal { opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .05s; }
.reveal.d2 { animation-delay: .18s; }
.reveal.d3 { animation-delay: .34s; }
.reveal.d4 { animation-delay: .50s; }
.reveal.d5 { animation-delay: .66s; }
.reveal.d6 { animation-delay: .80s; }
.reveal.d7 { animation-delay: .94s; }
.reveal.d8 { animation-delay: 1.08s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; }
  .emblem-meta .pulse::after { animation: none; }
  html { scroll-behavior: auto; }
}
