/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --accent:        #e0533d;
  --accent-hover:  #c44430;
  --accent-tint:   #fdf2f0;
  --accent-tint-bd:#f9d0c9;
  --ink:    #1a2230;
  --body:   #4a5562;
  --muted:  #5b6573;
  --faint:  #8a93a0;
  --band:   #f5f6f7;
  --hair:   #ececef;
  --surface: #ffffff;
  --hero-bg: #ffffff;
  --hotline-bg: #faf6ef;
  --hotline-border: #efe7da;
  --hotline-text: #5b5247;
  --hotline-sub: #8a8073;
  --card-bg: #ffffff;
  --grid-border: #e3e6ea;
  --selection-bg: #99f6e4;
}

/* ============================================================
   SKIP TO CONTENT
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  z-index: 100;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
input, textarea, button { font-family: 'Archivo', system-ui, sans-serif; }
::selection { background: var(--selection-bg); }

/* ============================================================
   ANIMATION
   ============================================================ */
@keyframes agfade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.agfade { animation: agfade 0.7s ease both; }

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(255,255,255,0.65); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0   rgba(255,255,255,0); }
}
@keyframes pulse-ring-accent {
  0%   { box-shadow: 0 0 0 0   rgba(224,83,61,0.65); }
  70%  { box-shadow: 0 0 0 8px rgba(224,83,61,0); }
  100% { box-shadow: 0 0 0 0   rgba(224,83,61,0); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container         { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px;  margin: 0 auto; padding: 0 24px; }
.container--mid    { max-width: 880px;  margin: 0 auto; padding: 0 24px; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.mono-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */

/* Pulse dot — used in nav hotline, hero CTA, form submit */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: pulse-ring 1.6s ease-out infinite;
}
.pulse-dot--sm {
  width: 7px;
  height: 7px;
}
.pulse-dot--accent {
  background: var(--accent);
  animation: pulse-ring-accent 1.6s ease-out infinite;
}

/* CTA buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--ink);
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--grid-border);
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--ink); }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hair);
}
.site-nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-nav__logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: block;
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav__link {
  text-decoration: none;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s;
}
.site-nav__link:hover { color: var(--ink); }
.site-nav__hotline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
.site-nav__hotline:hover { background: var(--accent-hover); }
.site-nav__mobile-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.site-nav__mobile-menu {
  display: none;
  border-top: 1px solid var(--hair);
  padding: 8px 0 12px;
  background: #fff;
}
.site-nav__mobile-menu.open { display: block; }
.site-nav__mobile-link {
  display: block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.site-nav__mobile-link:hover { color: var(--ink); }
.site-nav__mobile-hotline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 24px 0;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 130px 24px 110px;
  text-align: center;
}
.hero__grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  text-align: center;
}
.hero__content {
  max-width: none;
  animation: agfade 0.7s ease both;
}
.hero__latest {
  text-align: left;
  border-left: 1px solid var(--hair);
  padding-left: 48px;
  padding-top: 6px;
}
.hero__latest-title {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.hero__latest-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.latest__rss-badge {
  display: inline-block;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  padding: 4px 6px;
  text-decoration: none;
}
.latest__rss-badge:hover {
  background: var(--accent-hover);
}
.hero__kicker {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 26px;
}
.hero__title {
  font-size: 74px;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 28px;
}
.hero__lead {
  font-size: 21px;
  line-height: 1.55;
  color: var(--body);
  margin: 0 auto 16px;
  max-width: 560px;
}
.hero__sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted, #666);
  margin: 0 auto 40px;
  max-width: 560px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SOCIAL
   ============================================================ */
.social__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social__link i {
  color: var(--accent);
}

/* ============================================================
   LATEST
   ============================================================ */
.latest__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.latest__item {
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.latest__item:first-child {
  padding-top: 0;
}
.latest__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.5;
}
.latest__link:hover {
  color: var(--accent);
}
.latest__bullet {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.latest__date {
  display: block;
  margin: 5px 0 0 18px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--muted, #666);
}
.latest__loading,
.latest__error {
  font-size: 16px;
  color: var(--muted, #666);
}
.latest__error {
  color: var(--accent);
}
.latest__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.latest__more:hover {
  text-decoration: underline;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--band);
  padding: 110px 24px;
  border-top: 1px solid var(--hair);
}
.about__title {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 28px;
}
.about__para {
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  margin: 0 0 18px;
}
.about__meta-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 28px 0 12px;
}
.about__meta-text {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.resume-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}
.experience .resume-links { margin-top: 40px; }
.about__resume {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.about__resume:hover { text-decoration: underline; }
.about__resume--html { color: var(--muted); }
.about__resume--html:hover { color: var(--accent); }

/* ============================================================
   HOTLINE FORM
   ============================================================ */
.hotline {
  background: var(--hotline-bg);
  padding: 120px 24px;
  border-top: 1px solid var(--hotline-border);
  border-bottom: 1px solid var(--hotline-border);
}
.hotline__inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hotline__kicker {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
.hotline__title {
  font-size: 46px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 22px;
}
.hotline__para {
  font-size: 18px;
  line-height: 1.7;
  color: var(--hotline-text);
  margin: 0 0 18px;
}
.hotline__sub {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--hotline-sub);
  margin: 0;
}

/* Form card */
.hotline-card {
  background: var(--card-bg);
  border: 1px solid var(--grid-border);
  border-radius: 16px;
  padding: 30px 28px;
  box-shadow: 0 18px 50px -28px rgba(26,34,48,0.4);
}
.form-field { margin-bottom: 16px; }
.form-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 7px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grid-border);
  border-radius: 9px;
  font-size: 15px;
  background: #fbfcfd;
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; line-height: 1.55; }
.form-error {
  font-size: 13px;
  color: #dc2626;
  margin: 0 0 8px;
  display: none;
}
.form-error.visible { display: block; }
.form-submit {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background 0.15s;
  margin-bottom: 12px;
}
.form-submit:hover { background: var(--accent-hover); }
.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.form-submit--loading .pulse-dot {
  animation: pulse-ring 0.8s ease-out infinite;
}
.form-hint {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--faint);
  text-align: center;
  margin: 0;
}

