@charset "UTF-8";
/* ==========================================================================
   nitrocode.sh - Editorial studio system
   Warm ink, serif display, index-driven layout. Not SaaS. Not terminal.
   ========================================================================== */
:root,
[data-theme=dark] {
  --bg: #0c0b0a;
  --bg-2: #141210;
  --bg-3: #1c1916;
  --surface: #181512;
  --line: rgba(232, 228, 217, 0.12);
  --line-strong: rgba(232, 228, 217, 0.22);
  --ink: #ebe6da;
  --ink-2: #b7b0a1;
  --ink-3: #7d776c;
  --ink-4: #524e47;
  --accent: #e8ff47;
  --accent-ink: #12110e;
  --accent-dim: rgba(232, 255, 71, 0.12);
  --accent-2: #ff6b3d;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --nav-h: 64px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1120px;
  --prose: 40rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --theme-color: #0c0b0a;
}

[data-theme=light] {
  --bg: #f3efe6;
  --bg-2: #ebe5d8;
  --bg-3: #e2dccb;
  --surface: #faf7f0;
  --line: rgba(18, 17, 14, 0.1);
  --line-strong: rgba(18, 17, 14, 0.18);
  --ink: #141210;
  --ink-2: #3f3b34;
  --ink-3: #6b655a;
  --ink-4: #9a9386;
  --accent: #1a1a14;
  --accent-ink: #f3efe6;
  --accent-dim: rgba(20, 18, 16, 0.06);
  --accent-2: #c44b22;
  --shadow: 0 20px 50px rgba(20, 18, 16, 0.08);
  --theme-color: #f3efe6;
}

/* -------------------------------------------------------------------------- */
/* Base                                                                       */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: var(--accent-2);
}

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

img {
  max-width: 100%;
  display: block;
}

/* -------------------------------------------------------------------------- */
/* Shell                                                                      */
/* -------------------------------------------------------------------------- */
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 2rem) var(--pad) 5rem;
}

body.nav-open {
  overflow: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.wrap--narrow {
  max-width: var(--prose);
}

/* -------------------------------------------------------------------------- */
/* Nav                                                                        */
/* -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: var(--nav-h);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: env(safe-area-inset-top, 0);
}

.site-header__inner {
  min-height: var(--nav-h);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
  max-width: calc(100% - 7rem);
  text-decoration: none !important;
  color: var(--ink) !important;
  padding: 0.35rem 0;
}

.site-logo__mark {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  flex-shrink: 0;
}

.site-logo__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

.site-nav a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--ink-2) !important;
  padding: 0.45rem 0.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink) !important;
}

.site-nav a.is-active {
  box-shadow: inset 0 -1px 0 var(--accent);
}

.theme-toggle,
.nav-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover,
.nav-toggle:hover {
  color: var(--ink);
  border-color: var(--ink-3);
  background: var(--accent-dim);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme=light] .theme-toggle .icon-sun {
  display: block;
}

[data-theme=light] .theme-toggle .icon-moon {
  display: none;
}

/* Hamburger: desktop hidden */
.nav-toggle {
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.2s var(--ease);
}

.site-header.is-nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
  .site-header__actions {
    order: 3;
    margin-left: 0.5rem;
  }
  .site-nav {
    order: 2;
  }
}
/* -------------------------------------------------------------------------- */
/* Type in content                                                            */
/* -------------------------------------------------------------------------- */
.site-main h1,
.site-main h2,
.site-main h3,
.site-main h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 0.7em;
}

.site-main h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
}

.site-main h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin-top: 2.75rem;
}

.site-main h3 {
  font-size: 1.45rem;
  margin-top: 2rem;
}

.site-main p,
.site-main li {
  color: var(--ink-2);
}

.site-main p {
  margin: 0 0 1.15em;
}

.site-main strong {
  color: var(--ink);
  font-weight: 600;
}

.site-main ul,
.site-main ol {
  padding-left: 1.15rem;
  margin: 0 0 1.25em;
}

.site-main li {
  margin-bottom: 0.4em;
}

.site-main hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

.site-main blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.15rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.35;
}

.site-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.site-main th,
.site-main td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.site-main th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.site-main code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-3);
  padding: 0.12em 0.38em;
  border: 1px solid var(--line);
  color: var(--ink);
}

.site-main pre {
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.55;
  background: #080706;
  color: #e8e4d9;
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

[data-theme=light] .site-main pre {
  background: #1a1814;
  color: #ebe6da;
}

.site-main pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--solid {
  background: var(--accent);
  color: var(--accent-ink) !important;
  border-color: var(--accent);
}

.btn--solid:hover {
  filter: brightness(1.05);
  color: var(--accent-ink) !important;
}

.btn--ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--ink-3);
  background: var(--accent-dim);
  color: var(--ink) !important;
}

