/* Mukhammad Batoshev — portfolio
   Dark warm surface, serif display type, a single lime accent. Layout: one
   centred column (max 72rem), numbered sections, project cards that pair a
   real screenshot with the facts, and a page per project. */

:root {
  --bg: #0b0a09;
  --bg-raise: #12110f;
  --card: rgb(18 17 15 / .72);
  --ink: #f4f0e6;
  --muted: #a8a094;
  --dim: #6d655b;
  --line: rgb(244 240 230 / .10);
  --line-strong: rgb(244 240 230 / .16);
  --accent: #c9f24a;
  --accent-ink: #0b0a09;
  --accent-soft: rgb(201 242 74 / .12);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Geist", -apple-system, "Segoe UI", system-ui, Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(5rem, 11vw, 8rem);
  --radius: 22px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint grid and a lime glow behind the top of every page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 92% -8%, rgb(201 242 74 / .08), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, rgb(0 0 0 / .45) 40rem, rgb(0 0 0 / .18) 100%);
          mask-image: linear-gradient(to bottom, #000 0, rgb(0 0 0 / .45) 40rem, rgb(0 0 0 / .18) 100%);
  opacity: .55;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* --- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(11 10 9 / .72);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.logo {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.logo .stop { color: var(--accent); }
.logo:hover .stop { color: var(--ink); }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}

.nav { display: flex; gap: clamp(.9rem, 2.4vw, 2.1rem); }
.nav a {
  font-family: var(--f-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; box-shadow: none; }

@media (max-width: 860px) { .nav { display: none; } }

/* --- Buttons and chips ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #d6f86c; border-color: #d6f86c; }
.btn .arrow { font-family: var(--f-mono); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.chip {
  padding: .3rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: -0.01em;
  color: var(--muted);
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--team { color: var(--muted); }

/* --- Hero ------------------------------------------------------------------ */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); }

.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; margin-bottom: 2.2rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-raise);
  font-family: var(--f-mono);
  font-size: .78rem;
}
.hero__place { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); }

