/* =========================================================
   williamjahn.net — "Make work enjoyable again"
   Chalky off-white, earthy off-black, warm serif + mono
   ========================================================= */

/* ---- Palettes (switchable via [data-palette] on :root) ---- */
:root,
:root[data-palette="forest"] {
  --paper:    #efe9dd;
  --paper-2:  #e7dfce;
  --paper-3:  #ddd3bd;
  --ink:      #22281f;
  --ink-2:    #3a4034;
  --ink-soft: rgba(34, 40, 31, 0.62);
  --ink-faint:rgba(34, 40, 31, 0.16);
  --ink-hair: rgba(34, 40, 31, 0.10);
  /* earthy accent set — similar chroma, varied hue. NO rainbow. */
  --a1: #3f6f5a; /* forest   */
  --a2: #8a7a4d; /* olive    */
  --a3: #9c5b4a; /* rust     */
  --a4: #4a7a72; /* teal     */
  --a5: #b07a2e; /* ochre    */
  --a6: #7a5560; /* plum     */
  --a7: #5c6b3f; /* moss     */
  --alive: #3f6f5a; /* warm / alive path */
  --machine: #6b7178; /* cold / machine path */
}
:root[data-palette="terracotta"] {
  --paper:#f1ece1; --paper-2:#eae2d2; --paper-3:#e0d4bd;
  --ink:#2b2722; --ink-2:#433d34;
  --ink-soft:rgba(43,39,34,.62); --ink-faint:rgba(43,39,34,.16); --ink-hair:rgba(43,39,34,.10);
  --a1:#b5532f; --a2:#5c6b4a; --a3:#c79a3a; --a4:#a86a3f; --a5:#7a8a5a; --a6:#8a4a3a; --a7:#b0823a;
  --alive:#b5532f; --machine:#8a857c;
}
:root[data-palette="clay"] {
  --paper:#f3ede2; --paper-2:#ece3d2; --paper-3:#e3d6bf;
  --ink:#2a2520; --ink-2:#443d34;
  --ink-soft:rgba(42,37,32,.62); --ink-faint:rgba(42,37,32,.16); --ink-hair:rgba(42,37,32,.10);
  --a1:#c96a3f; --a2:#7c8c5a; --a3:#d6a93f; --a4:#a17a4a; --a5:#8a9a5a; --a6:#9c6a4a; --a7:#b89040;
  --alive:#c96a3f; --machine:#8d877d;
}
:root[data-palette="dusk"] {
  --paper:#eeeae0; --paper-2:#e5dfd1; --paper-3:#d9d0bd;
  --ink:#262320; --ink-2:#403b35;
  --ink-soft:rgba(38,35,32,.62); --ink-faint:rgba(38,35,32,.16); --ink-hair:rgba(38,35,32,.10);
  --a1:#7a6ca8; --a2:#5b8a8a; --a3:#c08a4a; --a4:#6a7a9a; --a5:#9a7a5a; --a6:#8a6a8a; --a7:#5a8a7a;
  --alive:#5b8a8a; --machine:#7d7a82;
}

