/* ============================================================
   amnon.dev — terminal theme
   ============================================================ */

:root {
  --bg: #070b09;
  --bg-soft: #0b110d;
  --surface: #0e1511;
  --surface-2: #121b15;
  --line: rgba(134, 200, 152, 0.14);
  --line-strong: rgba(134, 200, 152, 0.28);
  --text: #e9f2ea;
  --muted: #9db3a4;
  --dim: #6e8177;
  --accent: #4ade80;
  --accent-soft: rgba(74, 222, 128, 0.12);
  --accent-line: rgba(74, 222, 128, 0.45);
  --lime: #a3e635;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 16px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(74, 222, 128, 0.28); color: #eafff0; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #1c2b21;
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #27402f; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
ol { list-style: none; }
img { display: block; max-width: 100%; }

.mono { font-family: var(--font-mono); }
.ok { color: var(--accent); }
.grad {
  background: linear-gradient(100deg, var(--accent) 20%, var(--lime) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- ambient background ---------- */

.noise {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(134, 200, 152, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 200, 152, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
}

.glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(110px);
}
.glow-a {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: rgba(74, 222, 128, 0.13);
}
.glow-b {
  width: 480px; height: 480px;
  bottom: 10%; left: -200px;
  background: rgba(74, 222, 128, 0.07);
}

main, header, footer { position: relative; z-index: 2; }

/* ---------- progress bar ---------- */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--lime));
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
  transition: width 0.1s linear;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 9, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand-prompt { color: var(--accent); margin-right: 6px; }
.brand-dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}
.nav-link {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.25s ease;
  position: relative;
}
.nav-link .idx {
  color: var(--accent);
  font-size: 10px;
  margin-right: 5px;
  opacity: 0.85;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 70;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  cursor: pointer;
}
.btn-solid {
  background: var(--accent);
  color: #05130a;
  font-weight: 600;
  box-shadow: 0 0 0 rgba(74, 222, 128, 0);
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(74, 222, 128, 0.35);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(14, 21, 17, 0.5);
}
.btn-ghost:hover {
  border-color: var(--accent-line);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-big { padding: 15px 30px; font-size: 15px; }
.btn-cv { padding: 9px 18px; font-size: 13px; }

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

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) clamp(20px, 5vw, 64px) 60px;
}
.hero-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.kicker {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.2vw, 5.4rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.cursor-blink {
  color: var(--accent);
  font-weight: 400;
  animation: blink 1.1s steps(1) infinite;
  -webkit-text-fill-color: var(--accent);
}
@keyframes blink { 50% { opacity: 0; } }

.role-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  min-height: 30px;
  margin-bottom: 26px;
}
.role-prompt { color: var(--lime); }
#rotator { color: var(--accent); }
.caret {
  display: inline-block;
  width: 9px; height: 1.15em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

.lede {
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  margin-bottom: 34px;
}
.lede strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-socials { display: flex; gap: 12px; }
.social {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(14, 21, 17, 0.5);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.social svg { width: 19px; height: 19px; }
.social:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74, 222, 128, 0.18);
}

/* hero photo */

