/* Vexon Systems — Kwame Mbugua portfolio, v4
   Plain CSS, mobile-first, light + dark. Monochrome: white / black / silver / grey.
   The only gradients are the metallic monogram and the placeholder art. No build step. */

:root {
  --bg: #ffffff;
  --panel: #f5f5f6;
  --frame: #fafafa;
  --ink: #0a0a0a;
  --ink-2: #474a4f;
  --ink-3: #686b71;
  --silver: #c4c7cc;
  --line: #e4e5e8;
  --line-2: #cfd1d5;
  --steel: #5b6470;                 /* focus rings only */
  --grain-alpha: 0.045;
  /* metal stops for the monogram */
  --m1: #c9c9c9; --m2: #8a8a8a; --m3: #262626; --mback: #a3a3a3;
  --metal: linear-gradient(160deg, #d9d9d9 0%, #a9a9a9 14%, #e2e2e2 26%, #858585 44%, #424242 60%, #868686 76%, #242424 100%);
  --metal-back: linear-gradient(160deg, #b9b9b9 0%, #929292 50%, #707070 100%);
  --mark-shadow: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.22));
  --frame-shadow: 0 40px 70px -50px rgba(0, 0, 0, 0.45);
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 16px;
  --max: 1200px;
  --bar: 60px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --panel: #121214;
    --frame: #151517;
    --ink: #f2f2f3;
    --ink-2: #b6b9be;
    --ink-3: #8f939a;
    --silver: #5d6168;
    --line: #26282c;
    --line-2: #3a3d43;
    --steel: #9aa3ae;
    --grain-alpha: 0.06;
    --m1: #f6f6f6; --m2: #a8a8a8; --m3: #4a4a4a; --mback: #6a6a6a;
    --metal: linear-gradient(160deg, #ffffff 0%, #cfcfcf 14%, #f4f4f4 26%, #9f9f9f 44%, #5a5a5a 60%, #a3a3a3 76%, #343434 100%);
    --metal-back: linear-gradient(160deg, #8a8a8a 0%, #626262 50%, #474747 100%);
    --mark-shadow: drop-shadow(0 30px 44px rgba(0, 0, 0, 0.75));
    --frame-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --panel: #121214;
  --frame: #151517;
  --ink: #f2f2f3;
  --ink-2: #b6b9be;
  --ink-3: #8f939a;
  --silver: #5d6168;
  --line: #26282c;
  --line-2: #3a3d43;
  --steel: #9aa3ae;
  --grain-alpha: 0.06;
  --m1: #f6f6f6; --m2: #a8a8a8; --m3: #4a4a4a; --mback: #6a6a6a;
  --metal: linear-gradient(160deg, #ffffff 0%, #cfcfcf 14%, #f4f4f4 26%, #9f9f9f 44%, #5a5a5a 60%, #a3a3a3 76%, #343434 100%);
  --metal-back: linear-gradient(160deg, #8a8a8a 0%, #626262 50%, #474747 100%);
  --mark-shadow: drop-shadow(0 30px 44px rgba(0, 0, 0, 0.75));
  --frame-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
/* Fixed grain, non-interactive. Pure noise. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: var(--grain-alpha);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
main, header, footer { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px;
  font-weight: 500; text-decoration: none; letter-spacing: -0.005em; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .35s var(--ease);
  will-change: transform;
}
.btn > span { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover { background: var(--panel); color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.btn.small { height: 36px; padding: 0 16px; font-size: 0.88rem; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: var(--bar); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; letter-spacing: -0.01em; min-width: 0; }
.brand .mark { flex: none; height: 26px; width: 26px; display: block; }
.brand .mark .m1 { stop-color: var(--m1); }
.brand .mark .m2 { stop-color: var(--m2); }
.brand .mark .m3 { stop-color: var(--m3); }
.brand .mark .back { stroke: var(--mback); }
.wordmark { font-size: 0.98rem; }
.nav { display: none; margin-left: auto; gap: 26px; }
.nav a {
  position: relative; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.theme {
  height: 36px; padding: 0 12px 0 10px; display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2);
  font: inherit; font-size: 0.8rem; cursor: pointer; transition: border-color .2s, color .2s;
}
.theme:hover { border-color: var(--ink); color: var(--ink); }
.theme .sw { width: 12px; height: 12px; border-radius: 50%; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.theme-label { display: none; }
/* scroll progress: a hairline that grows along the bottom edge of the bar */
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; pointer-events: none; }

@media (min-width: 720px) {
  .nav { display: flex; }
  .theme-label { display: inline; }
  .actions { margin-left: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { margin: 0 0 22px; }
.h1 {
  font-size: clamp(2.4rem, 9vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: initial;
}
.h1 .line { display: block; }
.h1 .line:nth-child(2) { color: var(--ink-2); }
.lede { max-width: 42ch; margin: 28px 0 0; color: var(--ink-2); font-size: 1.1rem; line-height: 1.5; text-wrap: pretty; }
.hero-mark { position: relative; width: 210px; height: 210px; justify-self: end; margin-top: 8px; will-change: transform; }
.hero-rule { margin-top: 48px; border-top: 1px solid var(--line); }

/* The monogram as an object: two masked layers. The mask is the mark geometry from brand/mark-05-vx.svg. */
.vx { position: relative; width: 100%; height: 100%; filter: var(--mark-shadow); }
.vx-back, .vx-front {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.vx-back {
  background: var(--metal-back);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='128' height='128' fill='%23fff'/%3E%3Cline x1='96' y1='22' x2='64' y2='106' stroke='%23000' stroke-width='24'/%3E%3C/mask%3E%3C/defs%3E%3Cline x1='56' y1='22' x2='104' y2='106' stroke='%23fff' stroke-width='14' mask='url(%23m)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='128' height='128' fill='%23fff'/%3E%3Cline x1='96' y1='22' x2='64' y2='106' stroke='%23000' stroke-width='24'/%3E%3C/mask%3E%3C/defs%3E%3Cline x1='56' y1='22' x2='104' y2='106' stroke='%23fff' stroke-width='14' mask='url(%23m)'/%3E%3C/svg%3E");
}
.vx-front {
  background: var(--metal);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cpolyline points='24,22 64,106 104,22' fill='none' stroke='%23fff' stroke-width='14' stroke-linejoin='miter' stroke-miterlimit='6'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cpolyline points='24,22 64,106 104,22' fill='none' stroke='%23fff' stroke-width='14' stroke-linejoin='miter' stroke-miterlimit='6'/%3E%3C/svg%3E");
}
/* brushed grain along the metal */
.vx-front::before, .vx-back::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 2px, rgba(0, 0, 0, 0.05) 2px 3px, transparent 3px 5px);
  mix-blend-mode: overlay; opacity: .7;
}
/* specular sweep: a soft highlight that travels across the V on a 7s loop */
.vx-front::after {
  content: ""; position: absolute; inset: -40%;
  background: linear-gradient(115deg,
    transparent 38%, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 56%,
    rgba(0, 0, 0, 0.18) 60%, transparent 66%);
  transform: translateX(-70%);
  animation: sweep 7s cubic-bezier(.55, .05, .45, .95) infinite;
}
@keyframes sweep {
  0% { transform: translateX(-70%); }
  60% { transform: translateX(70%); }
  100% { transform: translateX(70%); }
}

@media (min-width: 720px) {
  .hero { padding: 72px 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
  .hero-mark { width: 260px; height: 260px; margin-top: 0; }
  .h1 { font-size: clamp(3.4rem, 7.6vw, 6rem); }
}
@media (min-width: 1100px) {
  .hero { padding: 96px 0 64px; min-height: calc(100vh - var(--bar)); display: flex; flex-direction: column; justify-content: center; }
  .hero-grid { gap: 56px; }
  .hero-mark { width: 290px; height: 290px; }
  .h1 { font-size: clamp(3.4rem, 6.9vw, 5.5rem); }
  .hero-rule { margin-top: 72px; }
}

/* ---------- sections ---------- */
.section { padding: 72px 0 32px; }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); letter-spacing: -0.04em; line-height: 0.98; }
.idx { display: block; }
@media (min-width: 720px) {
  .section { padding: 104px 0 48px; }
  .section-head { grid-template-columns: 160px 1fr; gap: 0 48px; align-items: baseline; margin-bottom: 56px; }
}

/* ---------- work: editorial cases ---------- */
.cases { border-top: 1px solid var(--line); }
.case { border-bottom: 1px solid var(--line); padding: 44px 0 52px; }
.case-grid { display: grid; gap: 28px; }
.case-index { display: none; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; }
.meta .num { color: var(--ink); }
.case h3 { font-size: clamp(1.9rem, 6vw, 2.9rem); letter-spacing: -0.035em; line-height: 1.0; margin-bottom: 16px; }
.sum { color: var(--ink-2); font-size: 1.12rem; line-height: 1.45; margin: 0 0 26px; text-wrap: pretty; }
.pbr { display: grid; gap: 0; }
.pbr dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding-top: 12px; border-top: 1px solid var(--line); }
.pbr dd { color: var(--ink-2); font-size: 0.97rem; line-height: 1.6; padding: 4px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips li {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; line-height: 1.3;
}

/* figure: a browser frame with a hairline and a soft inner shadow */
.fig { margin: 0; }
.frame {
  position: relative; border: 1px solid var(--line-2); border-radius: 12px; background: var(--frame); overflow: hidden;
  box-shadow: var(--frame-shadow);
  transition: transform .6s var(--ease);
}
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.035), inset 0 -30px 50px -30px rgba(0, 0, 0, 0.12);
}
:root[data-theme="dark"] .frame::after { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 -30px 50px -30px rgba(0, 0, 0, 0.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .frame::after { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 -30px 50px -30px rgba(0, 0, 0, 0.6); } }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-2); display: block; }
.frame img, .frame .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; display: block; }
.fig figcaption { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: 12px 2px 0; }
.case:hover .frame { transform: translateY(-4px); }

/* designed placeholders: isometric hairline grid + a blurred abstract monochrome "screen" */
.ph { position: relative; overflow: hidden; background-color: var(--panel); }
.frame .ph { aspect-ratio: 4 / 3; }
.ph::before {
  content: ""; position: absolute; inset: 0; opacity: .9;
  background-image:
    repeating-linear-gradient(30deg, var(--line) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(150deg, var(--line) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 45px);
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
}
.ph-art { position: absolute; inset: 0; }
.ph-art b { position: absolute; display: block; border-radius: 10px; background: var(--silver); opacity: .55; filter: blur(16px); }
.ph-a b:nth-child(1) { left: 10%; top: 16%; width: 44%; height: 26%; }
.ph-a b:nth-child(2) { left: 58%; top: 14%; width: 30%; height: 60%; opacity: .32; }
.ph-a b:nth-child(3) { left: 12%; top: 52%; width: 36%; height: 30%; opacity: .4; background: var(--ink-3); }
.ph-b b:nth-child(1) { left: 8%; top: 18%; width: 60%; height: 10%; }
.ph-b b:nth-child(2) { left: 8%; top: 36%; width: 76%; height: 10%; opacity: .36; }
.ph-b b:nth-child(3) { left: 8%; top: 54%; width: 48%; height: 10%; opacity: .45; background: var(--ink-3); }
.ph-c b:nth-child(1) { left: 6%; top: 14%; width: 26%; height: 68%; }
.ph-c b:nth-child(2) { left: 38%; top: 14%; width: 26%; height: 48%; opacity: .36; }
.ph-c b:nth-child(3) { left: 70%; top: 14%; width: 24%; height: 32%; opacity: .45; background: var(--ink-3); }
.ph-label { position: absolute; left: 14px; bottom: 12px; font-size: 0.64rem; }

/* theme-paired screenshots */
.frame img.theme-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .frame img.theme-light { display: none; }
  :root:not([data-theme="light"]) .frame img.theme-dark { display: block; }
}
:root[data-theme="dark"] .frame img.theme-light { display: none; }
:root[data-theme="dark"] .frame img.theme-dark { display: block; }

@media (min-width: 900px) {
  .case { padding: 80px 0 88px; }
  .case-grid { grid-template-columns: 160px minmax(0, 6fr) minmax(0, 5fr); gap: 0 48px; align-items: start; }
  .case-index { display: grid; gap: 6px; position: sticky; top: calc(var(--bar) + 32px); align-self: start; }
  .case-index .num { font-size: 3rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--ink); margin-bottom: 8px; }
  .case-index .cat { color: var(--ink); }
  .case-index .when { font-size: 0.66rem; }
  .meta { display: none; }
  .case .fig { grid-column: 2; position: sticky; top: calc(var(--bar) + 32px); }
  .case .body { grid-column: 3; padding-top: 4px; }
  .case.flip .fig { grid-column: 3; }
  .case.flip .body { grid-column: 2; grid-row: 1; }
  .case.flip .case-index { grid-column: 1; grid-row: 1; }
  .case h3 { font-size: clamp(2rem, 3.2vw, 2.8rem); }
}
@media (min-width: 1100px) {
  .case-grid { gap: 0 64px; }
  .case .body { padding-right: 8px; }
}

