/* ===================================================================
   Aaryan Ghimire — Portfolio

   Design: warm graphite background, single amber signal accent,
   IBM Plex Sans / IBM Plex Mono for a "systems" typographic identity.
=================================================================== */

:root {
  --bg: #14120F;
  --bg-raised: #1B1815;
  --line: #34302A;
  --line-soft: #26221D;

  --ink: #F3EFE6;
  --ink-dim: #B5AFA2;
  --ink-faint: #7C766A;

  --accent: #FF9F1C;
  --accent-dim: #B3711A;

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

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


/* ================================================================
   RESET
================================================================ */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: #14120F;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* ================================================================
   ACCESSIBILITY
================================================================ */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #14120F;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}


/* ================================================================
   GRAIN
================================================================ */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  mix-blend-mode: overlay;
}


/* ================================================================
   LAYOUT HELPERS
================================================================ */

section {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);

  max-width: var(--max);
  margin-inline: auto;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}


/* ================================================================
   REVEAL ON SCROLL
================================================================ */

[data-reveal] {
  opacity: 1;
}

.is-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);

  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.is-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================================
   HEADER
================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(20, 18, 15, 0.86);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  max-width: var(--max);
  margin-inline: auto;

  padding: 1.1rem var(--gutter);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.mark {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.mark-dot {
  color: var(--accent);
}

.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.2rem);
}

.nav-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;

  font-size: 0.92rem;
  color: var(--ink-dim);

  transition: color 0.25s var(--ease);

  position: relative;
  padding-bottom: 0.2rem;
}

.nav-list a::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05rem;

  height: 1px;
  background: var(--accent);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="true"] {
  color: var(--ink);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a[aria-current="true"]::after {
  transform: scaleX(1);
}

.idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-dim);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);

  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;
  background: var(--accent);

  box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.18);

  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

.nav-toggle {
  display: none;

  background: none;
  border: 1px solid var(--line);

  color: var(--ink);

  font-family: var(--font-mono);
  font-size: 0.8rem;

  padding: 0.45rem 0.8rem;

  cursor: pointer;
  border-radius: 2px;

  transition:
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 720px) {
  .header-status {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .primary-nav {
    flex: none;
  }

  .nav-list {
    position: fixed;

    inset: 0;
    top: 60px;

    background: var(--bg);

    flex-direction: column;

    padding: 2rem var(--gutter);
    gap: 1.4rem;

    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;

    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease);
  }

  .nav-list.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list a {
    font-size: 1.15rem;
  }
}


/* ================================================================
   HERO
================================================================ */

.hero {
  min-height: calc(100svh - 61px);

  display: flex;
  align-items: center;

  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);

  border-bottom: 1px solid var(--line-soft);

  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);

  background-size: 64px 64px;
  background-position: center top;
  background-color: var(--bg);

  -webkit-mask-image:
    radial-gradient(
      ellipse 90% 80% at 50% 40%,
      black 55%,
      transparent 100%
    );

  mask-image:
    radial-gradient(
      ellipse 90% 80% at 50% 40%,
      black 55%,
      transparent 100%
    );
}

.coord {
  position: absolute;

  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-faint);

  letter-spacing: 0.03em;
}

.coord-tl {
  top: 1.5rem;
  left: var(--gutter);
}

.coord-br {
  bottom: 1.5rem;
  right: var(--gutter);
}

.hero-inner {
  max-width: var(--max);
  margin-inline: auto;

  width: 100%;

  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;

  color: var(--accent);

  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.4rem, 7vw, 5.4rem);

  font-weight: 600;
  line-height: 1.04;

  letter-spacing: -0.02em;

  max-width: 16ch;
}

.hero-sub {
  margin-top: 1.75rem;

  max-width: 46ch;

  font-size: clamp(1rem, 1.4vw, 1.15rem);

  color: var(--ink-dim);
}

.hero-actions {
  margin-top: 2.5rem;

  display: flex;
  gap: 1rem;

  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.88rem;

  padding: 0.85rem 1.4rem;

  border-radius: 2px;
  border: 1px solid transparent;

  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);

  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: #14120F;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #ffb04d;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-diagram {
  position: absolute;

  right: clamp(0px, 4vw, 4rem);
  top: 50%;

  transform: translateY(-50%);

  width: min(34vw, 420px);

  opacity: 0.9;
  pointer-events: none;
}

.hero-visual {
  position: absolute;

  right: clamp(0px, 4vw, 4rem);
  top: 50%;

  transform: translateY(-50%);

  width: min(34vw, 420px);

  aspect-ratio: 1;
}

