/* =============================================================
   tuhin mahmud — personal site
   dark · sans-only · no italics
   ============================================================= */

:root {
  --bg:         #0a0a0a;
  --bg-2:       #111110;
  --surface:    #161614;
  --surface-2:  #1d1c19;
  --line:       rgba(255, 255, 255, 0.09);
  --line-soft:  rgba(255, 255, 255, 0.045);
  --line-warm:  rgba(255, 107, 53, 0.22);
  --text:       #ededeb;
  --text-2:     #b4b1a9;
  --muted:      #6f6c66;
  --muted-2:    #4a4843;
  --accent:     #ff6b35;
  --accent-2:   #ffa477;
  --accent-soft: rgba(255, 107, 53, 0.14);

  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter:   clamp(20px, 5vw, 44px);
  --col-wide: 1080px;
  --col:      720px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-style: normal;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1, "cv11" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* hard kill any italic anywhere */
* { font-style: normal !important; }
em, i, cite, address, dfn, var { font-style: normal; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--bg); }

/* ============================================ background atmosphere */
.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(255, 107, 53, 0.10), transparent 60%),
    radial-gradient(1100px 700px at 95% 18%, rgba(74, 222, 128, 0.05), transparent 70%),
    radial-gradient(700px 500px at 50% 110%, rgba(255, 107, 53, 0.06), transparent 65%);
}
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.orbits {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.orbit {
  position: absolute;
  border: 1px solid var(--line-warm);
  border-radius: 50%;
  opacity: 0.5;
}
.orbit--1 {
  top: -25vw; right: -22vw;
  width: 72vw; height: 72vw;
  border-color: rgba(255, 107, 53, 0.10);
}
.orbit--2 {
  bottom: -40vw; left: -30vw;
  width: 90vw; height: 90vw;
  border-color: rgba(74, 222, 128, 0.05);
}

/* ============================================ topnav */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--gutter);
  font-family: var(--mono);
  font-size: 13px;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.6) 70%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.topnav.is-scrolled {
  background: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid var(--line-soft);
}

.topnav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.topnav__sub {
  color: var(--text-2);
  font-weight: 400;
}
.topnav__slash {
  color: var(--muted-2);
  margin: 0 1px;
}
.topnav__dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent), 0 0 2px var(--accent);
}