/* ---------- stats: full-bleed band ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); margin-top: -1px; }
.statrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.statrow > div { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 26px 0 22px; border-bottom: 1px solid var(--line-2); min-width: 0; }
.statrow > div:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--line-2); }
.statrow > div:nth-child(even) { padding-left: 16px; }
.statrow > div:nth-last-child(-n+2) { border-bottom: 0; }
.statrow dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); line-height: 1.35; }
.statrow dd { font-family: var(--mono); font-weight: 500; font-size: clamp(2.6rem, 10vw, 5.4rem); line-height: 0.95; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--ink); }
@media (min-width: 720px) {
  .statrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .statrow > div { padding: 44px 24px 36px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
  .statrow > div:nth-child(3n) { border-right: 0; padding-right: 0; }
  .statrow > div:nth-child(3n+1) { padding-left: 0; }
  .statrow > div:nth-last-child(-n+3) { border-bottom: 0; }
  .statrow dt { white-space: nowrap; }
  .statrow dd { font-size: clamp(3.4rem, 6.4vw, 5.8rem); }
}

/* ---------- stack: typographic grid ---------- */
.stacklist > div { display: grid; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.stacklist > div:last-child { border-bottom: 1px solid var(--line); }
.stacklist dt { padding-top: 6px; }
.stacklist ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.stacklist li { position: relative; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); padding-bottom: 2px; cursor: default; }
.stacklist li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.stacklist li:hover::after { transform: scaleX(1); transform-origin: left; }
@media (min-width: 720px) {
  .stacklist > div { grid-template-columns: 160px 1fr; gap: 0 48px; padding: 28px 0; align-items: start; }
}