.hero-photo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.photo-frame {
  position: relative;
  width: min(100%, 400px);
  border-radius: 22px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(74, 222, 128, 0.35), rgba(74, 222, 128, 0.05) 40%, rgba(163, 230, 53, 0.25));
  box-shadow: var(--shadow), 0 0 80px rgba(74, 222, 128, 0.12);
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(74, 222, 128, 0.35), rgba(74, 222, 128, 0.05) 40%, rgba(163, 230, 53, 0.25));
  filter: blur(28px);
  opacity: 0.35;
  z-index: -1;
}
.photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  filter: saturate(0.96) contrast(1.02);
}
.corner {
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  opacity: 0.9;
}
.corner.tl { top: 20px; left: 20px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.corner.tr { top: 20px; right: 20px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 6px; }
.corner.bl { bottom: 20px; left: 20px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 6px; }
.corner.br { bottom: 20px; right: 20px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }

.chip {
  position: absolute;
  padding: 8px 13px;
  font-size: 11.5px;
  border-radius: 9px;
  background: rgba(7, 11, 9, 0.82);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  white-space: nowrap;
}
.chip-status {
  top: 22px; left: -14px;
  display: flex; align-items: center; gap: 8px;
  animation: float 5s ease-in-out infinite;
}
.chip .dot,
.footer-status .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--accent); }
  50% { opacity: 0.55; box-shadow: 0 0 12px var(--accent); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.photo-meta {
  display: flex;
  justify-content: space-between;
  width: min(100%, 400px);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.05em;
}

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: rgba(11, 17, 13, 0.6);
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--dim);
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

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

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(80px, 11vh, 130px) clamp(20px, 5vw, 64px) 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(40px, 6vh, 64px);
}
.sec-num { color: var(--accent); font-size: 14px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sec-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
  align-self: center;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 22px;
}
.about-lead em {
  font-style: normal;
  color: var(--accent);
}
.about-copy p { color: var(--muted); margin-bottom: 18px; }
.about-copy strong { color: var(--text); font-weight: 600; }
.about-copy a {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent-line);
  transition: border-color 0.2s ease;
}
.about-copy a:hover { border-bottom-style: solid; }

.fact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.fact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}
.fact-title {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
.fact-card dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.fact-card dl div:last-of-type { border-bottom: 0; }
.fact-card dt { color: var(--dim); font-family: var(--font-mono); font-size: 12.5px; padding-top: 2px; }
.fact-card dd { color: var(--text); }
.fact-foot {
  margin-top: 18px;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

/* ---------- timeline ---------- */

.timeline { position: relative; }
.t-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 26px;
  position: relative;
  padding-bottom: clamp(36px, 5vh, 52px);
}
.t-item:last-child { padding-bottom: 0; }
.t-rail { position: relative; }
.t-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 26px; bottom: -10px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--line-strong), var(--line));
}
.t-item:last-child .t-rail::before { display: none; }
.t-dot {
  position: absolute;
  top: 8px; left: 50%;
  width: 11px; height: 11px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 14px rgba(74, 222, 128, 0.5);
}

.t-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 27, 21, 0.75), rgba(14, 21, 17, 0.55));
  padding: clamp(22px, 3vw, 32px);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.t-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 40px rgba(74, 222, 128, 0.07);
}
.t-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.t-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.t-at { color: var(--accent); font-weight: 500; }
.t-date {
  font-size: 12px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.t-sub {
  font-size: 12.5px;
  color: var(--dim);
  margin: 8px 0 16px;
  letter-spacing: 0.02em;
}
.t-list { display: grid; gap: 9px; margin-bottom: 18px; }
.t-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
}
.t-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  top: 3px;
}
.t-list strong { color: var(--text); font-weight: 600; }
.t-list a { color: var(--accent); border-bottom: 1px dashed var(--accent-line); }
.t-list a:hover { border-bottom-style: solid; }