.hero h1 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(3.1rem, 1.2rem + 8.4vw, 8rem);
  line-height: .95;
  letter-spacing: -0.035em;
}
.hero h1 .second { color: var(--muted); }
.hero h1 .stop { color: var(--accent); }

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.4rem;
}
.hero__lead { max-width: 34rem; margin: 0; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); line-height: 1.55; color: var(--muted); }
.hero__lead strong { color: var(--ink); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.stat { padding: 1.5rem 1.6rem 1.6rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat__value { font-family: var(--f-display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; }
.stat__label { margin-top: .6rem; font-size: .875rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Running list of the stack under the hero. */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__track span {
  padding: 1rem 1.6rem;
  font-family: var(--f-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--dim);
  white-space: nowrap;
}
.ticker__track span::after { content: "/"; margin-left: 3.2rem; color: var(--line-strong); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- Sections ---------------------------------------------------------------- */
.section { padding: var(--section) 0 0; }
.section:last-of-type { padding-bottom: var(--section); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--dim);
}
.eyebrow .n { color: var(--accent); }
.eyebrow::after { content: ""; order: 1; flex: 1; height: 1px; background: var(--line); }
.eyebrow .label { order: 2; }

.section h2 {
  max-width: 46rem;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.section h2 .soft { color: var(--muted); }
.section__intro { max-width: 40rem; margin: 1.2rem 0 0; color: var(--muted); }

/* --- Project cards ------------------------------------------------------------ */
.projects { display: grid; gap: 1.5rem; margin-top: 3rem; }

.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.project:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.project:nth-child(even) .project__shot { order: 2; }

.project__shot {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #1a1916;
  aspect-ratio: 16 / 10;
}
.project__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s; }
.project:hover .project__shot img { transform: scale(1.02); }

.project__body { display: flex; flex-direction: column; padding: clamp(.4rem, 1.5vw, 1.2rem) clamp(.2rem, 1vw, .8rem); }
.project__top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.project__num { font-family: var(--f-mono); font-size: .75rem; color: var(--accent); }
.project h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); line-height: 1.1; letter-spacing: -0.02em; }
.project__role { margin: .55rem 0 0; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.project__desc { margin: 1.1rem 0 0; color: var(--muted); }
.project__facts { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 1.1rem 0 0; padding: 0; list-style: none; font-size: .875rem; }
.project__facts li { color: var(--ink); }
.project__facts li span { color: var(--dim); }
.project__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.6rem; }
.project__more { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }

@media (max-width: 860px) {
  .project { grid-template-columns: minmax(0, 1fr); }
  .project:nth-child(even) .project__shot { order: 0; }
  .project__foot { flex-direction: column; align-items: flex-start; }
}

/* Smaller rows for course work. */
.rows { margin-top: 2.6rem; border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.row:hover h3 { color: var(--accent); }
.row__when { font-family: var(--f-mono); font-size: .78rem; color: var(--dim); }
.row h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; transition: color .15s; }
.row p { margin: .35rem 0 0; color: var(--muted); }
.row__go { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 700px) { .row { grid-template-columns: minmax(0, 1fr); gap: .4rem; } }

/* --- Timelines (path and before software) ------------------------------------------ */
.timeline { margin: 3rem 0 0; padding: 0; list-style: none; }
.timeline > li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.timeline > li:last-child { border-bottom: 1px solid var(--line); }
.when { font-family: var(--f-mono); font-size: .8rem; color: var(--ink); }
.when small { display: block; margin-top: .2rem; font-size: .72rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.timeline h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.2; }
.timeline h3 .role { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.timeline p { max-width: 44rem; margin: .7rem 0 0; color: var(--muted); }
.timeline ul.points { max-width: 44rem; margin: .8rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.timeline ul.points li { margin: .25rem 0; }
.timeline ul.points li::marker { color: var(--accent); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 1rem; }
.tools .label { margin-right: .3rem; font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
@media (max-width: 700px) { .timeline > li { grid-template-columns: minmax(0, 1fr); gap: .8rem; } }

/* The "what operations taught me" box beside the timeline. */
.lessons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.lesson {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.lesson h4 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; }
.lesson p { margin: .6rem 0 0; font-size: .9375rem; color: var(--muted); }
.lesson .from { display: block; margin-top: 1rem; font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
@media (max-width: 860px) { .lessons { grid-template-columns: minmax(0, 1fr); } }

/* --- Toolkit ------------------------------------------------------------------ */
.toolkit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.kit { padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.kit h3 { margin: 0 0 1rem; font-family: var(--f-mono); font-size: .75rem; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.kit ul { margin: 0; padding: 0; list-style: none; }
.kit li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.kit li:first-child { border-top: none; padding-top: 0; }
.kit li span { font-family: var(--f-mono); font-size: .72rem; color: var(--dim); text-align: right; }
@media (max-width: 960px) { .toolkit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .toolkit { grid-template-columns: minmax(0, 1fr); } }

/* --- About ------------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); margin-top: 2.6rem; }
.about__text p { margin: 0 0 1.2rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.65; }
.about__text p.muted { font-size: 1rem; }
.quote { margin: 2rem 0 0; padding-left: 1.2rem; border-left: 2px solid var(--accent); font-family: var(--f-display); font-size: 1.3rem; line-height: 1.4; color: var(--muted); }
.facts h3 { margin: 0 0 .6rem; font-family: var(--f-mono); font-size: .72rem; font-weight: 400; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.facts ul { margin: 0 0 2rem; padding: 0; list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.facts li span { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); text-align: right; }
.facts li.stack { display: block; }
.facts li.stack strong { display: block; font-weight: 500; }
.facts li.stack small { display: block; margin-top: .15rem; color: var(--muted); font-size: .875rem; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }

/* --- Contact ------------------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; margin-top: 2.6rem; align-items: start; }
.contact__lead { margin: 0; font-size: 1.1rem; color: var(--muted); max-width: 30rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.links { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.links a, .links div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  text-decoration: none;
}
.links a:hover .v { color: var(--accent); }
.links .k { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.links .v { font-size: 1rem; transition: color .15s; word-break: break-word; text-align: right; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-top: 2rem; padding-bottom: 2.4rem; font-size: .875rem; color: var(--dim); }
.site-footer strong { color: var(--ink); font-weight: 500; }

/* --- Case-study pages ----------------------------------------------------------------- */
.case { padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--section); }
.back { display: inline-flex; gap: .5rem; font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--accent); }
.case__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin: 2.4rem 0 1.2rem; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.case h1 { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.8rem, 1.4rem + 5.4vw, 5.6rem); line-height: 1; letter-spacing: -0.035em; }
.case__tagline { max-width: 42rem; margin: 1.2rem 0 0; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); }
.case__meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.6rem; padding: 1.6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case__meta dt { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.case__meta dd { margin: .45rem 0 0; font-size: .9375rem; }
.case__meta a { text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.case__meta a:hover { color: var(--accent); }
@media (max-width: 860px) { .case__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.case__hero-shot { margin-top: 3rem; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #1a1916; }

.case__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); margin-top: 3.5rem; }
.case__main > p { margin: 0 0 1.2rem; font-size: 1.075rem; line-height: 1.7; }
.case__main h2 { margin: 2.6rem 0 1rem; font-family: var(--f-mono); font-size: .75rem; font-weight: 400; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.case__main h2:first-child { margin-top: 0; }
.case__main ul.points { margin: 0; padding: 0; list-style: none; }
.case__main ul.points li { position: relative; margin: 0 0 .8rem; padding-left: 1.3rem; color: var(--muted); }
.case__main ul.points li strong { color: var(--ink); font-weight: 500; }
.case__main ul.points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }

.callout { margin: 2rem 0 0; padding: 1.6rem 1.7rem; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.callout h2 { margin-top: 0 !important; }
.callout p { margin: 0; font-size: 1.05rem; }
.callout p + p { margin-top: .8rem; }
.callout--note p { color: var(--muted); font-size: .9375rem; }

.decisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.decision { padding: 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.decision h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; }
.decision p { margin: .55rem 0 0; font-size: .9375rem; color: var(--muted); }
@media (max-width: 700px) { .decisions { grid-template-columns: minmax(0, 1fr); } }

.case__side { position: sticky; top: 90px; align-self: start; }
.case__side h2 { margin: 0 0 .9rem; font-family: var(--f-mono); font-size: .72rem; font-weight: 400; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.case__side .chips { margin-bottom: 2rem; }
.numbers { margin: 0 0 2rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.numbers li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.numbers b { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1; }
.numbers span { color: var(--muted); font-size: .875rem; text-align: right; }
@media (max-width: 860px) { .case__grid { grid-template-columns: minmax(0, 1fr); } .case__side { position: static; } }

.gallery { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.gallery h2 { margin: 0 0 1.5rem; font-family: var(--f-mono); font-size: .75rem; font-weight: 400; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.shot { margin: 0; }
.shot a { display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #1a1916; }
.shot img { width: 100%; height: auto; transition: transform .4s; }
.shot a:hover img { transform: scale(1.015); }
.shot figcaption { margin-top: .7rem; font-size: .875rem; color: var(--muted); }
.shot figcaption b { color: var(--ink); font-weight: 500; }
.shot--wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .gallery__grid { grid-template-columns: minmax(0, 1fr); } }

.next { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 4rem; padding: 1.6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.next span { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.next strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.next:hover strong { color: var(--accent); }

/* Gentle entrance as sections scroll into view (skipped without JS). */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

button.chip { margin-left: .5rem; background: transparent; font: inherit; font-family: var(--f-mono); font-size: .7rem; cursor: pointer; vertical-align: middle; }
button.chip:hover { color: var(--ink); border-color: var(--muted); }

/* The whole card links to the case study; buttons inside sit above that link. */
.project__cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.project__actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.project__more { text-decoration: none; }
.project__more:hover { color: var(--accent); }
.btn--sm { padding: .55rem 1rem; font-size: .875rem; }
.hero__lead { max-width: 40rem; }

/* Contact: one column; the email address and profile links sit in a quiet line under the buttons. */
.contact { display: block; max-width: 44rem; }
.contact__more { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem; margin: 1.6rem 0 0; font-size: .9375rem; color: var(--muted); }
.contact__more a { color: var(--ink); text-decoration: none; }
.contact__more a:hover { color: var(--accent); }
.contact__email { display: inline-flex; align-items: center; color: var(--ink); }