/* ---------- about: pull quote + narrow measure + portrait ---------- */
.about { display: grid; gap: 36px; }
.portrait { position: relative; width: 180px; }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; border-radius: 14px; filter: grayscale(1) contrast(1.05); }
.portrait::after { content: ""; position: absolute; inset: -10px; border: 1px solid var(--line-2); border-radius: 22px; pointer-events: none; }
.about-text { max-width: 60ch; }
.about-text .pull { font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.18; color: var(--ink); margin: 0 0 24px; text-wrap: pretty; }
.about-text p { color: var(--ink-2); margin: 0 0 16px; font-size: 1.02rem; line-height: 1.62; }
@media (min-width: 720px) {
  .about { grid-template-columns: 160px 1fr; gap: 0 48px; align-items: start; }
  .portrait { width: 160px; margin-top: 8px; }
  .about-text { grid-column: 2; }
}
@media (min-width: 1100px) {
  .about { grid-template-columns: 160px 220px minmax(0, 1fr); gap: 0 64px; }
  .about .portrait { grid-column: 2; width: 220px; position: sticky; top: calc(var(--bar) + 32px); }
  .about-text { grid-column: 3; max-width: 58ch; }
}

/* ---------- contact ---------- */
.contact { padding-bottom: 56px; }
.links > li { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.links > li:last-child { border-bottom: 1px solid var(--line); }
.links > li a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: clamp(1.15rem, 3.4vw, 1.9rem); font-weight: 500; letter-spacing: -0.025em; text-decoration: none; min-width: 0;
}
.links > li a > span { overflow-wrap: anywhere; }
.links > li a .arrow { position: relative; flex: none; width: 26px; height: 26px; display: block; }
.links > li a .arrow::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: currentColor; transform-origin: right; transform: scaleX(0); transition: transform .4s var(--ease); }
.links > li a .arrow::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translate(0, -50%) rotate(45deg); transition: transform .4s var(--ease); }
.links > li a:hover .arrow::before { transform: scaleX(1); transform-origin: left; }
.links > li a:hover .arrow::after { transform: translate(3px, -50%) rotate(45deg); }
.links > li a:hover { color: var(--ink); }
@media (min-width: 720px) {
  .links > li { grid-template-columns: 160px 1fr; gap: 0 48px; padding: 24px 0; }
}

/* ---------- footer ---------- */
.foot { padding: 28px 0 40px; color: var(--ink-3); font-size: 0.85rem; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- motion ---------- */
/* Reveal on scroll: only once JS has run (html.js), so no-JS visitors see everything. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .case:hover .frame { transform: none; }
  .vx-front::after { display: none; }
}
