/* ============ HOME — story page (Tekna: light through structure) ============ */
:root {
  /* kumiko / jaali lattice, drawn on a grid */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23DDC8EE' stroke-width='1'%3E%3Cpath d='M0 0L28 28L56 0M0 56L28 28L56 56M28 0V56M0 28H56'/%3E%3Ccircle cx='28' cy='28' r='9'/%3E%3C/g%3E%3C/svg%3E");
}
html, body.home { overflow-x: clip; }
.home header { position: relative; z-index: 3; padding-top: 52px; }
.home header::before {         /* lace curtain edge along the top of the room */
  content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 30px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30' viewBox='0 0 60 30'%3E%3Cpath d='M0 0H60V10Q45 32 30 10Q15 32 0 10Z' fill='white' fill-opacity='.9' stroke='%23DDC8EE'/%3E%3Ccircle cx='15' cy='12' r='3.2' fill='%23FBF3EC' stroke='%23DDC8EE'/%3E%3Ccircle cx='45' cy='12' r='3.2' fill='%23FBF3EC' stroke='%23DDC8EE'/%3E%3Ccircle cx='30' cy='5' r='1.6' fill='%23EBC2D8'/%3E%3Ccircle cx='0' cy='5' r='1.6' fill='%23EBC2D8'/%3E%3Ccircle cx='60' cy='5' r='1.6' fill='%23EBC2D8'/%3E%3C/svg%3E") repeat-x 0 0 / 60px 30px;
  transform-origin: top center; animation: curtain 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 3px 4px rgba(92,17,66,.08));
}
@keyframes curtain { from { transform: translateX(-50%) skewX(-1.5deg); } to { transform: translateX(-50%) skewX(1.5deg) translateY(1px); } }
.home .brand h1 { color: var(--akane); font-weight: 800; letter-spacing: 0; }
.home main { max-width: 1120px; }
.home section { scroll-margin-top: 20px; }

/* shared */
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--kesari); margin-bottom: 8px; }
.big-h { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -0.6px; color: var(--koki); max-width: 820px; }
.big-h em, .hero-h em { font-style: normal; color: var(--akane); }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  background: var(--akane); color: #fff; padding: 12px 22px; border-radius: 999px;
  border: 2px solid var(--akane); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(211,0,0,.22); }
.btn.ghost { background: transparent; color: var(--koki); border-color: var(--lilac); }
.btn.ghost:hover { background: #fff; box-shadow: 0 8px 22px rgba(92,17,66,.10); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-cta.center { justify-content: center; }

/* ---------- 1. hero: me + the creativity compass ---------- */
.hero {
  position: relative; max-width: 1120px; margin: 0 auto; padding: 18px 24px 70px;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 12px; align-items: center;
}
.greet { font-size: 15px; height: 26px; margin-bottom: 10px; }
.greet span { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--rose); color: var(--koki); font-weight: 600; transition: opacity .4s ease; }
.hero-h { font-size: clamp(50px, 7.4vw, 96px); line-height: .95; font-weight: 800; letter-spacing: -2px; color: var(--koki); }
.hero-sub { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--ink-2); max-width: 500px; margin-top: 20px; line-height: 1.55; }
.hero .panel {
  position: relative; top: auto; margin-top: 26px; min-height: 150px; max-width: 470px;
  background: rgba(255,251,247,.82); border: 1px solid var(--rose);
  border-left: 4px solid var(--kesari); border-radius: 18px; transition: box-shadow .3s ease;
}
.hero .panel:not(.empty) { box-shadow: 0 14px 36px rgba(92,17,66,.10); animation: cardin .45s ease; }
.hero .panel.empty { justify-content: flex-start; text-align: left; border-left-color: var(--lilac); }
@keyframes cardin { from { opacity: .3; transform: translateY(6px); } }