/* Success state */
.hotline-success { text-align: center; padding: 8px 0; display: none; }
.hotline-success.visible { display: block; }
.hotline-success__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}
.hotline-success__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.hotline-success__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--faint);
  margin: 0 0 22px;
}
.hotline-success__send {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 14px 26px;
  border-radius: 11px;
  font-size: 15.5px;
  font-weight: 700;
  transition: background 0.15s;
}
.hotline-success__send:hover { background: var(--accent-hover); }
.hotline-success__reset {
  display: block;
  margin: 18px auto 0;
  background: none;
  border: none;
  color: var(--faint);
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: underline;
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience {
  padding: 110px 24px;
  background: var(--band);
  border-top: 1px solid var(--hair);
}
.experience__title {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 44px;
}
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.experience-item {
  border-left: 2px solid var(--grid-border);
  padding-left: 26px;
}
.experience-item__role {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.experience-item__org {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 4px;
  font-weight: 500;
}
.experience-item__when {
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  color: var(--faint);
  margin: 0 0 16px;
}
.experience-item__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.experience-item__bullet {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.experience-item__bullet::before {
  content: '·';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}
.experience__resume {
  display: inline-block;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 15.5px;
}
.experience__resume--html { color: var(--muted); }
.experience__resume--html:hover { color: var(--accent); text-decoration: underline; }
.experience__resume:hover { text-decoration: underline; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { padding: 110px 24px; }
.projects__title {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 44px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  border: 1px solid var(--grid-border);
  border-radius: 8px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.project-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.project-card__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.project-card__badge {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-bd);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.project-card__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
  flex: 1;
}
.project-card__tags {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  color: var(--faint);
  margin: 0 0 16px;
}
.project-card__link {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 14.5px;
}
.projects__all-link {
  display: inline-block;
  margin-top: 40px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--band);
  padding: 110px 24px;
  border-top: 1px solid var(--hair);
  text-align: center;
}
.contact__title {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 18px;
}
.contact__sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 32px;
}
.contact__email {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.contact__social {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 28px;
}
.contact__social-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

/* ============================================================
   PAGE — About / Contact / Privacy (static trust pages)
   ============================================================ */
.page {
  padding: 88px 24px 100px;
}
.page__kicker {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.page__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0 0 20px;
}
.page__lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 36px;
}
.page__body { font-size: 17px; line-height: 1.75; color: var(--body); }
.page__body h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 34px 0 12px;
}
.page__body p { margin: 0 0 18px; }
.page__body a { color: var(--accent); text-decoration: none; font-weight: 600; }
.page__body a:hover { text-decoration: underline; }
.page__body strong { color: var(--ink); font-weight: 700; }
.page__body ul { margin: 0 0 18px; padding-left: 22px; }
.page__body li { margin: 0 0 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 34px 24px;
  border-top: 1px solid var(--hair);
}
.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__copy {
  font-size: 13.5px;
  color: var(--faint);
  margin: 0;
}
.site-footer__links { display: flex; gap: 20px; }
.site-footer__link {
  text-decoration: none;
  color: var(--faint);
  font-size: 13.5px;
}

/* ============================================================
   RESPONSIVE — 720px
   ============================================================ */
@media (max-width: 720px) {
  .site-nav__links   { display: none; }
  .site-nav__mobile-btn { display: block; }

  .hero__title { font-size: 44px; }
  .hero__lead  { font-size: 17px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__latest {
    border-left: none;
    border-top: 1px solid var(--hair);
    padding-left: 0;
    padding-top: 40px;
    text-align: center;
  }
  .hero__latest .latest__list {
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
  }
  .hero__latest .latest__more {
    display: inline-block;
  }

  .projects-grid { grid-template-columns: 1fr; }

  .hotline__inner  { grid-template-columns: 1fr; }

}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-nav, .site-footer { display: none; }
  body { font-size: 12pt; line-height: 1.5; color: #000; }
  a { text-decoration: none; color: #000; }
  section { page-break-inside: avoid; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}


/* ── Accessibility utility ──────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   INVITE PAGE
   ============================================================ */
.invite-hero {
  padding: 80px 24px 48px;
  text-align: center;
}
.invite-hero__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.invite-hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.05;
}
.invite-hero__body {
  font-size: 1.125rem;
  color: var(--body);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

.invite-cal {
  padding: 64px 24px 80px;
  border-top: 1px solid var(--hair);
}
.invite-cal__heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 32px;
}

/* ============================================================
   AUDIT PAGE
   ============================================================ */
.audit-hero {
  padding: 80px 24px 64px;
  text-align: center;
}
.audit-hero__kicker {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
.audit-hero__title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0 0 24px;
}
.audit-hero__tagline {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--body);
  max-width: 560px;
  margin: 0 auto 16px;
}
.audit-hero__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.01em;
}

.audit-tiers {
  padding: 64px 24px;
  background: var(--band);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.audit-tiers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.audit-tier {
  background: var(--card-bg);
  border: 1px solid var(--grid-border);
  border-radius: 12px;
  padding: 32px;
}
.audit-tier--featured {
  border-color: var(--accent);
}
.audit-tier__name {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
}
.audit-tier__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.1;
}
.audit-tier__desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--body);
  margin: 0;
}