/* ---- Playfulness / motion scaling (set by tweak; 0 = calm, ~2 = lively) ---- */
:root { --play: 1; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 380;
  /* dot grid + faint chalk grain */
  background-image:
    radial-gradient(var(--ink-faint) 1px, transparent 1.4px);
  background-size: 26px 26px;
  background-position: -13px -13px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
/* chalk grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

::selection { background: var(--a1); color: var(--paper); }

.mono { font-family: "Space Mono", "SFMono-Regular", ui-monospace, monospace; }

a { color: inherit; }

/* ---- Layout helpers ---- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); position: relative; z-index: 1; }
section { position: relative; z-index: 1; }
.eyebrow {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-block;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(8px) saturate(1.1);
  border-bottom: 1px solid var(--ink-hair);
}
.nav__brand {
  font-weight: 600; font-size: 18px; letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
}
.nav__logo {
  display: block;
  height: clamp(30px, 3.4vw, 40px);
  width: auto;
  max-width: min(220px, 48vw);
  object-fit: contain;
}
.nav__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--a1); transition: background .4s; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav__link {
  font-family: "Space Mono", monospace; font-size: 12.5px; letter-spacing: .04em;
  text-decoration: none; color: var(--ink-soft); transition: color .2s; white-space: nowrap;
}
.nav__link:hover { color: var(--ink); }
.nav__cta {
  font-family: "Space Mono", monospace; font-size: 12.5px;
  padding: 8px 16px; border: 1.5px solid var(--ink); border-radius: 999px;
  color: var(--ink); text-decoration: none; transition: all .2s;
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 720px){ .nav__links .nav__link { display: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: clamp(40px, 8vh, 90px) 0 clamp(56px, 9vh, 110px); }
.hero__grid {
  display: block;
}
.hero__copy {
  text-align: center;
}
.hero__title {
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
  font-weight: 480;
  letter-spacing: -0.025em;
  margin: 22px 0 0;
  text-wrap: balance;
}
/* Keep "again." on its own line so a wider/narrower slot word can't reflow it up. */
.hero__again { display: block; }
.slot {
  display: inline-block;
  position: relative;
  font-style: italic;
  color: var(--a1);
  text-align: center;
  margin: 0 0.08em;
}
.hero__title { display: block; will-change: transform, opacity; }
.slot__letter { display: inline-block; transition: color .3s; }
.hero__sub {
  margin: 30px 0 0; max-width: 30ch; font-size: 1.18rem; color: var(--ink-2);
}
.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero__note {
  font-family: "Space Mono", monospace; font-size: 12px; line-height: 1.6;
  color: var(--ink-soft); max-width: 58ch; margin: 0 auto; text-align: center;
}

/* button */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  font-family: "Space Mono", monospace; font-size: 14px; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, background .25s;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--ink) 70%, black);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 color-mix(in srgb, var(--ink) 70%, black); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 70%, black); }
.btn:disabled { opacity: .62; cursor: wait; transform: none; }
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translate(3px,-3px); }
.btn--accent { --bg: var(--a1); box-shadow: 0 2px 0 color-mix(in srgb, var(--a1) 60%, black); }
.btn--accent:hover { box-shadow: 0 6px 0 color-mix(in srgb, var(--a1) 60%, black); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; }

/* portrait */
.portrait {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 380px;
}
.portrait__frame {
  position: relative;
  border-radius: 999px 999px 18px 18px; /* arched doorway */
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 18px 40px -22px rgba(34,40,31,.55);
  aspect-ratio: 711 / 1000;
  border: 1px solid var(--ink-hair);
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.96) contrast(1.02); }
.portrait__tag {
  position: absolute; left: -14px; bottom: 30px;
  background: var(--paper); border: 1px solid var(--ink-faint);
  font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: .04em;
  padding: 7px 12px; border-radius: 8px; color: var(--ink);
  box-shadow: 0 6px 18px -10px rgba(34,40,31,.5);
  transform: rotate(calc(-3deg * var(--play)));
}
.portrait__tag b { color: var(--a1); }
/* ---- section divider (manifesto rhythm) ---- */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px);
  position: relative; z-index: 1;
}
.divider span { height: 1px; flex: 0 1 120px; background: var(--ink-faint); }
.divider i { width: 7px; height: 7px; background: var(--a1); transform: rotate(45deg); flex: none; opacity: calc(.35 + .55 * var(--play)); transition: background .3s; }

/* =========================================================
   BEAT (full-line statements between sections)
   ========================================================= */
.beat { padding: clamp(20px, 3.4vh, 42px) 0; }
.beat__line {
  font-size: clamp(1.3rem, 5.0vw, 2.6rem);
  line-height: 1.15; font-weight: 420; letter-spacing: -.018em;
  max-width: none; text-wrap: balance; text-align: center; margin: 0 auto;
}
.beat__line.center { margin: 0 auto; text-align: center; max-width: 22ch; }
.beat__sub {
  margin: 22px 0 0; max-width: 34ch; font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-style: italic; color: var(--ink-soft); line-height: 1.4;
}