.hero-photo {
  position: absolute;

  z-index: 2;

  width: 46%;
  aspect-ratio: 1;

  left: 27%;
  top: 27%;

  overflow: hidden;

  border-radius: 50%;
  border: 2px solid var(--accent);

  box-shadow:
    0 0 0 8px rgba(255, 159, 28, 0.08),
    0 0 40px rgba(255, 159, 28, 0.12);
}

.hero-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.hero-visual .hero-diagram {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  transform: none;

  right: auto;
  top: auto;
}

.diagram-svg {
  width: 100%;
  height: auto;
}

.diagram-svg .ring circle {
  stroke: var(--line);
  stroke-width: 1;
}

.diagram-svg .node {
  fill: var(--ink-faint);
}

.diagram-svg .node-core {
  fill: var(--accent);
  r: 4;
}

.diagram-svg .edge {
  stroke: var(--line);
  stroke-width: 1;
}

@media (max-width: 980px) {
  .hero-visual {
    display: none;
  }
}

.scroll-cue {
  position: absolute;

  left: var(--gutter);
  bottom: 1.75rem;

  display: flex;
  align-items: center;
  gap: 0.6rem;

  background: none;
  border: none;

  color: var(--ink-faint);

  font-family: var(--font-mono);
  font-size: 0.72rem;

  cursor: pointer;
  z-index: 2;

  transition: color 0.25s var(--ease);
}

.scroll-cue:hover {
  color: var(--accent);
}

.scroll-line {
  width: 28px;
  height: 1px;

  background: var(--ink-faint);

  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";

  position: absolute;
  inset: 0;

  background: var(--accent);

  transform: translateX(-100%);

  animation: scrollcue 2.2s var(--ease) infinite;
}

@keyframes scrollcue {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 720px) {
  .scroll-cue {
    display: none;
  }
}


/* ================================================================
   ABOUT
================================================================ */

.about {
  border-bottom: 1px solid var(--line-soft);
}

.about-grid {
  max-width: var(--max);
  margin-inline: auto;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 3rem;
}

.about-lede {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);

  font-weight: 400;
  line-height: 1.4;

  letter-spacing: -0.005em;

  grid-column: 1 / 2;
}

.about-body {
  grid-column: 2 / 3;

  color: var(--ink-dim);
  font-size: 1rem;
}

.about-body p + p {
  margin-top: 1.1rem;
}

.about-facts {
  grid-column: 1 / 3;

  margin-top: 1rem;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  border-top: 1px solid var(--line);

  padding-top: 1.5rem;

  gap: 1.5rem;
}

.fact dt {
  font-family: var(--font-mono);

  font-size: 0.72rem;

  color: var(--ink-faint);

  margin-bottom: 0.4rem;
}

.fact dd {
  font-size: 0.98rem;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-lede,
  .about-body,
  .about-facts {
    grid-column: 1 / -1;
  }

  .about-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ================================================================
   WORK
================================================================ */

.work {
  border-bottom: 1px solid var(--line-soft);
}

.work .section-head,
.work > .project {
  max-width: var(--max);
  margin-inline: auto;
}

.project {
  margin-inline: auto;
  max-width: var(--max);
}

.project + .project {
  margin-top: 2.5rem;
}


/* ---------- featured project ---------- */

.project-featured {
  display: grid;

  grid-template-columns: 1.05fr 0.95fr;

  gap: 0;

  border: 1px solid var(--line);

  background: var(--bg-raised);
}

.project-media {
  padding: 2.5rem;

  border-right: 1px solid var(--line);

  display: flex;
  align-items: center;
}

.project-diagram {
  width: 100%;
  height: auto;
}

.pd-box {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.pd-core {
  fill: rgba(255, 159, 28, 0.08);

  stroke: var(--accent);
  stroke-width: 1.2;
}

.pd-line {
  stroke: var(--line);
  stroke-width: 1;
}

.pd-label {
  font-family: var(--font-mono);

  font-size: 12px;

  fill: var(--ink);
}

.pd-sublabel {
  font-family: var(--font-mono);

  font-size: 10px;

  fill: var(--ink-faint);
}

.project-info {
  padding: clamp(1.75rem, 3vw, 3rem);
}

.project-kicker {
  font-family: var(--font-mono);

  font-size: 0.78rem;

  color: var(--accent);

  margin-bottom: 0.6rem;
}

.project-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);

  font-weight: 600;

  letter-spacing: -0.01em;
}

.project-desc {
  margin-top: 1rem;

  color: var(--ink-dim);

  max-width: 52ch;
}

.project-role {
  margin-top: 1.5rem;

  display: flex;

  gap: 0.6rem;

  align-items: baseline;

  font-size: 0.92rem;
}

.project-role .label {
  color: var(--ink-faint);

  font-family: var(--font-mono);

  font-size: 0.75rem;
}

.project-role .value {
  color: var(--ink);
}

.project-stack,
.project-features {
  display: flex;

  flex-wrap: wrap;

  gap: 0.5rem;

  margin-top: 1.4rem;
}