/* -------------------------------------------------------------------------- */
/* Home - split hero                                                          */
/* -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  padding: 1rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3.5rem;
}

.hero__index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1.25rem;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7.2vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 1.35rem !important;
  color: var(--ink) !important;
  max-width: 14ch;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.28em;
  row-gap: 0.08em;
}

.hero__title-fixed {
  display: inline-block;
}

/* Rotating verb: italic + underline carry the visual weight */
.hero__verb-slot {
  display: inline-grid;
  position: relative;
  min-width: 5.1em; /* fit "operate" without layout jump */
  overflow: hidden;
  vertical-align: baseline;
  line-height: 1.05;
}

.hero__verb-slot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.15em;
  bottom: 0.06em;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  transform-origin: left center;
  opacity: 0.9;
}

.hero__verb {
  display: inline-block;
  font-style: italic;
  color: var(--ink-2);
  will-change: transform, opacity;
}

.hero__verb.is-out {
  opacity: 0;
  transform: translateY(-45%);
  transition: transform 0.36s var(--ease), opacity 0.3s var(--ease);
}

.hero__verb.is-in {
  animation: hero-verb-in 0.5s var(--ease) both;
}

.hero__verb.is-static {
  font-style: italic;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes hero-verb-in {
  from {
    opacity: 0;
    transform: translateY(45%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__verb-slot::after {
    animation: hero-underline 3.2s var(--ease) infinite;
  }
}
@keyframes hero-underline {
  0% {
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0.35;
  }
  16% {
    transform: scaleX(1);
    transform-origin: left center;
    opacity: 1;
  }
  72% {
    transform: scaleX(1);
    transform-origin: right center;
    opacity: 1;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right center;
    opacity: 0.35;
  }
}
.hero__lede {
  font-size: clamp(1.08rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-2) !important;
  max-width: 38rem;
  margin: 0 0 1.65rem !important;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.hero__meta li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 !important;
}

.hero__meta li::before {
  content: "▸ ";
  color: var(--accent-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 !important;
}

.hero__visual {
  position: relative;
}

.hero__frame {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12, 11, 10, 0.55) 100%);
  pointer-events: none;
}

[data-theme=light] .hero__frame::after {
  background: linear-gradient(180deg, transparent 50%, rgba(20, 18, 16, 0.25) 100%);
}

.hero__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ebe6da;
  background: rgba(12, 11, 10, 0.72);
  border: 1px solid rgba(232, 228, 217, 0.18);
  padding: 0.45rem 0.65rem;
  backdrop-filter: blur(8px);
}

.hero__orbit {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 88px;
  height: 88px;
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  background: var(--bg);
}

.hero__orbit span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.3;
  padding: 0.5rem;
}

/* -------------------------------------------------------------------------- */
/* Sections                                                                   */
/* -------------------------------------------------------------------------- */
.block {
  padding: 0.5rem 0 3.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3.25rem;
}

.block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.block__head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

.block__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  margin: 0.35rem 0 0;
}

.block__title {
  margin: 0 0 0.4rem !important;
}

.block__sub {
  margin: 0 !important;
  max-width: 36rem;
  color: var(--ink-2) !important;
}

/* Project rows */
.project-list {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  border-top: 1px solid var(--line);
}

.project-list__more {
  margin: 1.25rem 0 0 !important;
  padding: 0 !important;
}

.project-list--full .project__body .write-tags {
  margin-top: 0.65rem;
}

.work-group {
  margin-bottom: 2.5rem;
}

.work-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 2rem 0 0 !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1rem 1.5rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0 !important;
  transition: background 0.2s var(--ease);
}

.project:hover {
  background: var(--accent-dim);
}

.project__kind {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.project__period {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3) !important;
  margin: 0 0 0.4rem !important;
}

.project-list--full .project__kind {
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.project__body h3 {
  margin: 0 0 0.35rem !important;
  font-size: 1.55rem !important;
}

.project__body h3 a {
  text-decoration: none !important;
  color: var(--ink) !important;
}

.project__body h3 a:hover {
  color: var(--accent-2) !important;
}

.project__body p {
  margin: 0 !important;
  max-width: 40rem;
  font-size: 0.98rem;
}

.project__go {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--ink-3) !important;
  white-space: nowrap;
}

.project:hover .project__go {
  color: var(--ink) !important;
}

