/* ============================================================================
   Abdoulfatah Abdillahi — portfolio
   Design system: bone & oxide. Technical-editorial.

   Type    Newsreader (display) / IBM Plex Sans (body) / IBM Plex Mono (data)
   Ground  warm off-white, paper grain, hairline rules
   Accent  oxide (burnt sienna) carries emphasis; culture (green) marks results
   ========================================================================= */

/* --- tokens -------------------------------------------------------------- */

:root {
  /* ground */
  --paper: #fbfaf7;
  --sand: #f3f1ec;
  --shell: #efece5;

  /* ink */
  --ink: #14110f;
  --ink-2: #4a453f;
  --ink-3: #5f584f;
  --ink-4: #726b62;

  /* line */
  --rule: #e4e0d8;
  --rule-strong: #d3cec3;

  /* accent */
  --oxide: #9c4a2f;
  --oxide-soft: rgba(156, 74, 47, 0.08);
  --oxide-line: rgba(156, 74, 47, 0.28);
  --culture: #3d6b5a;
  --culture-soft: rgba(61, 107, 90, 0.09);

  /* rhythm */
  --unit: 8px;
  --measure: 68ch;
  --gutter: clamp(24px, 6vw, 120px);
  --page-max: 1440px;

  /* type */
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* motion */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- reset --------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
}

p {
  margin: 0 0 1.15em;
}

ul {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--oxide);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection {
  background: var(--oxide-soft);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* --- paper grain ---------------------------------------------------------
   feTurbulence over the whole ground. Very low opacity: you should never
   consciously see it, only notice its absence. Pointer-events off so it
   never eats a click.
   ------------------------------------------------------------------------ */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* --- layout -------------------------------------------------------------- */

.shell {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* Asymmetric, left-weighted. Whitespace on the right is deliberate. */
.column {
  max-width: 58ch;
}

.column-wide {
  max-width: 78ch;
}

.section {
  padding: calc(var(--unit) * 14) 0;
  position: relative;
}

.section--sand {
  background: var(--sand);
}

.section--tight {
  padding: calc(var(--unit) * 9) 0;
}

/* Hairline that fades at both ends — reads drawn rather than printed. */
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--rule-strong) 18%, var(--rule-strong) 82%, transparent);
  opacity: 0.85;
}

/* --- section label (tape strip) ------------------------------------------
   Irregular border-radius + micro-rotation on the ::before. This is the
   move that makes a label read as marker or masking tape instead of a chip.
   ------------------------------------------------------------------------ */

.label {
  display: inline-block;
  position: relative;
  margin: 0 0 calc(var(--unit) * 3);
  padding: 4px 12px 4px 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--oxide);
}

.label::before {
  content: "";
  position: absolute;
  inset: -2px -8px -2px -4px;
  z-index: -1;
  background: linear-gradient(
    94deg,
    transparent 2%,
    rgba(156, 74, 47, 0.07) 5%,
    rgba(156, 74, 47, 0.09) 90%,
    rgba(156, 74, 47, 0.04) 95%,
    transparent 98%
  );
  border-radius: 2px 85% 3px 90% / 88% 3px 92% 4px;
  transform: rotate(-0.5deg);
}

.label-num {
  color: var(--ink-4);
  margin-right: 0.5em;
}

/* --- display type -------------------------------------------------------- */

.display {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 6.5vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0;
}

.display em,
.accent-word {
  font-style: italic;
  font-weight: 300;
  color: var(--oxide);
}

.section-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0 0 calc(var(--unit) * 5);
}

/* First word italic — quiet editorial signature, used on every section head. */
.section-title > .first {
  font-style: italic;
  font-weight: 350;
}

.lede {
  font-size: 19px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 56ch;
  margin-top: calc(var(--unit) * 4);
}

.display + .lede {
  margin-top: calc(var(--unit) * 4.5);
}

/* Marginalia: a short rule in the left margin beside the lead paragraph. */
.lede--marked {
  position: relative;
}

.lede--marked::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 0.72em;
  width: 24px;
  height: 1px;
  background: var(--ink-4);
}

@media (max-width: 900px) {
  .lede--marked::before {
    display: none;
  }
}

/* --- prose --------------------------------------------------------------- */

.prose {
  max-width: var(--measure);
  color: var(--ink-2);
}

.prose h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.016em;
  color: var(--ink);
  margin: calc(var(--unit) * 8) 0 calc(var(--unit) * 2.5);
}

.prose h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: calc(var(--unit) * 5) 0 calc(var(--unit) * 1.5);
}

.prose strong {
  font-weight: 600;
  color: var(--ink);
}

