/* Joshtified.com - single stylesheet, no framework, no external fonts. */

:root {
  --ink: #06100b;
  --ink-2: #0a1711;
  --panel: #0d1d15;
  --panel-2: #10241a;
  --line: rgba(154, 230, 190, 0.14);
  --line-strong: rgba(154, 230, 190, 0.28);
  --text: #e9f4ed;
  --muted: #9bb3a5;
  --dim: #6f877a;
  --green: #6ee7a0;
  --green-deep: #3dae2b;
  --mint: #b7f7d0;
  --amber: #ffcf7a;
  --sky: #8bd6ff;
  --danger: #ff9d9d;
  --max: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 78% -10%, rgba(61, 174, 43, 0.16), transparent 60%),
    radial-gradient(800px 500px at 8% 18%, rgba(139, 214, 255, 0.07), transparent 60%),
    linear-gradient(180deg, #08140e 0%, var(--ink) 45%, #050d09 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(154, 230, 190, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 230, 190, 0.10) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

::selection { background: rgba(110, 231, 160, 0.28); color: #fff; }

a { color: var(--mint); text-decoration: none; }
a:hover { color: #fff; }

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

.icon { width: 1em; height: 1em; flex: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  background: var(--green);
  color: #04130b;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.skip:focus { left: 12px; }

/* ------------------------------------------------------------------ header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(6, 16, 11, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-head.scrolled { border-color: var(--line); background: rgba(6, 16, 11, 0.92); }

.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.brand:hover { color: #fff; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(110, 231, 160, 0.22), rgba(61, 174, 43, 0.08));
  border: 1px solid var(--line-strong);
  color: var(--green);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.nav a {
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a[aria-current="page"] { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, 0.03); }

.nav .nav-mail {
  color: #04130b;
  background: var(--green);
  border-color: transparent;
  font-weight: 700;
  margin-left: 6px;
}
.nav .nav-mail:hover { background: var(--mint); color: #04130b; }

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: clamp(64px, 10vw, 118px) 0 clamp(56px, 8vw, 92px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -180px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 231, 160, 0.16), transparent 64%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--green);
  opacity: 0.7;
}

h1.hero-title {
  margin-top: 18px;
  font-size: clamp(54px, 10.5vw, 124px);
  line-height: 0.88;
  letter-spacing: -0.065em;
  font-weight: 700;
}
h1.hero-title .dot { color: var(--green); }

.hero-lede {
  margin-top: 26px;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}
.hero-lede strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.5);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(110, 231, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.07); border-color: var(--green); color: #fff; }
.btn.primary { background: var(--green); border-color: var(--green); color: #04130b; }
.btn.primary:hover { background: var(--mint); border-color: var(--mint); color: #04130b; }
.btn svg { width: 17px; height: 17px; }

.hero-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 36, 26, 0.86), rgba(8, 20, 14, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 160, 0.7), transparent);
}
.card-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.card-bar i:first-child { background: var(--green); }
.card-body { padding: 20px; }

.stack-line {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(154, 230, 190, 0.10);
  font-size: 13.5px;
}
.stack-line:last-child { border-bottom: 0; }
.stack-line span { font-family: var(--mono); color: var(--dim); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.stack-line b { font-weight: 500; color: var(--text); }
.stack-line b em { color: var(--muted); font-style: normal; font-family: var(--mono); font-size: 12px; }

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: clamp(48px, 7vw, 76px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.hero-foot span { display: inline-flex; align-items: center; gap: 8px; }
.hero-foot svg { width: 14px; height: 14px; color: var(--green); }

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(64px, 9vw, 106px) 0; border-top: 1px solid var(--line); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px 64px;
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 56px);
}
.section-head h2 {
  font-size: clamp(32px, 4.6vw, 54px);
  letter-spacing: -0.05em;
  margin-top: 14px;
}
.section-head p { color: var(--muted); max-width: 620px; justify-self: end; }

/* ----------------------------------------------------------------- projects */

.project {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 250px;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(28px, 4vw, 46px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.project:last-of-type { border-bottom: 1px solid var(--line); }
.project:hover .p-title { color: var(--mint); }

.p-meta { display: flex; flex-direction: column; gap: 14px; }
.p-num { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.16em; }
.p-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(110, 231, 160, 0.12), rgba(255, 255, 255, 0.02));
  color: var(--green);
}
.p-icon svg { width: 22px; height: 22px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
}

.p-title { font-size: clamp(25px, 3vw, 35px); letter-spacing: -0.045em; transition: color 0.18s ease; }
.p-tagline { margin-top: 8px; color: var(--mint); font-size: 15px; font-weight: 500; }
.p-desc { margin-top: 14px; color: var(--muted); max-width: 640px; font-size: 15.5px; }

.p-points { margin-top: 18px; display: grid; gap: 8px; }
.p-points li {
  list-style: none;
  position: relative;
  padding-left: 27px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.p-points svg { position: absolute; left: 0; top: 4px; width: 15px; height: 15px; color: var(--green); }

.p-side { display: flex; flex-direction: column; gap: 14px; align-content: start; }
.p-side .kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
}
.p-facts { display: grid; gap: 9px; }
.p-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; border-bottom: 1px dashed rgba(154, 230, 190, 0.10); padding-bottom: 8px; }
.p-facts dt, .p-facts span:first-child { color: var(--dim); }
.p-facts dd, .p-facts span:last-child { margin: 0; color: var(--text); text-align: right; font-family: var(--mono); font-size: 12px; }
.p-links { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.textlink:hover { border-color: var(--green); background: rgba(110, 231, 160, 0.07); color: #fff; }
.textlink svg { width: 15px; height: 15px; color: var(--green); }
.textlink.accent { background: rgba(110, 231, 160, 0.10); border-color: rgba(110, 231, 160, 0.35); }

.p-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(110, 231, 160, 0.30);
  background: rgba(110, 231, 160, 0.07);
  border-radius: 999px;
  padding: 4px 9px;
}
.p-badge.sale { color: var(--amber); border-color: rgba(255, 207, 122, 0.30); background: rgba(255, 207, 122, 0.06); }
.p-badge.redirect { color: var(--sky); border-color: rgba(139, 214, 255, 0.30); background: rgba(139, 214, 255, 0.06); }

/* ------------------------------------------------------------------- spotlight */

.spotlight {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(700px 340px at 100% 0%, rgba(110, 231, 160, 0.12), transparent 62%),
    linear-gradient(160deg, rgba(16, 36, 26, 0.95), rgba(7, 18, 12, 0.98));
  overflow: hidden;
  margin-top: 44px;
}
.spotlight-in { padding: clamp(28px, 5vw, 56px); }
.spotlight-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.spotlight h3 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.05em; margin-top: 12px; }
.spotlight .lede { margin-top: 14px; color: var(--muted); max-width: 720px; }
.spot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.spot-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: rgba(255, 255, 255, 0.025);
}
.spot-card h4 { font-size: 15px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.spot-card h4 svg { width: 16px; height: 16px; color: var(--green); }
.spot-card p { margin-top: 7px; color: var(--muted); font-size: 13.5px; }

.core-box {
  margin-top: 24px;
  border: 1px solid rgba(255, 207, 122, 0.22);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  background: rgba(255, 207, 122, 0.045);
}
.core-box .core-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 8px;
}
.core-box .core-label svg { width: 15px; height: 15px; }
.core-box p { margin-top: 9px; color: var(--muted); font-size: 14.5px; max-width: 900px; }
.core-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.core-chips span {
  font-family: var(--mono);
  font-size: 11px;
  color: #f5dca9;
  border: 1px solid rgba(255, 207, 122, 0.20);
  border-radius: 6px;
  padding: 3px 7px;
}

/* ------------------------------------------------------------------- hosting */

.host-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.host-copy h2 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -0.05em; margin-top: 14px; }
.host-copy p { margin-top: 18px; color: var(--muted); max-width: 560px; }
.host-list { margin-top: 26px; display: grid; gap: 12px; }
.host-list li {
  list-style: none;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
}
.host-list .h-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(110, 231, 160, 0.09);
  color: var(--green);
}
.host-list svg { width: 17px; height: 17px; }
.host-list b { display: block; font-size: 14.5px; font-weight: 600; }
.host-list span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.host-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 26px;
  background: linear-gradient(180deg, rgba(16, 36, 26, 0.75), rgba(8, 20, 14, 0.9));
  box-shadow: var(--shadow);
}
.host-panel h3 { font-size: 20px; letter-spacing: -0.02em; }
.host-panel .sub { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.host-rows { margin-top: 20px; display: grid; gap: 0; }
.host-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(154, 230, 190, 0.12); font-size: 13.5px; }
.host-row:last-child { border-bottom: 0; }
.host-row span { color: var(--dim); }
.host-row b { font-family: var(--mono); font-size: 11.5px; color: var(--green); font-weight: 500; letter-spacing: 0.05em; }
.host-panel .btn { width: 100%; justify-content: center; margin-top: 20px; }
.host-note { margin-top: 12px; color: var(--dim); font-size: 11.5px; line-height: 1.5; text-align: center; }