.project-stack li {
  font-family: var(--font-mono);

  font-size: 0.75rem;

  border: 1px solid var(--line);

  padding: 0.3rem 0.6rem;

  color: var(--ink-dim);

  transition:
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.project-stack li:hover {
  border-color: var(--accent-dim);
  color: var(--ink);
}

.project-features {
  margin-top: 0.75rem;
}

.project-features li {
  font-size: 0.82rem;

  color: var(--ink-faint);
}

.project-features li::before {
  content: "— ";

  color: var(--accent-dim);
}


/* ---------- project links ---------- */

.project-links {
  display: flex;

  flex-wrap: wrap;

  gap: 1.5rem;
}

.project-link {
  display: inline-block;

  margin-top: 1.75rem;

  font-family: var(--font-mono);

  font-size: 0.85rem;

  color: var(--ink);

  border-bottom: 1px solid var(--line);

  padding-bottom: 0.15rem;

  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.project-link:hover {
  color: var(--accent);

  border-color: var(--accent);

  transform: translateY(-1px);
}


/* ---------- private / unavailable labels ---------- */

.project-private {
  display: inline-block;

  margin-top: 1.75rem;

  font-family: var(--font-mono);

  font-size: 0.75rem;

  color: var(--ink-faint);

  border: 1px solid var(--line);

  padding: 0.4rem 0.7rem;

  letter-spacing: 0.01em;
}

.project-private::before {
  content: "•";

  color: var(--accent-dim);

  margin-right: 0.5rem;
}


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

.project-secondary {
  display: grid;

  grid-template-columns: 1fr auto;

  align-items: center;

  border: 1px solid var(--line);

  gap: 1rem;

  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}

.project-secondary:hover {
  border-color: #484139;
  background: rgba(255, 159, 28, 0.015);
}

.project-secondary .project-info {
  padding: 2rem clamp(1.5rem, 3vw, 2.5rem);
}

.project-secondary .project-desc {
  max-width: 60ch;
}

.project-marker {
  padding-right: clamp(1.5rem, 3vw, 2.5rem);

  font-family: var(--font-mono);

  font-size: 3.5rem;

  color: var(--line);

  line-height: 1;
}


/* ---------- placeholder ---------- */

.project-placeholder {
  border: 1px dashed var(--line);

  padding: 2.5rem;

  display: flex;

  align-items: center;

  justify-content: center;

  min-height: 120px;
}

.placeholder-inner {
  text-align: center;
}

.placeholder-tag {
  display: inline-block;

  font-family: var(--font-mono);

  font-size: 0.72rem;

  color: var(--accent-dim);

  border: 1px solid var(--line);

  padding: 0.3rem 0.7rem;

  margin-bottom: 0.75rem;
}

.placeholder-text {
  color: var(--ink-faint);

  font-size: 0.95rem;
}


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

@media (max-width: 900px) {
  .project-featured {
    grid-template-columns: 1fr;
  }

  .project-media {
    border-right: none;

    border-bottom: 1px solid var(--line);
  }

  .project-secondary {
    grid-template-columns: 1fr;
  }

  .project-marker {
    display: none;
  }
}

@media (max-width: 560px) {
  .project-media {
    padding: 1.25rem;
  }

  .project-info {
    padding: 1.5rem;
  }

  .project-secondary .project-info {
    padding: 1.5rem;
  }

  .project-links {
    flex-direction: column;

    gap: 0;
  }
}


/* ================================================================
   STACK
================================================================ */

.stack {
  border-bottom: 1px solid var(--line-soft);
}

.stack-grid {
  max-width: var(--max);
  margin-inline: auto;

  display: grid;

  /* FOUR GROUPS = FOUR COLUMNS */
  grid-template-columns: repeat(4, 1fr);

  gap: 1px;

  background: var(--line);

  border: 1px solid var(--line);
}

.stack-group {
  background: var(--bg);

  padding: clamp(1.5rem, 3vw, 2.25rem);

  min-width: 0;
}

.stack-group-title {
  font-family: var(--font-mono);

  font-size: 0.78rem;

  color: var(--ink-faint);

  margin-bottom: 1.25rem;

  padding-bottom: 0.75rem;

  border-bottom: 1px solid var(--line);
}

.stack-list li {
  font-size: 1.05rem;

  padding: 0.5rem 0;

  transition:
    color 0.25s var(--ease),
    padding-left 0.25s var(--ease);
}

.stack-list li:hover {
  color: var(--accent);

  padding-left: 0.25rem;
}

.stack-list-exploring li {
  color: var(--ink-dim);
}

.stack-list-exploring li::after {
  content: "";

  display: inline-block;

  width: 4px;
  height: 4px;

  margin-left: 0.5rem;

  border-radius: 50%;

  background: var(--accent);

  vertical-align: middle;

  opacity: 0.7;
}

@media (max-width: 1000px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .stack-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   JOURNEY
================================================================ */

.journey {
  border-bottom: 1px solid var(--line-soft);
}

.journey-track {
  max-width: var(--max);
  margin-inline: auto;

  display: grid;

  /* FOUR STAGES = FOUR COLUMNS */
  grid-template-columns: repeat(4, 1fr);

  position: relative;
}

.journey-track::before {
  content: "";

  position: absolute;

  top: 0.45rem;

  left: 0;
  right: 0;

  height: 1px;

  background: var(--line);
}

.journey-stage {
  padding: 2rem 1.75rem 0 0;

  position: relative;
}

.journey-stage:not(:last-child) {
  margin-right: 1rem;
}

.journey-stage::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: var(--bg);

  border: 1.5px solid var(--line-soft);

  z-index: 2;
}

.journey-stage-current::before {
  background: var(--accent);

  border-color: var(--accent);

  box-shadow:
    0 0 0 4px rgba(255, 159, 28, 0.15);
}

.stage-tag {
  display: block;

  font-family: var(--font-mono);

  font-size: 0.72rem;

  color: var(--accent-dim);

  margin-bottom: 0.85rem;
}

.journey-stage-current .stage-tag {
  color: var(--accent);
}

.stage-title {
  font-size: 1.2rem;

  font-weight: 600;

  letter-spacing: -0.005em;
}

.stage-desc {
  margin-top: 0.6rem;

  color: var(--ink-dim);

  font-size: 0.95rem;

  max-width: 32ch;
}

@media (max-width: 1000px) {
  .journey-track {
    grid-template-columns: repeat(2, 1fr);

    row-gap: 3rem;
  }

  .journey-track::before {
    display: none;
  }

  .journey-stage {
    padding-top: 0;

    padding-left: 1.5rem;
  }

  .journey-stage:not(:last-child) {
    margin-right: 0;
  }
}

@media (max-width: 780px) {
  .journey-track {
    grid-template-columns: 1fr;

    gap: 2.5rem;
  }

  .journey-track::before {
    display: block;

    top: 0;
    bottom: 0;

    left: 0.45rem;
    right: auto;

    width: 1px;
    height: auto;
  }

  .journey-stage {
    padding: 0 0 0 1.75rem;
  }
}


/* ================================================================
   CONTACT
================================================================ */

.contact {
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.contact-inner {
  max-width: var(--max);

  margin-inline: auto;
}

.contact-lede {
  font-size: clamp(1.4rem, 3vw, 2.1rem);

  font-weight: 400;

  line-height: 1.4;

  max-width: 34ch;

  letter-spacing: -0.005em;
}

.contact-links {
  margin-top: 3rem;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  border-top: 1px solid var(--line);
}

.contact-link {
  display: flex;

  justify-content: space-between;

  align-items: baseline;

  gap: 1rem;

  padding: 1.25rem 0.25rem;

  border-bottom: 1px solid var(--line);

  transition:
    color 0.25s var(--ease),
    padding-left 0.25s var(--ease);
}

.contact-link:nth-child(odd) {
  border-right: 1px solid var(--line);

  padding-right: 1.5rem;
}

.contact-link:nth-child(even) {
  padding-left: 1.5rem;
}

.contact-link:not(.contact-link-static):hover {
  color: var(--accent);

  padding-left: 0.75rem;
}

.contact-label {
  font-family: var(--font-mono);

  font-size: 0.75rem;

  color: var(--ink-faint);

  flex-shrink: 0;
}

.contact-value {
  font-size: 0.95rem;

  text-align: right;

  overflow-wrap: anywhere;
}

.contact-link-static {
  cursor: default;
}

@media (max-width: 620px) {
  .contact-links {
    grid-template-columns: 1fr;
  }

  .contact-link:nth-child(odd) {
    border-right: none;

    padding-right: 0.25rem;
  }

  .contact-link:nth-child(even) {
    padding-left: 0.25rem;
  }

  .contact-link:not(.contact-link-static):hover {
    padding-left: 0.5rem;
  }
}


/* ================================================================
   FOOTER
================================================================ */

.site-footer {
  max-width: var(--max);

  margin-inline: auto;

  padding: 1.5rem var(--gutter) 2.5rem;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 1.5rem;

  font-family: var(--font-mono);

  font-size: 0.78rem;

  color: var(--ink-faint);
}

.footer-top {
  color: var(--ink-faint);

  transition: color 0.25s var(--ease);
}

.footer-top:hover {
  color: var(--accent);
}

@media (max-width: 560px) {
  .site-footer {
    align-items: flex-start;

    flex-direction: column;
  }
}