/* Pattern grid */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pattern {
  background: var(--bg);
  padding: 1.35rem 1.25rem;
  margin: 0 !important;
  list-style: none;
}

.pattern strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.pattern span,
.pattern {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pattern a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--accent-2) !important;
}

/* Writing index */
.write-list {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}

.write-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0 !important;
}

.write-item:first-child {
  border-top: 1px solid var(--line);
}

.write-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0.35rem;
}

.write-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-decoration: none !important;
  color: var(--ink) !important;
  margin-bottom: 0.4rem;
}

.write-title:hover {
  color: var(--accent-2) !important;
}

.write-desc {
  margin: 0 !important;
  color: var(--ink-2) !important;
  max-width: 40rem;
  font-size: 0.98rem;
}

.write-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  padding: 0.2rem 0.45rem;
}

.block__more {
  margin-top: 1.5rem !important;
}

.block__more a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.15rem;
}

/* Connect band */
.connect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.connect h2 {
  margin: 0 0 0.5rem !important;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
}

.connect p {
  margin: 0 !important;
  max-width: 28rem;
}

.connect__links {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}

.connect__links a {
  font-family: var(--serif);
  font-size: 1.35rem;
  text-decoration: none !important;
  color: var(--ink) !important;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.connect__links a:hover {
  color: var(--accent-2) !important;
  border-color: var(--accent-2);
}

/* Page heroes */
.page-hero {
  padding: 0.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.page-hero .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 0.85rem;
}

.page-hero h1 {
  margin-bottom: 0.65rem !important;
}

.page-hero p {
  max-width: 36rem;
  font-size: 1.1rem;
  margin: 0 !important;
}

.about-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  aspect-ratio: 4/5;
  overflow: hidden;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.92);
}

.about-content {
  max-width: 38rem;
}

/* Posts */
.post {
  max-width: var(--prose);
  margin: 0 auto;
}

.post-header {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.post-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1rem !important;
}

.post-content > p:first-of-type {
  font-size: 1.15rem;
  color: var(--ink-2);
}

.post-content img {
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-2);
}

.post-panel {
  margin: 2.5rem 0;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.post-panel h3 {
  margin-top: 0 !important;
  font-size: 1.35rem !important;
}

.share-links,
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.share-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid var(--line-strong);
  padding: 0.5rem 0.75rem;
  color: var(--ink-2) !important;
}

.share-links a:hover {
  border-color: var(--ink-3);
  color: var(--ink) !important;
}

.newsletter-form input[type=email] {
  flex: 1;
  min-width: 200px;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
}