/* ----------------------------------------------------------------- downloads */

.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dl-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.dl-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.dl-head { display: flex; align-items: center; gap: 11px; }
.dl-head .p-icon { width: 38px; height: 38px; border-radius: 10px; }
.dl-head .p-icon svg { width: 18px; height: 18px; }
.dl-head h3 { font-size: 17px; letter-spacing: -0.02em; }
.dl-head span { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin-top: 3px; letter-spacing: 0.05em; }
.dl-card p { color: var(--muted); font-size: 13.5px; flex: 1; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-meta span { font-family: var(--mono); font-size: 10.5px; color: var(--dim); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; }
.dl-card .btn { justify-content: center; }
.hash { font-family: var(--mono); font-size: 10px; color: var(--dim); word-break: break-all; line-height: 1.5; }

.dl-note {
  margin-top: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--dim);
  font-size: 12.5px;
}
.dl-note b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------- install + code blocks */

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--mint);
  background: rgba(110, 231, 160, 0.07);
  border: 1px solid rgba(110, 231, 160, 0.12);
  border-radius: 5px;
  padding: 1px 5px;
  overflow-wrap: break-word;
}

pre {
  margin: 14px 0 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
}
pre code {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre;
}

.install-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3.4vw, 30px);
  background: rgba(255, 255, 255, 0.022);
}
.install-block h3 { font-size: clamp(20px, 2.6vw, 27px); letter-spacing: -0.03em; }
.install-block .small { margin-top: 14px; color: var(--dim); font-size: 12.5px; }
.steps { margin-top: 16px; display: grid; gap: 10px; counter-reset: step; }
.steps li {
  list-style: none;
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
}
.steps b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------- contact */