/* ---------- chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(7, 11, 9, 0.5);
  padding: 5px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.chips span:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.chips-lg span { font-size: 13px; padding: 8px 16px; }

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

.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.proj-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 27, 21, 0.7), rgba(14, 21, 17, 0.45));
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proj-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(74, 222, 128, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.proj-card:hover::after { opacity: 1; }
.proj-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 50px rgba(74, 222, 128, 0.08);
}
.proj-featured {
  grid-column: 1 / -1;
  background:
    radial-gradient(900px circle at 85% -20%, rgba(74, 222, 128, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(18, 27, 21, 0.9), rgba(14, 21, 17, 0.6));
}
.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.proj-num {
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.1em;
}
.proj-tag-pill {
  font-size: 11px;
  color: var(--lime);
  border: 1px solid rgba(163, 230, 53, 0.35);
  background: rgba(163, 230, 53, 0.08);
  border-radius: 999px;
  padding: 4px 12px;
  letter-spacing: 0.05em;
}
.proj-links { display: flex; gap: 14px; }
.proj-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.proj-live:hover {
  background: rgba(74, 222, 128, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.25);
}
.proj-live svg { width: 13px; height: 13px; }
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
.proj-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.proj-featured h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.proj-tag {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.proj-desc {
  color: var(--muted);
  font-size: 15px;
  max-width: 760px;
}
.proj-featured .proj-desc { font-size: 16px; }
.proj-card .chips { margin-top: auto; padding-top: 8px; }

.proj-more {
  border-style: dashed;
  border-color: var(--line-strong);
  background: rgba(11, 17, 13, 0.35);
  align-items: flex-start;
}
.proj-more:hover { border-style: solid; }
.proj-arrow {
  color: var(--accent);
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}
.proj-more:hover .proj-arrow { transform: translateX(6px); }

/* ---------- skills ---------- */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 27, 21, 0.7), rgba(14, 21, 17, 0.45));
  padding: 26px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.skill-card h3 {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 18px;
}

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

.contact { padding-bottom: clamp(80px, 11vh, 130px); }
.contact-box {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(700px circle at 50% -30%, rgba(74, 222, 128, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(18, 27, 21, 0.9), rgba(14, 21, 17, 0.6));
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-box::before, .contact-box::after {
  content: "";
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.8;
}
.contact-box::before { top: 18px; left: 18px; border-width: 2px 0 0 2px; border-top-left-radius: 8px; }
.contact-box::after { bottom: 18px; right: 18px; border-width: 0 2px 2px 0; border-bottom-right-radius: 8px; }
.contact-kicker {
  color: var(--accent);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 18px;
}
.contact-sub {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 36px;
}
.contact-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.contact-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.contact-socials a {
  color: var(--muted);
  transition: color 0.2s ease;
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
}
.contact-socials a:hover { color: var(--accent); }
.contact-socials .arrow { color: var(--accent); font-size: 11px; }
.contact-socials .sep { color: var(--dim); }

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

.footer {
  border-top: 1px solid var(--line);
  padding: 26px clamp(20px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(7, 11, 9, 0.8);
}
.footer .mono { font-size: 12.5px; color: var(--dim); letter-spacing: 0.03em; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; }

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

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* stagger for grids */
.proj-grid .reveal:nth-child(2), .skill-grid .reveal:nth-child(2), .t-item:nth-child(2) .t-card { transition-delay: 0.08s; }
.proj-grid .reveal:nth-child(3), .skill-grid .reveal:nth-child(3), .t-item:nth-child(3) .t-card { transition-delay: 0.16s; }
.proj-grid .reveal:nth-child(4), .skill-grid .reveal:nth-child(4), .t-item:nth-child(4) .t-card { transition-delay: 0.24s; }
.skill-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.skill-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

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

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-copy { order: 1; text-align: left; }
  .hero-photo { order: 0; }
  .photo-frame { width: min(70%, 320px); }
  .chip-status { left: -10px; font-size: 10.5px; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .fact-card { max-width: 560px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 9, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 60;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-link { font-size: 18px; }
  .nav-link .idx { font-size: 13px; }
  .btn-cv { font-size: 15px; }
  .burger { display: flex; }

  .proj-grid { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }

  .t-item { grid-template-columns: 18px 1fr; gap: 0 16px; }
  .t-dot { width: 9px; height: 9px; }

  .chip-status { left: 6px; }

  .photo-meta { display: none; }

  .hero-cta .btn { flex: 1; justify-content: center; }
  .contact-cta { flex-direction: column; align-items: stretch; }
  .contact-cta .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip-status, .cursor-blink, .caret, .pulse-dot, .chip .dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
