/* ============================================================
   Original Greene — "Powered by objective curiosity"
   Composition: cafe warmth / kinetic weight / view-transition
   broken bento / hover-replace H1 / scroll-follow glow
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f4ead8;
  --bg-soft: #efe2cb;
  --ink: #3a2415;
  --ink-soft: #5c4632;
  --accent: #6b1f1a;
  --accent-soft: #8a3a33;
  --secondary: #5a5e3a;
  --line: rgba(58, 36, 21, 0.18);
  --warm-light: #f9e9c8;
  --card: rgba(255, 250, 240, 0.6);
  --shadow: 0 18px 50px -28px rgba(58, 36, 21, 0.45);
  --serif: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  /* Shared horizontal measure so header, hero and sections align */
  --measure: 72rem;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Scroll-follow glow ---------- */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% var(--glow-y, 20%), var(--warm-light) 0, transparent 60%);
  transition: background 0.2s linear;
}

/* ---------- View transition ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) {
  animation: slide-out 0.45s ease both;
}
::view-transition-new(root) {
  animation: slide-in 0.45s ease both;
}
@keyframes slide-out {
  to { opacity: 0; transform: translateY(-18px); }
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(18px); }
}

/* ---------- Layout shell ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.1rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 2.4rem; width: auto; }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); }
.site-nav a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.site-nav a:hover { color: var(--accent); }

main { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 10vw, 7.5rem) var(--pad-x) clamp(3rem, 7vw, 5rem);
  max-width: var(--measure);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-inner {
  width: 100%;
  margin-left: 0;
  text-align: left;
}
.hero-title {
  position: relative;
  font-size: clamp(1.4rem, 3.9vw, 2.8rem);
  line-height: 1.3;
  font-weight: 400;
  margin: 0 0 1.6rem;
  max-width: 30ch;
  text-align: left;
}

/* Strikethrough statement — one strike per word, cascading */
.strike-wrap { display: inline; }
.strike-word {
  position: relative;
  display: inline-block;
  color: var(--ink-soft);
  white-space: nowrap;
}
.strike-word::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 54%;
  height: 0.055em;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  animation: strike-draw 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.strike-word:nth-child(1)::after  { animation-delay: 0.30s; }
.strike-word:nth-child(2)::after  { animation-delay: 0.36s; }
.strike-word:nth-child(3)::after  { animation-delay: 0.42s; }
.strike-word:nth-child(4)::after  { animation-delay: 0.48s; }
.strike-word:nth-child(5)::after  { animation-delay: 0.54s; }
.strike-word:nth-child(6)::after  { animation-delay: 0.60s; }
.strike-word:nth-child(7)::after  { animation-delay: 0.66s; }
.strike-word:nth-child(8)::after  { animation-delay: 0.72s; }
.strike-word:nth-child(9)::after  { animation-delay: 0.78s; }
.strike-word:nth-child(10)::after { animation-delay: 0.84s; }
.strike-word:nth-child(11)::after { animation-delay: 0.90s; }
.strike-word:nth-child(12)::after { animation-delay: 0.96s; }

@keyframes strike-draw {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.hero-lede {
  font-size: clamp(1.4rem, 3.9vw, 2.8rem);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 400;
  max-width: 30ch;
  margin: 0;
  text-align: left;
}

/* ---------- Animated downward arrow ---------- */
.scroll-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 2.6rem;
  width: 44px;
  height: 44px;
  animation: bounce 2s ease-in-out infinite;
  transition: color 0.25s ease;
}
.scroll-arrow:hover { color: var(--ink); }
.scroll-arrow-corner {
  position: absolute;
  right: var(--pad-x);
  bottom: 1.6rem;
  margin: 0;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad-x);
  max-width: var(--measure);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  text-align: left;
}
.section-head { margin-bottom: 2.6rem; }
.section-head h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 500;
  margin: 0;
}

/* ============================================================
   What We (Don't) Do — locked to ONE viewable page
   Four copy groups: top lines, list, powered line, corner arrow.
   Section is exactly 100vh with overflow hidden so nothing
   spills onto a second screen. Copy sizes scale to fit.
   ============================================================ */
.what-we-dont-do {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.wwdd-top { text-align: left; }
.wwdd-line {
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  line-height: 1.15;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.wwdd-line + .wwdd-line { margin-top: 0.2rem; }
.wwdd-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.wwdd-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.wwdd-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wwdd-list li {
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  line-height: 1.2;
  font-weight: 400;
  color: var(--ink);
}
.wwdd-powered {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  line-height: 1.25;
  color: var(--accent);
  margin: 0;
  text-align: left;
}

/* ---------- Origin Story ---------- */
.origin-story {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.origin-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2vw, 1.5rem);
}
.origin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.origin-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0;
  padding-top: 0.35rem;
  line-height: 1.4;
}
.origin-label-empty { visibility: hidden; }
.origin-body { min-width: 0; }
.origin-strong {
  font-size: clamp(0.95rem, 1.9vw, 1.25rem);
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.origin-name {
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-weight: 600;
  color: var(--ink);
}
.origin-sub {
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0;
}
.origin-part-2 {
  font-size: clamp(0.82rem, 1.5vw, 0.98rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

/* ---------- The Index ---------- */
.the-index { min-height: 100vh; }
.index-list { display: grid; gap: 2.4rem; max-width: 62ch; }
.index-item { border-left: 3px solid var(--secondary); padding: 0.2rem 0 0.2rem 1.6rem; }
.index-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  color: var(--accent);
}
.index-item p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact { min-height: 100vh; display: flex; align-items: center; }
.contact-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-left { text-align: left; }
.contact-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--ink);
}
.contact-sub {
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.contact-form { display: flex; flex-direction: column; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
}
.field input,
.field textarea {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0.1rem;
  transition: border-color 0.25s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 5rem; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-soft); opacity: 0.6; }
.send-btn {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 0.85rem 2.2rem;
  cursor: pointer;
  transition: background 0.25s ease;
}
.send-btn:hover { background: var(--accent-soft); }
.form-status { font-family: var(--mono); font-size: 0.85rem; color: var(--secondary); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 2.6rem var(--pad-x);
  max-width: var(--measure);
  margin: 0 auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.footer-logo {
  height: auto;
  width: min(100%, 16.5rem);
  object-fit: contain;
  margin-left: 0;
}
.footer-copy {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0;
}
.footer-copy p { margin: 0 0 1rem; }
.footer-copy p:last-child { margin-bottom: 0; }
.attribution {
  grid-column: 1 / -1;
  margin: 0.6rem 0 0;
  font-size: 0.75rem;
  opacity: 0.6;
  font-family: var(--mono);
}
.attribution a { color: inherit; text-decoration: none; }
.attribution a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .site-nav { gap: 0.9rem; }
  .site-nav a { font-size: 0.7rem; }
  .wwdd-bottom { flex-direction: column; align-items: flex-start; }
  .origin-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .origin-label-empty { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-header { position: static; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .site-nav { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .scroll-arrow-corner { right: 1.25rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strike-word::after { animation: none; transform: scaleX(1); }
  .scroll-arrow { animation: none; }
  .glow { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