.hero-compass { position: relative; }
.compass-stage { position: relative; margin: 0 -40px 0 -20px; }
.compass-stage::before {           /* a disc of lace light behind the compass, turning slowly */
  content: ""; position: absolute; inset: 4% 12%; border-radius: 50%; z-index: -1;
  background: url("lace-disc.webp") center / contain no-repeat;
  will-change: transform; animation: spin 120s linear infinite;
}
.compass-stage svg { display: block; width: 100%; height: auto; overflow: visible; }
.compass-sun {
  position: absolute; left: 50%; top: 50%; width: 18.8%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px #fff, 0 18px 40px rgba(211,0,0,.25);
}
.compass-sun video { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; display: block; }
.sun-cap { text-align: center; font-size: 13px; color: var(--ink-2); margin-top: -6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* compass motion */
.compass-beam {
  position: absolute; left: 50%; top: 50%; width: 58.2%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; will-change: transform;
  background: conic-gradient(from -15deg, rgba(244,120,45,.22), rgba(244,120,45,0) 30deg, rgba(244,120,45,0) 360deg);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 71%); mask-image: radial-gradient(circle, #000 30%, transparent 71%);
  animation: sweep 14s linear infinite;
}
@keyframes sweep { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.ray { stroke: var(--kesari); stroke-width: 2; stroke-linecap: round; opacity: .35; }
.dot-g { transform-box: view-box; transform-origin: 490px 410px; animation: bloom .9s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes bloom { from { opacity: 0; transform: scale(.25) rotate(-25deg); } }

/* ---------- 2. trio ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 90px; }
.trio article {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.trio article:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(92,17,66,.08); }
.trio svg { width: 44px; height: 44px; fill: none; stroke: var(--kesari); stroke-width: 2; }
.trio svg .fill { fill: var(--akane); stroke: none; }
.trio h3 { font-size: 22px; margin: 10px 0 6px; color: var(--akane); }
.trio p { font-size: 15px; color: var(--ink-2); }

/* ---------- 3. personal OS compass rose ---------- */
.os { position: relative; margin-bottom: 100px; }
.os-intro { max-width: 640px; }
.os-intro p:not(.kicker) { font-size: 17px; color: var(--ink-2); margin-top: 14px; }
.os-cover {
  position: absolute; right: 0; top: -10px; width: 300px; border-radius: 14px;
  transform: rotate(3deg); box-shadow: 0 20px 50px rgba(92,17,66,.18);
}
.rose {
  position: relative; margin-top: 70px;
  display: grid; gap: 22px;
  grid-template-columns: 1fr 1.25fr 1fr;
  grid-template-areas: ". n ." "w c e" ". s .";
  align-items: center;
}
.rose-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.rose-lines circle, .rose-lines path { fill: none; stroke: var(--lilac); stroke-width: .3; stroke-dasharray: 1 1.6; vector-effect: non-scaling-stroke; }
.rose-lines circle { stroke-width: 1.5; }
.rose-lines path { stroke-width: 1.5; }
.node { margin: 0; background: rgba(255,251,247,.92); border: 1px solid var(--hairline); border-radius: 22px; padding: 16px; position: relative; }
.node img { width: 100%; height: 150px; object-fit: contain; display: block; border-radius: 12px; background: #fbf7f2; mix-blend-mode: multiply; }
.node figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.node figcaption strong { display: block; color: var(--koki); font-size: 15.5px; margin-bottom: 4px; line-height: 1.3; }
.node .dir {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--kesari); color: #fff;
  font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: 0 0 0 5px var(--cream);
}
.node.n { grid-area: n; } .node.w { grid-area: w; } .node.e { grid-area: e; } .node.s { grid-area: s; }
.node.c { grid-area: c; text-align: center; background: linear-gradient(180deg, #fff, #fff7f1); border: 2px solid var(--rose); padding: 24px 22px; }
.node.c figcaption strong { font-size: 20px; color: var(--akane); }
.window { width: 210px; height: 210px; margin: 0 auto; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 8px var(--rose), 0 0 0 16px rgba(221,200,238,.5); }
.window img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; mix-blend-mode: normal; }
.values { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.values li { font-size: 13px; background: var(--lilac); color: var(--koki); padding: 4px 11px; border-radius: 999px; font-weight: 500; }
.values li:nth-child(2n) { background: var(--rose); }

/* ---------- 4. road ---------- */
.road { margin-bottom: 100px; }
.stops { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; position: relative; }
.stops::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 13px; height: 0;
  border-top: 3px dotted var(--kesari);
}
.stops li { position: relative; padding-top: 42px; }
.stop-dot { position: absolute; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 0 6px var(--cream); }
.stops li:nth-child(2) .stop-dot { background: var(--kesari); }
.stops li.next .stop-dot { background: var(--akane); width: 40px; height: 40px; top: -6px; box-shadow: 0 0 0 6px var(--cream), 0 0 0 14px rgba(211,0,0,.12); animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--cream), 0 0 0 22px rgba(211,0,0,.06); } }
.stops b { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.stops h4 { font-size: 22px; color: var(--koki); margin: 2px 0 6px; }
.stops li.next h4 { color: var(--akane); }
.stops p { font-size: 15px; color: var(--ink-2); }
.stops a { color: var(--akane); font-weight: 600; }

/* ---------- 5. Olo band ---------- */
.olo-band {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center;
  background: linear-gradient(135deg, var(--rose), var(--lilac)); border-radius: 32px; padding: 34px;
  margin-bottom: 100px; position: relative; overflow: hidden;
}
.olo-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--kesari); opacity: .9; z-index: 0; }
.olo-band > * { position: relative; z-index: 1; }
.olo-media { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: repeat(2, minmax(0,1fr)); gap: 10px; height: 460px; }
.olo-media img { min-height: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; background: var(--koki); display: block; transition: transform .3s ease; }
.olo-media:hover img { transform: scale(1.02); }
.olo-media .tall { grid-row: span 2; }
.olo-text .kicker { color: var(--akane); }
.olo-text p:not(.kicker) { font-size: 17px; color: var(--koki); margin: 16px 0 24px; }

/* ---------- 6. invitation ---------- */
.invite {
  position: relative; text-align: center; padding: 70px 34px; margin-bottom: 100px;
  border-radius: 32px; background: #fff; border: 2px solid var(--lilac); overflow: hidden; isolation: isolate;
}
.invite::before { content: ""; position: absolute; inset: 0; background: var(--lattice); opacity: .6; z-index: -1; }
.invite .big-h { margin: 0 auto; }
.invite-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 40px; text-align: left; }
.inv-card { background: var(--cream); border-radius: 22px; padding: 26px; border: 1px solid var(--hairline); height: 100%; }
.inv-card.give { background: #fff3f8; border-color: var(--rose); }
.inv-card h3 { font-size: 20px; color: var(--akane); margin-bottom: 10px; }
.inv-card ul { list-style: none; }
.inv-card li { padding: 9px 0 9px 28px; position: relative; font-size: 15px; color: var(--ink-2); border-bottom: 1px dashed var(--hairline); }
.inv-card li:last-child { border-bottom: 0; }
.inv-card li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--kesari); }
.inv-card.give li::before { background: var(--akane); }
.swap { font-size: 34px; color: var(--kesari); font-weight: 800; }