/* human-future reveal */
.reveal {
  position: relative; display: inline; cursor: help;
  font-style: italic; color: var(--a1);
  background-image: linear-gradient(var(--a1), var(--a1));
  background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 92%;
}
.reveal__pop {
  position: absolute; left: 0; top: calc(100% + 14px);
  width: min(360px, 78vw); z-index: 5;
  background: var(--ink); color: var(--paper);
  font-family: "Space Mono", monospace; font-style: normal;
  font-size: 13px; line-height: 1.6; letter-spacing: .01em;
  padding: 16px 18px; border-radius: 14px;
  box-shadow: 0 20px 40px -18px rgba(34,40,31,.7);
  opacity: 0; transform: translateY(8px) scale(.97); transform-origin: top left;
  transition: opacity .25s, transform .25s; pointer-events: none;
}
.reveal__pop::before {
  content: ""; position: absolute; top: -7px; left: 26px;
  width: 14px; height: 14px; background: var(--ink); transform: rotate(45deg);
}
.reveal__pop b { color: var(--a3); font-weight: 700; }
.reveal:hover .reveal__pop, .reveal:focus .reveal__pop { opacity: 1; transform: translateY(0) scale(1); }

/* =========================================================
   DECISION TREE
   ========================================================= */
.tree { padding: clamp(26px, 4vh, 52px) 0 clamp(56px, 9vh, 110px); text-align: center; }
.tree__prompt {
  font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.2; font-weight: 420;
  max-width: 50ch; margin: 0 auto; letter-spacing: -.015em;
}
.tree__diagram {
  position: relative; margin: 0 auto; max-width: 880px; text-align: left;
}
.tree__fork { display: block; width: 100%; height: clamp(30px, 5vh, 58px); overflow: visible; }
.tree__fork path { fill: none; stroke: var(--ink-faint); stroke-width: 2; transition: stroke .3s, stroke-width .3s; vector-effect: non-scaling-stroke; }
.tree__cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 34px); }
.path {
  border: 1.5px solid var(--ink-faint); border-radius: 18px; padding: 24px 26px;
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  cursor: pointer; transition: border-color .3s, transform .3s, background .3s, box-shadow .3s;
  text-align: left; position: relative;
}
.path:hover { transform: translateY(calc(-5px * var(--play))); }
.path__k { font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.path__title { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 480; margin: 0; letter-spacing: -.02em; }
.path__title em { font-style: italic; }
.path__desc { font-family: "Space Mono", monospace; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); margin-top: 12px; }
.path--alive:hover { border-color: var(--alive); background: color-mix(in srgb, var(--alive) 9%, var(--paper)); box-shadow: 0 18px 36px -22px var(--alive); }
.path--alive:hover .path__title { color: var(--alive); }
.path--machine:hover { border-color: var(--machine); background: color-mix(in srgb, var(--machine) 9%, var(--paper)); filter: grayscale(.3); }
.path--machine:hover .path__title { color: var(--machine); }
/* light up the connector line on hover */
.tree__diagram[data-hover="alive"] #treeLineAlive { stroke: var(--alive); stroke-width: 4; }
.tree__diagram[data-hover="machine"] #treeLineMachine { stroke: var(--machine); stroke-width: 4; }
.tree__closing {
  margin-top: clamp(40px, 6vh, 70px); font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 420; letter-spacing: -.01em;
}
.tree__closing .alive { color: var(--alive); font-style: italic; }
.inline-link {
  color: var(--ink); text-decoration: none; font-style: italic;
  background-image: linear-gradient(var(--a1), var(--a1));
  background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .25s, color .25s; padding-bottom: 1px;
}
.inline-link:hover { color: var(--a1); background-size: 100% 100%; background-position: 0 100%;
  background-image: linear-gradient(color-mix(in srgb,var(--a1) 22%,transparent), color-mix(in srgb,var(--a1) 22%,transparent)); }

@media (max-width: 620px){
  .tree__cards { grid-template-columns: 1fr; }
  .tree__fork { display: none; }
}

/* =========================================================
   WORKING TOGETHER
   ========================================================= */