.topnav__links {
  display: flex;
  gap: 26px;
  justify-self: center;
}
.topnav__links a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--text-2);
  position: relative;
  transition: color 0.2s var(--ease);
}
.topnav__num {
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-feature-settings: "tnum" 1;
}
.topnav__links a:hover { color: var(--text); }
.topnav__links a:hover .topnav__num { color: var(--accent); }
.topnav__links a::after {
  content: "";
  position: absolute;
  left: 18px; right: 0; bottom: -5px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.topnav__links a:hover::after { transform: scaleX(1); }

.topnav__ping {
  justify-self: end;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topnav__ping-k {
  color: var(--muted);
  opacity: 0.6;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
#latency { color: var(--text-2); }

@media (max-width: 820px) {
  .topnav__links { gap: 18px; }
  .topnav__num { display: none; }
}
@media (max-width: 720px) {
  .topnav { grid-template-columns: auto 1fr; }
  .topnav__links { display: none; }
  .topnav__ping { font-size: 11.5px; }
}

/* ============================================ main layout */
main {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section {
  padding: 130px 0 60px;
}

/* ============================================ HERO */
.hero {
  min-height: 100vh;
  padding: 18vh 0 110px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero__below {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
  margin-top: 8px;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  width: fit-content;
  margin-bottom: 36px;
  align-self: start;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.hero__status:hover { border-color: rgba(255, 255, 255, 0.18); background: var(--surface-2); }
.hero__status a {
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero__status a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hero__status-sep { color: var(--muted-2); }
.hero__status-yr {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}

.hero__name {
  font-size: clamp(72px, 14vw, 188px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin: 0 0 12px;
}
.hero__name-l1, .hero__name-l2 { display: block; }
.hero__name-l1 {
  background: linear-gradient(180deg, #ffffff 0%, #d4d0c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__name-l2 {
  color: var(--text-2);
  font-weight: 300;
  letter-spacing: -0.045em;
  margin-left: clamp(24px, 6vw, 80px);
}
.hero__period {
  color: var(--accent);
}

.hero__pron {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 32px clamp(24px, 6vw, 80px);
  letter-spacing: 0.01em;
}
.hero__pron span { color: var(--muted-2); margin-right: 6px; }

.hero__bio {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
  color: var(--text-2);
  max-width: 38ch;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.012em;
}
.hero__bio a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero__bio a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* spec sheet card */
.hero__card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  padding: 18px 18px 14px;
  font-family: var(--mono);
  font-size: 12px;
  width: 280px;
  align-self: start;
  position: relative;
  backdrop-filter: blur(6px);
}
.hero__card::before {
  content: "";
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  pointer-events: none;
}
.hero__card-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line-soft);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9.5px;
}
.hero__card-id { color: var(--accent); }
.hero__specs {
  display: grid;
  gap: 8px;
  margin: 0;
}
.hero__specs > div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 6px;
  border-bottom: 1px dotted var(--line-soft);
}
.hero__specs > div:last-child { border-bottom: none; padding-bottom: 0; }
.hero__specs dt {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.hero__specs dd {
  color: var(--text);
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.005em;
}
.hero__local { color: var(--accent); }
#local-time {
  font-variant-numeric: tabular-nums;
}

/* scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 36px; left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 48px; height: 1px;
  background: linear-gradient(to right, var(--muted), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: -100%; top: 0; bottom: 0;
  width: 50%;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  animation: scrollCue 3s linear infinite;
}
@keyframes scrollCue {
  to { left: 200%; }
}

@media (max-width: 880px) {
  .hero__below { grid-template-columns: 1fr; gap: 32px; }
  .hero__card { width: 100%; max-width: 360px; }
  .hero { padding-bottom: 90px; }
}

/* ============================================ section heads */
.sect__head {
  margin-bottom: 56px;
}
.sect__head--inline {
  margin-bottom: 60px;
}
.sect__kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sect__head h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  max-width: 24ch;
  color: var(--text);
}
.h2-soft {
  font-weight: 300;
  color: var(--text-2);
  letter-spacing: -0.025em;
}

/* ============================================ ABOUT */
.about__pull {
  font-weight: 300 !important;
  font-size: clamp(28px, 3.6vw, 44px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  max-width: 28ch !important;
  color: var(--text) !important;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-areas:
    "text photo"
    "text now";
  gap: 32px 60px;
  align-items: start;
}
.about__text { grid-area: text; max-width: 60ch; }
.about__photo { grid-area: photo; margin: 0; }
.now { grid-area: now; }

.about__text p {
  margin: 0 0 1.2em;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
}
.about__text p:last-child { margin-bottom: 0; }

.about__text a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.about__text a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hl {
  color: var(--accent);
  font-weight: 500;
}

/* photo: subtle card, no rotation */
.about__photo {
  position: relative;
  padding: 12px 12px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 30px 40px -20px rgba(0, 0, 0, 0.6),
    0 4px 12px -4px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s var(--ease);
}
.about__photo:hover { transform: translateY(-3px); }
.about__photo-tape {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 18px;
  background: rgba(255, 215, 170, 0.18);
  border: 1px solid rgba(255, 215, 170, 0.12);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 32%;
  filter: grayscale(0.18) contrast(1.04) brightness(0.95);
  transition: filter 0.5s var(--ease);
}
.about__photo:hover img { filter: grayscale(0) contrast(1.04) brightness(1); }
.about__photo figcaption {
  margin-top: 12px;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.about__fig {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.14em;
}
.about__coord {
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

/* "Now" mini-block */
.now {
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  margin-top: 8px;
}
.now__k {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.now ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 8px;
}
.now li {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
}
.now__b { color: var(--accent); font-family: var(--mono); }

@media (max-width: 880px) {
  .about__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "text"
      "now";
  }
  .about__photo { max-width: 280px; }
  .about__pull { font-size: 26px !important; }
}

/* ============================================ WORK */
.tally {
  list-style: none;
  margin: -28px 0 56px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.04), rgba(255, 107, 53, 0) 50%),
    var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 18px 22px;
  font-family: var(--mono);
  font-size: 13px;
  width: fit-content;
}
.tally li {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.tally__n {
  color: var(--accent);
  font-size: 22px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.tally__l {
  color: var(--text-2);
  font-size: 12.5px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.tally__sep { color: var(--muted-2); }

/* timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.job {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
  position: relative;
}
.job:first-child { border-top: 1px solid var(--line); }
.job::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.35s var(--ease);
}
.job__years,
.job__body {
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.job:hover::before {
  transform: scaleY(1);
  opacity: 1;
}
.job:hover .job__years,
.job:hover .job__body {
  transform: translateX(14px);
}

.job__years {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.job--now .job__years {
  color: var(--accent);
}

.job__era {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 3px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.job--now .job__era {
  color: var(--accent);
  border-color: var(--line-warm);
  background: var(--accent-soft);
}

.job__body h3 {
  margin: 0 0 10px;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.3;
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  align-items: baseline;
}
.job__role { color: var(--text); }
.job__co {
  color: var(--text-2);
  font-weight: 400;
  font-size: 17px;
}
.job__co a {
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.job__co a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.job__body p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.62;
  max-width: 60ch;
}
.muted {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  display: block;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .job { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .job:hover .job__years,
  .job:hover .job__body { transform: translateX(8px); }
  .tally { font-size: 12px; padding: 14px 18px; gap: 12px 18px; }
  .tally__n { font-size: 18px; }
}

/* education subsection */
.education {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line-soft);
}
.education__kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.education__kicker::before {
  content: "+ ";
  color: var(--accent);
}
.education__note {
  font-size: 14.5px !important;
  color: var(--muted) !important;
  margin-top: 8px !important;
  font-weight: 400;
}
.timeline--compact .job { padding: 18px 0; }
.timeline--compact .job:first-child { border-top: none; }

/* ============================================ STACK */
.stack__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.stack__cell {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  transition: background 0.3s var(--ease);
}
.stack__cell:nth-child(odd) { padding-right: 36px; }
.stack__cell:nth-child(even) {
  padding-left: 36px;
  border-left: 1px solid var(--line-soft);
}
.stack__cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.stack__cell:hover {
  background: linear-gradient(180deg, rgba(255,107,53,0.025), transparent 60%);
}

.stack__k {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.stack__no {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stack__cell p {
  margin: 0 0 8px;
  font-size: 17.5px;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.stack__hint {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.005em;
  font-weight: 400;
}
.learning {
  color: var(--accent) !important;
}
.stack__cell--learn { position: relative; }
.stack__cell--learn::after {
  content: "wip";
  position: absolute;
  top: 28px; right: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--line-warm);
  border-radius: 999px;
  background: var(--accent-soft);
}

@media (max-width: 720px) {
  .stack__grid { grid-template-columns: 1fr; }
  .stack__cell:nth-child(odd) { padding-right: 0; }
  .stack__cell:nth-child(even) { padding-left: 0; border-left: none; }
  .stack__cell--learn::after { right: 0; }
}

/* ============================================ CONTACT */
.contact__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 44px;
}
.contact__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 54ch;
  margin: 0;
}

.contact__sla {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--mono);
}
.contact__sla-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--text-2);
  flex: none;
}
.contact__sla-k {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.contact__sla-v {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-top: 1px;
}

.contact__mail {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(28px, 4.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.028em;
  color: var(--text);
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
  flex-wrap: wrap;
}
.contact__mail-pre {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  align-self: center;
  padding-bottom: 4px;
}
.contact__mail-text { letter-spacing: -0.028em; }
.contact__mail:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  gap: 22px;
}
.contact__mail:hover .contact__mail-pre { color: var(--accent); }
.contact__mail-arrow {
  width: 0.5em; height: 0.5em;
  flex: none;
  transition: transform 0.3s var(--ease);
}
.contact__mail:hover .contact__mail-arrow { transform: translateX(6px); }

.contact__links {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  font-family: var(--mono);
  font-size: 13px;
  max-width: 720px;
}
.contact__links a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.contact__links a::before {
  content: "↗";
  color: var(--muted);
  margin-right: 2px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
  display: inline-block;
}
.contact__links a:hover { color: var(--accent); }
.contact__links a:hover::before { color: var(--accent); transform: translate(2px, -2px); }
.contact__tag {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.contact__sign {
  margin: 56px 0 0;
  font-size: 26px;
  font-weight: 300;
  color: var(--text-2);
  letter-spacing: -0.01em;
}
.contact__sign-mark {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
}

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

/* ============================================ footer */
.footer {
  margin-top: 110px;
  padding: 32px 0 40px;
  border-top: 1px dashed var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  align-items: flex-end;
}
.footer p { margin: 0; }
.footer__r {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__k {
  color: var(--muted-2);
  margin-right: 6px;
}
.footer__page {
  color: var(--accent);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

/* ============================================ reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__scroll-line::after { animation: none; }
  .job:hover .job__years,
  .job:hover .job__body { transform: none; }
}