/* ---------- 8. work compass ---------- */
.work { margin-bottom: 90px; }
.work .section-note { max-width: 680px; margin-top: 12px; }
.work .section-note a { color: var(--akane); }
.core-ring { opacity: .55; pointer-events: none; transform-box: fill-box; transform-origin: center; animation: ring 2.6s ease-in-out infinite; }
@keyframes ring { 50% { opacity: .15; transform: scale(1.25); } }
.quad-col li.core { font-weight: 600; color: var(--koki); }
.quad-col li.core::after { content: " ◎"; color: var(--kesari); }
.more { border-top: 1px solid var(--baseline); }
.more:last-of-type { border-bottom: 1px solid var(--baseline); }
.more summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-size: 14px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--koki); display: flex; justify-content: space-between;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; color: var(--akane); font-size: 20px; line-height: 1; }
.more[open] summary::after { content: "–"; }
.work .quad-lists + .more { margin-top: 40px; }

/* ---------- 9. manifesto ---------- */
.manifesto {
  background: var(--koki); color: var(--cream); border-radius: 32px; padding: 54px clamp(24px, 6vw, 70px);
  position: relative; overflow: hidden; isolation: isolate;
}
.manifesto::before { content: ""; position: absolute; inset: 0; background: var(--lattice); opacity: .14; z-index: -1; }
.manifesto::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--akane); z-index: -1; }
.manifesto h2 { font-size: 13px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--kesari); margin-bottom: 18px; }
.manifesto ol { counter-reset: m; list-style: none; }
.manifesto li { counter-increment: m; font-size: clamp(18px, 2.3vw, 26px); line-height: 1.3; padding: 12px 0 12px 56px; position: relative; font-weight: 500; max-width: 820px; }
.manifesto li::before { content: counter(m); position: absolute; left: 0; top: 8px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--kesari); color: var(--kesari); display: grid; place-items: center; font-size: 16px; font-weight: 800; }
.manifesto em { font-style: normal; color: var(--rose); }
.manifesto .quote { margin-top: 26px; color: var(--lilac); font-size: 16px; font-style: italic; }
.home footer { margin-top: 40px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .hero-text { display: contents; }
  .hero-text > * { order: 1; }
  .hero .panel { order: 3; margin-top: 4px; }
  .hero-compass { order: 2; margin: 0; }
  .compass-stage { margin: 0; }
  .hero .panel { max-width: none; }
  .os-cover { position: static; width: 220px; margin: 24px 0 0; display: block; }
  .rose { grid-template-columns: 1fr 1fr; grid-template-areas: "c c" "n e" "w s"; margin-top: 50px; }
  .rose-lines { display: none; }
  .olo-band { grid-template-columns: 1fr; }
  .olo-media { height: 380px; }
}
@media (max-width: 640px) {
  .hero { padding: 16px 16px 50px; }
  .home main { padding-left: 16px; padding-right: 16px; }
  .home header { padding-left: 16px; padding-right: 16px; }
  .trio { grid-template-columns: 1fr; margin-bottom: 70px; }
  .rose { grid-template-columns: 1fr; grid-template-areas: "c" "n" "e" "w" "s"; }
  .stops { grid-template-columns: 1fr; gap: 26px; }
  .stops::before { left: 13px; right: auto; top: 10px; bottom: 10px; border-top: 0; border-left: 3px dotted var(--kesari); }
  .stops li { padding: 0 0 0 52px; }
  .stops li.next .stop-dot { left: -6px; }
  .olo-band, .invite { padding: 26px 18px; border-radius: 24px; }
  .olo-media { height: 320px; }
  .invite-cols { grid-template-columns: 1fr; }
  .swap { text-align: center; transform: rotate(90deg); }
  .home nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .core-ring, .stops li.next .stop-dot, .beam, .ray, .sun-halo, .dot-g, .compass-stage::before, .home header::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 880px) { .home .panel.empty { min-height: 80px; } }
.work .quad-lists { margin-top: 22px; }

/* hero compass: keep the other dots visible while one is selected */
.hero-compass .dot.dim { opacity: .72; }

/* nothing loops while it's off screen */
.paused-hero .compass-beam, .paused-hero .compass-stage::before, .paused-hero .core-ring,
.paused-hero .home header::before, .paused-road .stops li.next .stop-dot { animation-play-state: paused; }
.home.paused-hero header::before { animation-play-state: paused; }