.work {
  background: var(--ink); color: var(--paper);
  border-radius: 28px; margin: 0 auto;
  max-width: 980px;
  width: min(calc(100% - clamp(24px, 6vw, 80px)), 980px);
  padding: clamp(48px, 8vw, 96px) 0;
  position: relative; overflow: hidden;
}
.work .wrap { max-width: 880px; }
.work__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 6vw, 64px);
  align-items: start;
}
.work__quote {
  font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.07; font-weight: 420;
  letter-spacing: -.025em; margin: 0; text-wrap: balance;
}
.work__retainer {
  font-style: italic; font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  margin: 24px 0 0; max-width: 36ch;
}
.work__detail { padding-top: clamp(4px, 1vw, 14px); }
.work__p { font-size: 1.2rem; line-height: 1.5; color: color-mix(in srgb, var(--paper) 80%, transparent); margin: 0; }
.work__line {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem); line-height: 1.24; letter-spacing: -.012em;
  color: var(--paper); margin: 26px 0 0;
}
.work__line::before { content: ""; display: block; width: 44px; height: 2px; background: var(--a5); margin-bottom: 18px; }
.work__chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  width: 100%;
}
@media (max-width: 760px){
  .work__inner { grid-template-columns: 1fr; }
  .work__chips { flex-direction: column; align-items: stretch; }
}
.chip {
  font-family: "Space Mono", monospace; font-size: 12.5px; letter-spacing: .02em;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
  color: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}
.chip::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--a5); }
.form-submit { display: flex; justify-content: center; margin-top: 8px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: clamp(64px, 11vh, 140px) 0; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(30px, 6vw, 84px);
  align-items: center;
}
.about__text { max-width: 760px; }
.about__photo {
  position: relative;
  justify-self: start;
  max-width: 360px;
}
.about__photo .portrait__frame { max-width: 360px; }
.about__loc {
  font-family: "Space Mono", monospace; font-size: 12.5px; letter-spacing: .05em;
  margin-top: 16px; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.about__loc .pin { color: var(--a1); }
.about__lead {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.18; font-weight: 420;
  letter-spacing: -.018em; margin: 0; text-wrap: balance; max-width: 22ch;
}
.about__lead em { font-style: italic; color: var(--a1); }
.about__body { margin: 26px 0 0; font-size: 1.15rem; line-height: 1.55; max-width: 52ch; color: var(--ink-2); }
.about__prev { margin-top: 34px; }
.about__prev .label { font-family:"Space Mono",monospace; font-size: 11px; letter-spacing:.2em; text-transform: uppercase; color: var(--ink-soft); }
.logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.logo {
  font-family: "Space Mono", monospace; font-size: 13px; letter-spacing: .03em;
  padding: 9px 15px; border: 1px solid var(--ink-faint); border-radius: 10px;
  color: var(--ink-2); background: color-mix(in srgb, var(--paper-2) 60%, transparent);
  transition: all .2s;
}
.logo:hover { border-color: var(--a1); color: var(--a1); transform: translateY(-2px); }
@media (max-width: 760px){
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 300px; }
}

/* =========================================================
   CONNECT / BOOKING
   ========================================================= */
.connect { padding: clamp(50px, 8vh, 90px) 0 clamp(70px, 11vh, 130px); }
.connect__card {
  background: var(--paper-2); border: 1px solid var(--ink-faint);
  border-radius: 28px; padding: clamp(30px, 5vw, 60px);
  max-width: 880px; margin: 0 auto; position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(34,40,31,.5);
}
.connect__title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 460; letter-spacing: -.02em; margin: 0; text-wrap: balance; max-width: 26ch; }
.connect__lead { font-size: 1.15rem; color: var(--ink-2); margin: 18px 0 0; max-width: 50ch; }

.booking { margin-top: 34px; }
.booking__steps { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family:"Space Mono",monospace; font-size: 11px; letter-spacing:.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px; }
.booking__steps .step { display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.booking__steps .step.active { color: var(--ink); }
.booking__steps .num { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.booking__steps .step.active .num { background: var(--a1); border-color: var(--a1); color: var(--paper); }
.booking__steps .dash { width: 26px; height: 1px; background: var(--ink-faint); }

.field { display: block; margin-bottom: 16px; }
.field label { display: block; font-family:"Space Mono",monospace; font-size: 12px; letter-spacing:.04em; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--ink-faint); border-radius: 12px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a1) 18%, transparent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .field-row { grid-template-columns: 1fr; } }
.form-status {
  min-height: 20px;
  margin: -2px 0 14px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
.form-status.error { color: var(--a3); }

.booking__free { font-family:"Space Mono",monospace; font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); margin-top: 16px; text-align: center; }