.newsletter-form input[type=email]:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.newsletter-form button {
  min-height: 46px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.newsletter-note {
  font-size: 12px !important;
  color: var(--ink-3) !important;
  margin: 0.75rem 0 0 !important;
}

.post-sponsor {
  text-align: left;
}

.post-nav-links {
  margin-top: 1.5rem !important;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem var(--pad) 2.25rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer p {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.site-footer__wink {
  color: var(--ink-4) !important;
  text-decoration: none !important;
  text-transform: none;
  letter-spacing: 0.02em;
  font-style: italic;
}

.site-footer__wink:hover {
  color: var(--ink-3) !important;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--ink-2) !important;
}

.site-footer a:hover {
  color: var(--ink) !important;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy {
    animation: rise 0.8s var(--ease) both;
  }
  .hero__visual {
    animation: rise 0.9s var(--ease) 0.1s both;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero__verb-slot::after {
    animation: none !important;
    transform: scaleX(1);
    opacity: 0.75;
  }
  .hero__verb.is-out,
  .hero__verb.is-in {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* Responsive */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-bottom: 2.5rem;
  }
  .hero__visual {
    order: -1;
    max-width: min(320px, 72vw);
  }
  .hero__orbit {
    width: 72px;
    height: 72px;
    top: -0.5rem;
    right: -0.35rem;
  }
  .hero__actions {
    width: 100%;
  }
  .hero__actions .btn {
    flex: 1 1 auto;
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }
  .block__head {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .project {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1.15rem 0;
  }
  .project__go {
    justify-self: start;
    padding: 0.35rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .pattern-grid {
    grid-template-columns: 1fr;
  }
  .write-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .connect {
    grid-template-columns: 1fr;
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-portrait {
    position: static;
    max-width: min(240px, 70vw);
  }
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .site-footer nav {
    gap: 0.35rem 1rem;
  }
  .site-footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
/* Mobile nav drawer */
@media (max-width: 768px) {
  .site-header__inner {
    row-gap: 0;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 0 0.85rem;
    border-top: 1px solid var(--line);
    margin-top: 0.15rem;
  }
  .site-header.is-nav-open .site-nav {
    display: flex;
  }
  .site-nav a {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 0.15rem;
    font-size: 12px;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child {
    border-bottom: 0;
  }
  .site-nav a.is-active {
    box-shadow: none;
    color: var(--ink) !important;
  }
  .site-nav a.is-active::before {
    content: "▸ ";
    color: var(--accent-2);
  }
  .site-logo__name {
    font-size: 1.15rem;
  }
  .site-main {
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 1.25rem) var(--pad) calc(3.5rem + env(safe-area-inset-bottom, 0px));
  }
  .hero__title {
    max-width: none;
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }
  .hero__lede {
    font-size: 1.02rem;
    max-width: none;
  }
  .hero__meta {
    gap: 0.4rem 1rem;
  }
  .page-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }
  .btn {
    min-height: 44px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .post-content {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .post-content pre,
  .post-content table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .share-links {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
  .share-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
@media (max-width: 380px) {
  .site-logo__name {
    max-width: 9.5rem;
  }
  .site-logo__mark {
    font-size: 10px;
  }
}
/* -------------------------------------------------------------------------- */
/* Talk / present mode                                                        */
/* -------------------------------------------------------------------------- */
.talk-page .site-shell.talk-shell {
  min-height: 100vh;
}

.talk-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
}

.talk-chrome__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem var(--pad);
}

.talk-chrome__home {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-2);
  text-decoration: none;
}

.talk-chrome__home:hover {
  color: var(--accent);
}

.talk-chrome__meta {
  margin: 0;
  flex: 1;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.talk-chrome__actions {
  display: flex;
  gap: 0.5rem;
}

.talk-btn {
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
}

.talk-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem var(--pad) 4rem;
}

.talk-intro {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.talk-intro .eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.talk-intro h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}

.talk-intro__meta {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

.talk-intro__meta a {
  color: var(--ink);
}

.talk-keys {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-3);
}

.talk-slide {
  position: relative;
  margin: 0 0 1.25rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  scroll-margin-top: 5rem;
}

.talk-slide__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.75rem;
}

.talk-slide h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--ink);
}

.talk-slide p,
.talk-slide li {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.talk-slide ul,
.talk-slide ol {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.talk-slide li + li {
  margin-top: 0.35rem;
}

.talk-slide .punch {
  color: var(--accent-2);
  font-weight: 600;
}

.talk-slide .ok {
  color: var(--accent);
}

.talk-slide pre,
.talk-slide .talk-code {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
  overflow-x: auto;
  white-space: pre-wrap;
}

.talk-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin-top: 0.75rem;
}

.talk-card {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.talk-card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.talk-card span {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.talk-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.talk-table th,
.talk-table td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.talk-table th {
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 600;
}

.talk-hud {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.talk-hud__btn {
  min-width: 2.4rem;
  min-height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.talk-hud__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.talk-hud__progress {
  margin: 0;
  min-width: 4.5rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-2);
}

.talk-hud__exit {
  margin-left: 0.25rem;
}

/* Present mode: one slide fills the viewport */
.talk-page.is-presenting .talk-chrome {
  display: none;
}

.talk-page.is-presenting .talk-intro {
  display: none;
}

.talk-page.is-presenting .talk-main {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.talk-page.is-presenting .talk-slide {
  display: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  min-height: 100vh;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.5rem, 6vw, 5rem) 5rem;
  background: var(--bg);
  box-sizing: border-box;
}

.talk-page.is-presenting .talk-slide.is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.talk-page.is-presenting .talk-slide h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 18ch;
}

.talk-page.is-presenting .talk-slide p,
.talk-page.is-presenting .talk-slide li {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

.talk-page.is-presenting .talk-slide__label {
  font-size: 0.85rem;
  color: var(--accent);
}

@media (max-width: 640px) {
  .talk-chrome__meta {
    display: none;
  }
  .talk-slide {
    padding: 1.15rem;
  }
}
.talk-lock-banner {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.talk-page.talk-locked .talk-chrome__meta {
  color: var(--accent-2);
}

.talk-unlock {
  margin-top: 1.5rem;
  max-width: 22rem;
}

.talk-unlock label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}

.talk-unlock__row {
  display: flex;
  gap: 0.5rem;
}

.talk-unlock input {
  flex: 1;
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.talk-unlock input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.talk-unlock__hint {
  margin: 0.5rem 0 0;
  color: var(--accent-2);
  font-size: 0.85rem;
}

/*# sourceMappingURL=style.css.map */