.audit-who {
  padding: 64px 24px;
}
.audit-who__label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 20px;
}
.audit-who__text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--body);
  margin: 0;
  max-width: 620px;
}

.audit-cal {
  padding: 64px 24px 80px;
  border-top: 1px solid var(--hair);
}
.audit-cal__heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 32px;
}

@media (max-width: 720px) {
  .audit-tiers__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   DARK MODE
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --ink:    #e8edf5;
    --body:   #b0b8c8;
    --muted:  #8f98aa;
    --faint:  #6b7485;
    --band:   #141b2a;
    --hair:   #252d40;
    --surface: #0f1524;
    --hero-bg: #0f1524;
    --hotline-bg: #161e2e;
    --hotline-border: #252d40;
    --hotline-text: #b0b8c8;
    --hotline-sub: #6b7485;
    --card-bg: #172033;
    --grid-border: #252d40;
    --selection-bg: #2dd4b8;
  }

  body { background: var(--surface); }
  ::selection { background: var(--selection-bg); }
  .site-nav {
    background: var(--surface);
    border-bottom-color: var(--hair);
  }
  .site-nav__mobile-menu { background: var(--surface); border-top-color: var(--hair); }
  .btn-secondary {
    color: var(--ink);
    background: var(--card-bg);
    border-color: var(--grid-border);
  }
  .btn-secondary:hover { border-color: var(--ink); }
  .hotline-card,
  .project-card,
  .audit-tier { background: var(--card-bg); }
  .project-card,
  .hotline-card,
  .audit-tier { border-color: var(--grid-border); }
  .form-input,
  .form-textarea { background: #1a243a; border-color: #2d3852; color: var(--ink); }
  .social__link i { color: var(--accent); }
  .form-input::placeholder,
  .form-textarea::placeholder { color: var(--faint); opacity: 0.8; }
}