/* step 2 — cal embed reveal */
.cal { display: none; }
.cal.show { display: block; animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px);} to { opacity:1; transform: none; } }
.cal__back { background:none; border:none; cursor:pointer; font-family:"Space Mono",monospace; font-size:12px; color:var(--ink-soft); padding:0; margin-bottom:14px; display:inline-flex; gap:7px; align-items:center; }
.cal__back:hover { color: var(--ink); }
.cal__sent {
  background: color-mix(in srgb, var(--a1) 10%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--a1) 35%, transparent);
  border-radius: 12px; padding: 14px 16px; font-size: .98rem; margin-bottom: 22px;
  display: flex; gap: 12px; align-items: flex-start;
}
.cal__sent .tick { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--a1); color: var(--paper); display:flex; align-items:center; justify-content:center; font-size: 12px; margin-top: 1px; }

.calwidget { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--ink-faint); border-radius: 16px; overflow: hidden; background: var(--paper); }
.calwidget__info { padding: 22px 24px; border-right: 1px solid var(--ink-faint); }
.calwidget__brand { font-family:"Space Mono",monospace; font-size: 11px; letter-spacing:.1em; color: var(--ink-soft); display:flex; align-items:center; gap:8px; }
.calwidget__brand .b { width:18px; height:18px; border-radius:5px; background: var(--ink); color:var(--paper); display:flex;align-items:center;justify-content:center; font-size:11px; }
.calwidget__who { font-size: 1.25rem; font-weight: 500; margin: 16px 0 2px; }
.calwidget__meta { font-family:"Space Mono",monospace; font-size: 12px; color: var(--ink-soft); line-height: 1.9; margin-top: 12px; }
.calwidget__meta div { display:flex; gap:9px; align-items:center; }
.calwidget__link {
  display: inline-flex;
  margin-top: 18px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  color: var(--a1);
  text-decoration: none;
}
.calwidget__link:hover { text-decoration: underline; }
.calwidget__embed {
  min-height: 680px;
  background: var(--paper);
  position: relative;
}
.calwidget__embed iframe {
  min-height: 680px;
}
.calwidget__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 12px;
  pointer-events: none;
}
@media (max-width: 640px){ .calwidget { grid-template-columns: 1fr; } .calwidget__info { border-right:none; border-bottom:1px solid var(--ink-faint);} .calwidget__embed, .calwidget__embed iframe { min-height: 760px; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--paper); padding: clamp(50px,8vw,86px) 0 40px; margin-top: 20px; }
.footer__grid { display:flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer__name { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 480; letter-spacing: -.02em; }
.footer__name .dot { color: var(--a5); }
.footer__tag { font-style: italic; color: color-mix(in srgb, var(--paper) 80%, transparent); max-width: 30ch; margin-top: 14px; font-size: 1.1rem; }
.footer__links { display:flex; flex-direction: column; gap: 12px; }
.footer__links a { font-family:"Space Mono",monospace; font-size: 13px; letter-spacing:.03em; text-decoration:none; color: color-mix(in srgb, var(--paper) 72%, transparent); transition: color .2s; display:inline-flex; gap:8px; }
.footer__links a:hover { color: var(--paper); }
.footer__bottom { margin-top: clamp(36px,6vw,64px); padding-top: 22px; border-top: 1px solid color-mix(in srgb,var(--paper) 18%, transparent); display:flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family:"Space Mono",monospace; font-size: 11.5px; letter-spacing:.04em; color: color-mix(in srgb, var(--paper) 56%, transparent); }
.footer__bottom a { color: inherit; text-decoration: none; }
.footer__bottom a:hover { color: var(--paper); }

/* reveal-on-scroll */
.ios { opacity: 0; transform: translateY(calc(24px * var(--play))); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.ios.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .ios { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Honeypot: kept off-screen but reachable to bots; never shown to humans. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