.contact {
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(110, 231, 160, 0.14), transparent 60%),
    linear-gradient(160deg, rgba(16, 36, 26, 0.9), rgba(6, 16, 11, 0.98));
  padding: clamp(30px, 6vw, 66px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: center;
}
.contact h2 { font-size: clamp(32px, 5vw, 58px); letter-spacing: -0.05em; }
.contact p { color: var(--muted); margin-top: 16px; max-width: 560px; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; }
.mail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  padding: 16px;
}
.mail-card .kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--dim); }
.mail-card a.mail { display: inline-flex; align-items: center; gap: 9px; margin-top: 5px; font-size: clamp(18px, 2.4vw, 23px); font-weight: 600; color: var(--text); letter-spacing: -0.03em; word-break: break-all; }
.mail-card a.mail:hover { color: var(--mint); }
.mail-card a.mail svg { width: 19px; height: 19px; color: var(--green); flex: none; }
.mail-card .small { color: var(--dim); font-size: 12.5px; margin-top: 7px; }

/* -------------------------------------------------------------------- footer */

.site-foot { border-top: 1px solid var(--line); padding: 34px 0 46px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot-in p { color: var(--dim); font-size: 12.5px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.foot-top { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.foot-top svg { width: 13px; height: 13px; }

/* -------------------------------------------------------------------- reveal */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ----------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .project { grid-template-columns: 132px minmax(0, 1fr); }
  .p-side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 22px; }
  .p-side > * { flex: 1 1 220px; }
  .spot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-card { max-width: 520px; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head p { justify-self: start; }
  .host-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(8, 20, 14, 0.98);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .nav .nav-mail { margin-left: 0; text-align: center; margin-top: 4px; }
  .menu-btn { display: inline-flex; }
  .project { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .p-meta { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .p-num { order: 3; }
  .p-side { grid-column: 1; flex-direction: column; }
  .p-side > * { flex: none; width: 100%; }
  .spot-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .hero-foot { gap: 10px 18px; }
  h1.hero-title { font-size: clamp(50px, 16vw, 86px); }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-actions .btn { width: 100%; justify-content: center; }
}