.prose em {
  font-style: italic;
}

.prose a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--oxide-line), var(--oxide-line));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease), color 0.3s var(--ease);
}

.prose a:hover {
  color: var(--oxide);
  background-size: 100% 2px;
}

/* Numbers belong in mono. This is the whole conceit of the type system. */
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.prose ul.list {
  list-style: none;
  margin: calc(var(--unit) * 2) 0 calc(var(--unit) * 3);
}

.prose ul.list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: calc(var(--unit) * 1.75);
}

.prose ul.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--oxide);
}

/* --- navigation ---------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.nav.is-stuck {
  border-bottom-color: var(--rule);
}

.nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: calc(var(--unit) * 2.75) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--unit);
}

.wordmark {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.012em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.wordmark::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--oxide);
  flex: none;
  transform: translateY(-1px);
}

.nav-menu {
  display: flex;
  align-items: baseline;
  gap: clamp(18px, 3vw, 44px);
  list-style: none;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 15px;
  letter-spacing: -0.004em;
  padding-bottom: 3px;
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}

.nav-link .n {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  margin-right: 6px;
  vertical-align: 2px;
  letter-spacing: 0.04em;
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link:hover .n,
.nav-link.active .n {
  color: var(--oxide);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cv {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 7px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px 85% 3px 90% / 88% 3px 92% 4px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav-cv:hover {
  border-color: var(--oxide-line);
  color: var(--oxide);
  background: var(--oxide-soft);
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 28px;
  border: 0;
  background: none;
  padding: 6px 4px;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  height: 1px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: var(--gutter);
    padding-top: calc(var(--unit) * 2);
    padding-bottom: calc(var(--unit) * 3);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    font-size: 19px;
    font-family: var(--display);
  }

  .nav-toggle.open .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-cv {
    margin-left: auto;
    margin-right: 12px;
  }
}

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

.hero {
  padding: clamp(72px, 13vh, 150px) 0 calc(var(--unit) * 12);
}

.hero .display {
  max-width: 16ch;
}

.hero .lede {
  margin-top: calc(var(--unit) * 5);
}

/* Availability chip — same tape treatment, culture green instead of oxide. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: relative;
  margin-top: calc(var(--unit) * 4);
  padding: 7px 15px 7px 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.chip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--culture-soft);
  border-radius: 92% 8px 85% 11px / 9px 94% 8px 87%;
  transform: rotate(-0.6deg);
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--culture);
  flex: none;
  position: relative;
}

.chip .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--culture);
  opacity: 0.35;
  animation: pulse 2.8s var(--ease) infinite;
}

@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.45; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* --- evidence strip ------------------------------------------------------ */

.evidence {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 88px);
  padding: calc(var(--unit) * 5) 0;
}

.stat {
  min-width: 132px;
}

.stat-value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  display: block;
}

.stat-label {
  display: block;
  margin-top: 11px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-3);
  max-width: 19ch;
}

/* --- work list -----------------------------------------------------------
   An editorial list, not a card grid. Cards flatten hierarchy; rows let a
   shipped package and a class project sit at visibly different weights.
   ------------------------------------------------------------------------ */

.work-list {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.work-row {
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.work-link {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
  padding: calc(var(--unit) * 4) 0;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease);
}

.work-n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  transition: color 0.3s var(--ease);
}

.work-body {
  display: block;
  min-width: 0;
  transition: transform 0.38s var(--ease);
}

.work-title {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2.5vw, 31px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.016em;
  margin-bottom: 9px;
}

.work-outcome {
  display: block;
  max-width: 64ch;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
  letter-spacing: -0.005em;
}

.work-year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  white-space: nowrap;
}

/* Title shifts right, hairline draws in from the left. No lift, no shadow. */
.work-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--oxide);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.work-link:hover .work-body {
  transform: translateX(4px);
}

.work-link:hover .work-n {
  color: var(--oxide);
}

.work-link:hover ~ * ,
.work-row:has(.work-link:hover)::after {
  transform: scaleX(1);
}

@media (max-width: 640px) {
  .work-link {
    grid-template-columns: 36px 1fr;
  }

  .work-year {
    grid-column: 2;
    margin-top: 6px;
  }
}

/* --- entries (full project / research blocks) ---------------------------- */

.entry {
  padding: calc(var(--unit) * 7) 0;
  border-bottom: 1px solid var(--rule);
}

.entry:last-child {
  border-bottom: 0;
}

.entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: calc(var(--unit) * 2);
}

.entry-title {
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.018em;
}

.entry-title a {
  text-decoration: none;
  background-image: linear-gradient(var(--oxide-line), var(--oxide-line));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease);
}