/* ============================================================
   UTILITIES — classes used by layouts/_default (Tailwind-style),
   defined here so the static site does not need the Tailwind build.
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* layout */
.min-h-screen { min-height: 100vh; }
.bg-white { background-color: #fff; }
.pt-20 { padding-top: 80px; }
.pb-16 { padding-bottom: 64px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mt-4 { margin-top: 16px; }
.p-6 { padding: 24px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.h-48 { height: 12rem; }
.gap-2 { gap: 8px; }
.gap-8 { gap: 32px; }
.text-center { text-align: center; }
.overflow-hidden { overflow: hidden; }
.rounded { border-radius: 4px; }
.rounded-lg { border-radius: 8px; }

/* type scale */
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-xs { font-size: 12px; line-height: 1.5; }
.text-sm { font-size: 14px; }
.text-xl { font-size: 20px; line-height: 1.4; }
.text-4xl { font-size: 36px; line-height: 1.15; font-weight: 700; }
.text-gray-900 { color: var(--ink); }
.text-gray-600 { color: var(--body); }
.text-gray-500 { color: var(--muted); }
.text-blue-600 { color: #2563eb; }
.text-blue-800 { color: #1e40af; }

/* colors & backgrounds */
.bg-blue-100 { background-color: #dbeafe; }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, #60a5fa, #a855f7);
}
.from-blue-400 { --gw-gradient-from: #60a5fa; }
.to-purple-500 { --gw-gradient-to: #a855f7; }
.from-blue-400.to-purple-500,
.bg-gradient-to-br.from-blue-400.to-purple-500 {
  background-image: linear-gradient(to bottom right, var(--gw-gradient-from), var(--gw-gradient-to));
}

/* grid & flex */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* cards & transitions */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.transition-shadow { transition: box-shadow .3s; }
.transition-colors { transition: color .2s; }
.duration-200 { transition-duration: .2s; }
.duration-300 { transition-duration: .3s; }

/* prose — typography for markdown content */
.prose { color: var(--body); font-size: 17px; line-height: 1.75; max-width: none; }
.prose-lg { font-size: 18px; }
.prose > * + * { margin-top: 1em; }
.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--ink); font-weight: 700; line-height: 1.25;
  margin-top: 1.6em; margin-bottom: .6em; scroll-margin-top: 96px;
}
.prose h1 { font-size: 1.9em; }
.prose h2 { font-size: 1.55em; padding-bottom: .3em; border-bottom: 1px solid var(--hair); }
.prose h3 { font-size: 1.25em; }
.prose h4 { font-size: 1.1em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-hover); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-top: .35em; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin: 1.4em 0; padding: .6em 1.2em;
  border-left: 3px solid var(--accent-tint-bd);
  background: var(--accent-tint);
  color: var(--body); border-radius: 0 6px 6px 0;
}
.prose blockquote p { margin: .3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95em; }
.prose th, .prose td { border: 1px solid var(--grid-border); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--band); color: var(--ink); font-weight: 600; }
.prose tr:nth-child(even) td { background: #fafbfb; }
.prose code {
  font-family: 'Space Mono', monospace; font-size: .88em;
  background: var(--band); border-radius: 4px; padding: 1px 5px;
}
.prose hr { border: 0; border-top: 1px solid var(--hair); margin: 2em auto; }
.prose form p { margin: 0 0 1.1em; }
.prose form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 4px; }

/* responsive */
@media (min-width: 768px) {
  .md\:text-5xl { font-size: 48px; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 32px; padding-right: 32px; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* hover variants (need to come last for specificity) */
article.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,.12), 0 8px 10px -6px rgba(0,0,0,.1); }
a.hover\:text-blue-600:hover { color: #2563eb; }
a.hover\:text-blue-800:hover { color: #1e40af; }

/* ============================================================
   HERO ASIDE — list spacing + note (training home + catalogue)
   ============================================================ */
.hero__latest .latest__list li {
  margin-bottom: 14px;
  line-height: 1.6;
}
.hero__latest .latest__list li:last-child {
  margin-bottom: 0;
}
.hero__latest-note {
  margin: 0;
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ============================================================
   CATALOGUE — zebra module stripes (white / band)
   ============================================================ */
.catmod {
  padding: 56px 0;
  border-top: 1px solid var(--hair);
}
.catmod--band {
  background: var(--band);
}

.page__duration { font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin: 4px 0 18px; }
.page__back { margin-top: 28px; }
.page__back a { color: var(--accent); text-decoration: none; font-weight: 600; }
.page__back a:hover { text-decoration: underline; }
