/* Layout: a calm 12-column grid on near-black, generous whitespace, hairline rules between sections.
   One typeface family (Geist + Geist Mono), one brass accent used sparingly. Deliberately a single dark look. */
:root {
  --bg: #0f0f0e;
  --bg-2: #161614;
  --bg-3: #1d1d1a;
  --line: #2a2926;
  --text: #ecebe6;
  --muted: #9a988f;
  --accent: #c9a46a;      /* brass */
  --on-accent: #17130c;
  --font: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --gutter: max(16px, 5vw);
  --max: 76rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.label { font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.placeholder { color: var(--accent); border-bottom: 1px dashed var(--accent); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; justify-content: center;
  padding: .9rem 1.4rem; border-radius: 6px; border: 1px solid transparent;
  font: 500 .95rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(15,15,14,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.brand { font-weight: 600; letter-spacing: -0.02em; text-decoration: none; font-size: 1.05rem; }
.brand span { color: var(--muted); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 1.8rem; font-size: .9rem; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--text); border: 1px solid var(--line); padding: .45rem .9rem; border-radius: 6px; }
.nav .nav-cta:hover { border-color: var(--text); }
.nav .lang { font: 500 .75rem var(--mono); }
@media (max-width: 860px) { .nav .hide-m { display: none; } .nav { gap: 1rem; } }

/* Intro: four words from the shop flash by, then the name, then the curtain lifts. Mobile-first sizing. */
.intro {
  position: fixed; inset: 0; z-index: 100; background: #0a0a09; color: var(--text);
  display: grid; place-items: center; pointer-events: none; overflow: hidden;
  animation: introOut .9s cubic-bezier(.76,0,.24,1) 2.5s forwards;
}
.intro.gone { animation: introOut .6s cubic-bezier(.76,0,.24,1) forwards; }
.intro-words { position: absolute; inset: 0; display: grid; place-items: center; }
.intro-words span {
  grid-area: 1 / 1; font-size: clamp(3.2rem, 17vw, 10rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  opacity: 0; animation: flash .4s linear both;
}
.intro-words span:nth-child(1) { animation-delay: .15s; }
.intro-words span:nth-child(2) { animation-delay: .55s; color: var(--accent); }
.intro-words span:nth-child(3) { animation-delay: .95s; }
.intro-words span:nth-child(4) { animation-delay: 1.35s; }
@keyframes flash { 0%, 100% { opacity: 0; } 3%, 94% { opacity: 1; } }
.intro-brand { font-size: clamp(2rem, 9vw, 4.4rem); font-weight: 500; letter-spacing: -0.04em; opacity: 0; animation: brandIn .7s var(--ease) 1.8s forwards; text-align: center; padding-inline: 16px; }
.intro-brand .b { color: var(--accent); }
@keyframes brandIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.intro-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; animation: grow 2.5s linear both; }
.intro-skip { position: absolute; bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px)); font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@keyframes introOut { to { transform: translateY(-100%); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes up { from { transform: translateY(110%); } to { transform: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(5rem, 13vw, 10rem) clamp(4rem, 9vw, 7rem); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 2.4rem; position: relative; }
.hero h1 { font-size: clamp(2.7rem, 7.4vw, 6.6rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500; max-width: 15ch; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; animation: up 1s var(--ease) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: .2s; }
.has-intro .hero h1 .ln:nth-child(1) > span { animation-delay: 2.9s; }
.has-intro .hero h1 .ln:nth-child(2) > span { animation-delay: 3s; }
.has-intro .hero h1 .ln:nth-child(3) > span { animation-delay: 3.1s; }
.hero h1 .muted { color: var(--muted); }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; }
.hero .lede { max-width: 36rem; color: var(--muted); font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 1.4rem; gap: 1rem; }
.hero-meta div { display: grid; gap: .3rem; min-width: 0; }
.hero-meta b { font-weight: 500; font-size: 1.05rem; }
.hero-meta span { color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .hero-row { grid-template-columns: 1fr; } .hero-meta { grid-template-columns: 1fr 1fr; row-gap: 1.4rem; } }
.fade { animation: fade 1s var(--ease) .4s both; }
.has-intro .fade { animation-delay: 3.2s; }
@keyframes fade { from { transform: translateY(12px); } to { transform: none; } }

/* Sections */
section { padding-block: clamp(4.5rem, 10vw, 8rem); border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.2rem 3rem; margin-bottom: clamp(2.8rem, 6vw, 4.5rem); }
.sec-head .intro-text { display: grid; gap: 1.2rem; }
.sec-head p { color: var(--muted); max-width: 40rem; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* Two sides of the business */
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.side { padding: 2.2rem 2rem 2.2rem 0; display: grid; gap: 1rem; align-content: start; min-width: 0; }
.side + .side { padding-left: 2rem; border-left: 1px solid var(--line); }
.side h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; }
.side p { color: var(--muted); max-width: 30rem; }
.side .list { color: var(--text); font-size: .95rem; }
@media (max-width: 760px) { .sides { grid-template-columns: 1fr; } .side + .side { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .side { padding-right: 0; } }

/* Founder */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-bottom: 3.5rem; }
.figures div { padding: 1.6rem 1.2rem 1.6rem 0; display: grid; gap: .4rem; min-width: 0; }
.figures div + div { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.figures b { font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.figures span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.career { list-style: none; margin: 0; padding: 0; }
.career li { display: grid; grid-template-columns: 8rem minmax(0, 4fr) minmax(0, 6fr); gap: .6rem 2rem; padding-block: 1.6rem; border-top: 1px solid var(--line); align-items: baseline; transition: background-color .3s; }
.career li:last-child { border-bottom: 1px solid var(--line); }
.career .when { font: 500 .8rem var(--mono); color: var(--accent); }
.career p { color: var(--muted); }
@media (max-width: 760px) { .career li { grid-template-columns: 1fr; } }

/* E-books */
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 960px) { .books { grid-template-columns: 1fr; max-width: 34rem; } }
.book { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-rows: auto 1fr; overflow: hidden; min-width: 0; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.book:hover { border-color: #45433d; transform: translateY(-3px); }
.cover { aspect-ratio: 16 / 10; max-width: 100%; padding: 1.4rem; display: grid; align-content: space-between; background: var(--bg-3); border-bottom: 1px solid var(--line); position: relative; }
.cover::after { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; height: 1px; background: var(--line); }
.cover .vol { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cover b { font-weight: 500; font-size: 1.7rem; line-height: 1.05; letter-spacing: -0.03em; padding-bottom: 1rem; max-width: 14ch; }
.book-body { padding: 1.4rem; display: grid; gap: 1rem; grid-template-rows: auto 1fr auto auto; }
.book-body > p { color: var(--muted); font-size: .95rem; }
.book-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; font-size: .93rem; align-content: start; }
.book-body li { padding-left: 1.1rem; position: relative; }
.book-body li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: 1px; background: var(--accent); }
.buy { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.price { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price s { color: var(--muted); font-size: 1rem; margin-right: .4rem; font-weight: 400; }
.meta { font: 500 .75rem var(--mono); color: var(--muted); }
.book .btn { width: 100%; }
.bundle { margin-top: 1rem; border: 1px solid var(--accent); border-radius: 10px; padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.bundle > div:first-child { display: grid; gap: .5rem; max-width: 34rem; min-width: 0; }
.bundle h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.bundle p { color: var(--muted); font-size: .95rem; }
.bundle .label { color: var(--accent); }
.bundle-buy { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.note { margin-top: 1rem; color: var(--accent); font-size: .95rem; }

/* Services: clean rows */
.services { list-style: none; margin: 0; padding: 0; }
.services li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: .6rem 2rem; padding-block: 1.8rem; border-top: 1px solid var(--line); align-items: baseline; }
.services li:last-child { border-bottom: 1px solid var(--line); }
.services h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.025em; transition: color .25s; }
.services li:hover h3 { color: var(--accent); }
.services p { color: var(--muted); }
.services .tags { color: var(--muted); font-size: .85rem; font-family: var(--mono); line-height: 1.7; }
@media (max-width: 860px) { .services li { grid-template-columns: 1fr; } }
.cta-line { margin-top: 2.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.cta-line p { color: var(--muted); max-width: 40rem; min-width: 0; }
.cta-line p b { color: var(--text); font-weight: 500; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.step { padding: 1.8rem 1.4rem 0 0; display: grid; gap: .7rem; align-content: start; min-width: 0; }
.step + .step { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.step .n { font: 500 .8rem var(--mono); color: var(--accent); }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { margin-top: 1.8rem; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step + .step { padding-left: 0; border-left: 0; margin-top: 1.8rem; border-top: 1px solid var(--line); } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.3rem; font-size: 1.1rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 300; font-size: 1.4rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.4rem; max-width: 42rem; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem 5rem; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1.4rem; }
.contact-info > p { color: var(--muted); max-width: 30rem; }
.contact dl { margin: .6rem 0 0; display: grid; gap: 1.1rem; }
.contact dt { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact dd { margin: .25rem 0 0; font-size: 1.05rem; }
form { display: grid; gap: 1.1rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.4rem, 3vw, 2.2rem); min-width: 0; }
label { display: grid; gap: .4rem; font-size: .88rem; color: var(--muted); }
input, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .8rem .9rem; width: 100%; }
input:focus, textarea:focus { border-color: var(--accent); outline: none; }
textarea { min-height: 7.5rem; resize: vertical; }
form .btn { justify-self: start; }
.form-note { color: var(--accent); font-size: .95rem; }

/* Footer */
.site-footer { padding-block: 3rem; font-size: .85rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer p { max-width: 40rem; }

/* Mobile action bar */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .65rem 16px calc(.65rem + env(safe-area-inset-bottom, 0px)); background: rgba(15,15,14,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .site-footer { padding-bottom: 6rem; }
}

/* Gentle scroll reveal where supported; content is always visible at rest */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    @keyframes rise { from { transform: translateY(24px); } to { transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none; }
  .hero h1 .ln > span, .fade { animation: none; }
  .btn, .book { transition: none; }
}


/* Hero atmosphere: a soft brass glow and a slowly turning seal */
.hero-glow { position: absolute; z-index: -1; width: 70rem; height: 70rem; max-width: none; right: -28rem; top: -30rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,106,.22), rgba(201,164,106,0) 62%); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translate(-6rem, 5rem); } }
.badge { position: absolute; right: var(--gutter); top: -1rem; width: clamp(6.5rem, 14vw, 10rem); height: auto; animation: spin 24s linear infinite; }
.badge text { font: 500 13.2px var(--mono); letter-spacing: .18em; text-transform: uppercase; fill: var(--muted); }
.badge circle { fill: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .badge { display: none; } }
.hero h1 .accent { color: var(--accent); }

/* Statement: words light up on scroll */
.statement-sec { padding-block: clamp(5rem, 14vw, 10rem); }
.statement { font-size: clamp(1.8rem, 4.6vw, 3.6rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 500; max-width: 22ch; text-wrap: pretty; }
.statement.lit-ready .w { color: #3a3934; transition: color .35s ease; }
.statement.lit-ready .w.on { color: var(--text); }


/* Light band for the e-books */
section.light { background: #ebe5d8; color: #17150f; border-bottom-color: #ebe5d8; }
.light .label, .light .sec-head p, .light .book-body > p, .light .meta, .light .bundle p, .light .price s { color: #6b665a; }
.light .book { background: #f6f2ea; border-color: #d8d0bf; }
.light .book:hover { border-color: #17150f; }
.light .cover { background: #17150f; color: #ebe5d8; border-bottom-color: #17150f; }
.light .cover::after { background: #3a372f; }
.light .buy { border-top-color: #d8d0bf; }
.light .btn-primary { background: #17150f; color: #ebe5d8; }
.light .btn-primary:hover { background: var(--accent); color: var(--on-accent); }
.light .bundle { border-color: #17150f; background: #17150f; color: #ebe5d8; }
.light .bundle p, .light .bundle .price s { color: #a39d8e; }
.light .bundle .btn-primary { background: var(--accent); color: var(--on-accent); }
.light .placeholder { color: #8a6a35; border-bottom-color: #8a6a35; }
.light .bundle .placeholder { color: var(--accent); border-bottom-color: var(--accent); }
.light .note { color: #8a6a35; }
.light .book-body li::before { background: #8a6a35; }

@media (prefers-reduced-motion: reduce) { .hero-glow, .badge { animation: none; } }


/* Photography: slots hide themselves when an image is missing */
.photo { margin: 0; overflow: hidden; background: var(--bg-2); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.photo-band .photo { height: clamp(16rem, 42vw, 34rem); }
.photo.wide { border-radius: 10px; aspect-ratio: 21 / 9; max-width: 100%; margin-bottom: 3rem; }
@media (max-width: 640px) { .photo.wide { aspect-ratio: 4 / 3; } }
.hero-photo { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(.3) contrast(1.05); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 18%, rgba(15,15,14,.55) 60%, rgba(15,15,14,.2)), linear-gradient(0deg, var(--bg), transparent 40%); }