.entry-title a:hover {
  background-size: 100% 1px;
}

.entry-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  margin-bottom: calc(var(--unit) * 2.5);
}

.entry-body {
  max-width: var(--measure);
  color: var(--ink-2);
}

.entry-body p {
  margin-bottom: 0.95em;
}

.entry-body strong {
  font-weight: 600;
  color: var(--ink);
}

/* Role / outcome callout — left rule, no box. */
.callout {
  border-left: 1px solid var(--oxide-line);
  padding: 4px 0 4px 18px;
  margin: calc(var(--unit) * 2.5) 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.callout strong {
  color: var(--ink);
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: calc(var(--unit) * 2.5);
  list-style: none;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  padding: 4px 9px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  white-space: nowrap;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: calc(var(--unit) * 3);
}

.link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--oxide);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.link:hover {
  color: var(--oxide);
}

.link:hover::after {
  transform: scaleX(1);
}

.link::before {
  content: "→";
  margin-right: 7px;
  color: var(--ink-4);
}

/* --- compact rows (secondary work, awards) ------------------------------- */

.compact {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.compact li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding: calc(var(--unit) * 2.5) 0;
  border-bottom: 1px solid var(--rule);
}

.compact-title {
  font-size: 16px;
  color: var(--ink);
}

.compact-title a {
  text-decoration: none;
  background-image: linear-gradient(var(--oxide-line), var(--oxide-line));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease);
}

.compact-title a:hover {
  background-size: 100% 1px;
}

.compact-note {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-3);
  max-width: 62ch;
}

.compact-aside {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-4);
  white-space: nowrap;
}

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

  .compact-aside {
    margin-top: 2px;
  }
}

/* --- figures ------------------------------------------------------------- */

.figure {
  margin: calc(var(--unit) * 5) 0;
}

.figure img {
  width: 100%;
  border: 1px solid var(--rule);
  background: #fff;
}

.figure figcaption,
.figcaption {
  margin-top: 11px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
  letter-spacing: 0.005em;
  max-width: 66ch;
}

/* Paired figures each keep their own caption — "(left)"/"(right)" is
   meaningless once they stack on a phone. */
.figure-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--unit) * 3);
  margin: calc(var(--unit) * 5) 0;
}

.figure-pair figure {
  margin: 0;
}

/* --- research: sticky table of contents ---------------------------------- */

.research-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 104px;
  list-style: none;
  border-left: 1px solid var(--rule);
  padding-left: 18px;
}

.toc li {
  margin-bottom: 11px;
}

.toc a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-4);
  transition: color 0.25s var(--ease);
  display: block;
  position: relative;
}

.toc a::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 50%;
  width: 1px;
  height: 0;
  background: var(--oxide);
  transition: height 0.3s var(--ease), top 0.3s var(--ease);
}

.toc a:hover {
  color: var(--ink-2);
}

.toc a.active {
  color: var(--oxide);
}

.toc a.active::before {
  height: 100%;
  top: 0;
}

@media (max-width: 960px) {
  .research-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }
}

/* --- result block (thesis headline numbers) ------------------------------ */

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: calc(var(--unit) * 4);
  padding: calc(var(--unit) * 4) 0;
  margin: calc(var(--unit) * 4) 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.result-value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--culture);
  display: block;
}

.result-label {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
}

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

.footer {
  border-top: 1px solid var(--rule);
  padding: calc(var(--unit) * 9) 0 calc(var(--unit) * 6);
  margin-top: calc(var(--unit) * 6);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.footer-call {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin-bottom: calc(var(--unit) * 3);
}

.footer-email {
  font-family: var(--mono);
  font-size: clamp(14px, 1.6vw, 17px);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
  display: inline-block;
  word-break: break-all;
}

.footer-email::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--oxide);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.footer-email:hover {
  color: var(--oxide);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--oxide);
}

.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: calc(var(--unit) * 8);
  padding-top: calc(var(--unit) * 3);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.03em;
}

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

/* --- entrance ------------------------------------------------------------ */

/* Only hide content when scripting is actually available to un-hide it.
   If JS is off or the query is unsupported, everything renders visible. */
@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
  }
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.in:nth-child(2) { transition-delay: 0.06s; }
.reveal.in:nth-child(3) { transition-delay: 0.12s; }
.reveal.in:nth-child(4) { transition-delay: 0.18s; }

/* --- print --------------------------------------------------------------- */

@media print {
  .nav,
  .footer-links,
  .skip-link,
  body::before {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .section {
    padding: 12pt 0;
    break-inside: avoid;
  }
}
