/* Layout, type scale and light palette follow khasiyev.com (measured at 1440px wide).
   General Sans for everything, Newsreader ExtraLight Italic for accent words. */
@font-face {
  font-family: "PP Editorial New";
  src: url("fonts/PPEditorialNew-Ultralight.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("fonts/PPEditorialNew-UltralightItalic.woff") format("woff");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

:root {
  --logo: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAADSCAYAAADwkv2oAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAylpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDEwLjAtYzAwMCA3OS5kMDRjYzE2OTgsIDIwMjUvMDcvMDItMTI6MTg6MTMgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCAyNy4zIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjhBNUUxOUMxRkR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GwIGo+baG5NfN+RqGwoGYfzsyO9maChGNYUKvPZ25VVvawICp/WMT5maOMQmFBzT4S7cMiNjcKHwmh5v9JfzPae9MrK3tYUK3mgRkXRfvwDOxhQbX/Yz6lPO9QWdnDgqj5WsBZbgljDwtqNiLz/Wgf2Kqs7GFBtaZlfhjOq1JYEHUfVD8vXFrjIyFE3U+waU4AfUBZ2cOCWr07c2Lm5Mx6xqGwoNb37dGZ08NxKoUFFb9fj8jMCA8wVVgQ9d5U7/BoL6nZyjgUFtRoWOaYzEnhuj8UFlHvo+C/mPlyZgPjQGFRo20yx0V7QH2EcaCwiArPBWwep3V8ZnJmiJGgsIgKH/3+6cxnw/EpFBZR57d9B2SOzUzx/kNhUaMPRXtc6vCyZwUKi6qMKwV1ZGZH40BhUZtNM4eV7BYOoKOwiPpORZiaOSSzu5JCYVHbe6Z5RNbHMgdntjQSFBY12STab/cOKOdKjTISFBa1GJPZJzMps29mWyNBYVGL5nq9PTN7ZyZGexqCu9GisIgaTt7cLrNrtMei9gq3bEFhUYEh5UZ3E6J91FVTUjuHC4tRWMTg35Kl2XPavvy6U/lot67RoLAYzGJqDoLvsNKv27nkBYXFYL0mm5Y7GKwq6xsRCouBMDyzcWbDUkoblnOcNi57SBuXvNOoQGGtiY9jUZ6BN2KlrFeOFY0o/8yY8nDPJmPLn48pz9EDFNZbdkVm8Sr++jqZd5UZjTQmUFhRyZ0vgejG/bQBFBaAwgIUFoDCAlBYgMICUFgACgtQWAAKC0BhAQoLQGEBKCxAYQEoLIA38F8BBgD2aK+Yi0/caQAAAABJRU5ErkJggg==");
  --bg: #f0f0f0;
  --text: #000;
  --muted: #696764;
  --surface: #dfdfdf;       /* buttons, image placeholders */
  --chip: #f7f7f7;
  --border: #dfdfdf;

  --sans: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "PP Editorial New", Georgia, serif;

  --gutter: 16px;
  --gap: 8px;
  --radius: 4.8px;

  --fs-xs: 12px;
  --fs-nav: 12.8px;
  --fs-s: 14px;
  --fs-m: 16px;
  --fs-statement: clamp(24px, 2.36vw, 40px);   /* 34px at 1440 */
  --fs-hero: clamp(40px, 5.5vw, 96px);         /* 79px at 1440 */
  --fs-cta: clamp(36px, 4.2vw, 72px);          /* 60px at 1440 */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-s);
  font-weight: 400;
  line-height: 1.4;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: var(--radius); }
.skip:focus { top: 8px; }

.muted { color: var(--muted); }
.label { font-size: var(--fs-xs); margin-bottom: 12px; }

/* Accent words: PP Editorial New Ultralight Italic, a touch larger as on the reference */
.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 200;
  font-size: 1.03em;
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 12px var(--gutter) 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: var(--fs-nav);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.brand { display: inline-flex; align-items: center; gap: 14px; justify-self: start; }

/* Brand: on hover it becomes a selected text layer, like a bounding box in Figma */
.bbox {
  --select: #0d99ff;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  display: inline-block;
  padding: 2px 6px;
  outline: 1px solid transparent;
  color: var(--text);
  transition: outline-color 0.25s var(--ease);
  /* same type as the nav: inherits the header's General Sans 12.8px Medium */
}
.bbox-text { white-space: pre; }
.brand-role { margin-left: 9px; color: var(--muted); }
.handle {
  position: absolute; width: 5px; height: 5px;
  background: #fff; border: 1px solid var(--select);
  transform: scale(0);                       /* scales in from each handle's own centre */
  transition: transform 0.3s var(--ease);
}
.handle.tl { left: -3px; top: -3px; }
.handle.tr { right: -3px; top: -3px; }
.handle.br { right: -3px; bottom: -3px; }
.handle.bl { left: -3px; bottom: -3px; }
.brand:hover .bbox,
.brand:focus-visible .bbox { outline-color: var(--select); }
.brand:hover .handle,
.brand:focus-visible .handle { transform: scale(1); }
.brand:focus-visible { outline: none; }
.nav { display: grid; grid-template-columns: repeat(4, 1fr); }
.nav a { color: var(--muted); padding: 4px 0; transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
/* Current page: a small square sits just left of the label without moving the text */
.nav a[aria-current="page"] { position: relative; justify-self: start; }
.nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -11px; top: 50%;
  width: 5px; height: 5px; background: currentColor; transform: translateY(-50%);
}


/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 6vw, 96px) var(--gutter) clamp(56px, 6vw, 96px); }
.hero-intro {
  margin-left: 50%;
  max-width: 290px;
  font-size: var(--fs-s);
  line-height: 1.4;
  margin-bottom: clamp(56px, 7vw, 110px);
}
.hero-title {
  /* Browsers can't do Illustrator-style optical kerning; this applies the font's own kerning and ligatures as fully as they allow */
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  font-size: var(--fs-hero);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-title .line { display: block; }

/* Hero images under the headline: two thirds + one third */
.feature {
  display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap);
  padding: 0 var(--gutter);
}
.feature > div { position: relative; height: 36.5vw; min-height: 260px; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.feature img, .feature video { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-video { position: relative; overflow: visible !important; }   /* lets the hint cursor start above the box */
/* Video and still sit in a clipped inner box so they can zoom slightly on hover */
.feature-media { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; }
.feature-media video { transform: scale(1); transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.feature-video:hover .feature-media video,
.feature-video:hover .feature-media .feature-poster { transform: scale(1.04); }

/* Hover hint: a Figma-style multiplayer cursor with a name tag */
.hint {
  position: absolute; left: 0; top: 0; z-index: 5;
  pointer-events: none; opacity: 0;
  --hint: #0d99ff;
}
.hint-arrow { display: block; overflow: visible; fill: var(--hint); stroke: #fff; stroke-width: 2.6; stroke-linejoin: miter; paint-order: stroke fill; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.2)); }
.hint-label {
  position: absolute; left: 13px; top: 17px;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--hint); color: #fff;
  font-size: 11.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.hint.is-gone { opacity: 0 !important; transition: opacity 0.25s; }

/* Left header box: work images crossfade, each zooming out as it arrives */
.feature-cycle img {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.12);
}
.feature-cycle img.is-on {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
  transition: opacity 0.8s ease, transform 3.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.feature-cycle img.is-prev { z-index: 1; }   /* outgoing image stays underneath while the next fades in */
.feature-poster {
  position: absolute; inset: 0;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* poster hides instantly when playback starts, but still zooms with the video */
.feature-video.is-playing .feature-poster { opacity: 0; transition: opacity 0s, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* ---------- Statements ---------- */
.statement {
  font-size: var(--fs-statement);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 15em;
}
.statement-center { margin: 0 auto; text-align: center; max-width: 14em; }

/* ---------- Client work list ---------- */
.client { padding: clamp(96px, 12vw, 180px) var(--gutter) 0; }
.statement-wrap { margin-left: 50%; margin-bottom: 40px; }   /* lines up with the list's second column */
.client-list { border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.client-list a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr; align-items: baseline;
  padding: 14px 8px;
  border-top: 1px solid var(--border);
  transition: color 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Black fill drops in from the top on hover and rolls back up on hover out */
.client-list a::before {
  content: ""; position: absolute; inset: -1px 0 0; z-index: -1;
  background: var(--text);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.client-list a:hover::before, .client-list a:focus-visible::before { transform: scaleY(1); }
.client-list a:hover, .client-list a:focus-visible { color: var(--bg); }
.client-title { font-size: var(--fs-m); font-weight: 500; letter-spacing: -0.01em; }
.client-meta { font-size: var(--fs-s); }

/* Floating project preview beside the cursor */
.list-preview {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: clamp(200px, 17vw, 280px); aspect-ratio: 3 / 2;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  pointer-events: none;
  opacity: 0; transition: opacity 0.3s ease;
}
.list-preview.is-visible { opacity: 1; }
.list-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.25s ease; }
.list-preview img.is-on { opacity: 1; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12.8px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: var(--fs-s);
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover { background: #d2d2d2; }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { background: #2a2a2a; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; }
.btn-row { display: flex; gap: var(--gap); }

/* ---------- All work grid: one image per project, all the same size ---------- */
.all-work { padding: clamp(96px, 12vw, 180px) var(--gutter) 0; }
.all-work .statement-center { margin-bottom: clamp(32px, 4vw, 56px); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px var(--gap); }
.work-grid a { display: block; }
.work-grid .media { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.work-grid a:hover img { transform: scale(1.03); }
.caption { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-xs); }
.chip {
  padding: 2.4px 6.4px; border-radius: 3.2px;
  background: var(--chip); color: var(--muted);
  border: 1px solid var(--border);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.01em;
}

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
  padding: clamp(96px, 12vw, 180px) var(--gutter) 0;
  align-items: start;
}
.about-text { padding-top: 0; }
.about-text .statement { max-width: 13em; margin-bottom: 24px; }
.about-body { max-width: 380px; color: var(--muted); margin-bottom: 32px; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.tile { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }   /* single landscape image across the about media area */
.tile-logo { background: #fff; }
.tile-logo img { object-fit: contain; padding: 24%; }
.tile figcaption {
  position: absolute; left: 12px; bottom: 12px;
  display: flex; flex-direction: column;
  font-size: var(--fs-xs); line-height: 1.2;
}
.tile figcaption span:last-child { color: var(--muted); }

/* ---------- Link columns ---------- */
.columns {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
  padding: clamp(96px, 10vw, 160px) var(--gutter) 0;
}
.col-title {
  font-size: var(--fs-statement); letter-spacing: -0.03em; line-height: 1.05;
  padding-bottom: 16px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.col li { padding: 5px 0; font-size: var(--fs-s); }
.col a { transition: color 0.2s; }
.col a:hover { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: clamp(80px, 9vw, 140px) var(--gutter) 16px; }
.footer-cta { display: block; }
.footer-tile { position: relative; aspect-ratio: 286 / 200; border-radius: var(--radius); overflow: hidden; background: #fff; }
.footer-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.footer-tile img.is-on { opacity: 1; }
.footer-title { font-size: var(--fs-cta); line-height: 1; letter-spacing: -0.03em; margin-bottom: 20px; }
.footer-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: var(--fs-nav); }
.footer-email { font-weight: 500; }
.footer-email:hover { color: var(--muted); }
.copyright { margin-top: 40px; font-size: 11px; text-align: right; }

/* ---------- Project page (follows khasiyev.com/work/obsn) ---------- */
.project {
  display: grid;
  /* thirds: details take one third, images take two thirds */
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--gap);
  align-items: start;
  padding: 24px var(--gutter) 0;
}
.project-aside { position: sticky; top: 72px; padding-right: calc(100% / 3); }   /* text fills the left two thirds of its column */   /* clears the sticky header */
.project-back { display: inline-block; font-size: var(--fs-xs); color: var(--muted); transition: color 0.2s; }
.project-back:hover { color: var(--text); }
.project-title { margin-top: 48px; font-size: 34px; font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
.project-desc {
  margin-top: 24px;
  font-family: var(--serif); font-style: normal; font-weight: 200;   /* PP Editorial New Ultralight, upright, as on the reference */
  font-size: 21.6px; line-height: 1.2; letter-spacing: -0.02em;   /* 10% smaller than the reference's 24px */
}
.project-meta { margin: 48px 0 0; display: flex; flex-direction: column; gap: 20px; }
.project-meta dt { font-size: var(--fs-xs); font-weight: 500; margin-bottom: 4px; }
.project-meta dd { margin: 0; font-size: var(--fs-s); color: var(--muted); line-height: 1.3; }
.project-media { display: flex; flex-direction: column; gap: var(--gap); }
.project-media img, .project-media video { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--surface); }
.project-media video.is-portrait { width: min(360px, 100%); }
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.media-crop { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.media-crop video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0; }
.project-next {
  grid-column: 2;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 80px 0 0; font-size: var(--fs-xs);
}
.project-next a { font-size: var(--fs-m); color: var(--muted); transition: color 0.2s; }
.project-next a:hover { color: var(--text); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; gap: 32px; }
  .project-aside { position: static; padding-right: 0; max-width: 560px; }
  .project-next { grid-column: 1; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .columns { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .site-header { grid-template-columns: auto 1fr; gap: 16px; }
  .brand .muted { display: none; }
  .nav { grid-template-columns: repeat(3, auto); justify-content: end; gap: 16px; }
  .hero { padding-top: 40px; }
  .hero-intro { margin-bottom: 48px; }
  .hero-intro { margin-left: 0; }
  .feature { grid-template-columns: 1fr; }
  .feature > div { height: 64vw; min-height: 0; }
  .statement-wrap { margin-left: 0; }
  .client-list a { grid-template-columns: 1fr; row-gap: 2px; }
  .feature-video { overflow: hidden !important; }
  .columns { grid-template-columns: 1fr; }
  .footer-cta { grid-template-columns: 1fr; }
  .footer-tile { max-width: 160px; }
  .project-meta { margin-top: 32px; }
  .work-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .work-grid img, .bbox, .handle, .feature-poster, .feature-cycle img, .feature-media video { transition: none !important; transform: none !important; }
  [data-blur] { filter: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Headings and the hero intro blur in as a whole when they scroll into view ---------- */
.js [data-blur] {
  filter: blur(10px);
  opacity: 0;
  transform: translateY(0.3em);
  transition: filter 1.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 1.3s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js [data-blur].is-in { filter: blur(0); opacity: 1; transform: none; }

/* Very narrow phones: keep the header on one line */
@media (max-width: 360px) { .brand-role { display: none; } }

/* Section headings in Client work, All work and About: 20% larger than the base statement size */
#client-title, #all-title, #about-title { font-size: calc(var(--fs-statement) * 1.2); }

/* Work page: the grid on its own, starting closer to the top */
.all-work-page { padding-top: clamp(48px, 6vw, 96px); }

/* Homepage: button under the grid that opens the Work page */
.view-all { display: flex; justify-content: center; margin-top: clamp(32px, 3.5vw, 56px); }

/* ---------- About page (follows khasiyev.com/about) ---------- */
.about-page { padding: 24px var(--gutter) 0; }
.ab-hero {
  /* two halves like the homepage About section: text left, photo right */
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
  align-items: start;
  padding-top: clamp(32px, 4vw, 64px);
}
.ab-title { font-size: var(--fs-hero); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.ab-role { margin-top: 8px; font-size: var(--fs-s); }
.ab-text { margin-top: clamp(32px, 3.5vw, 56px); max-width: 400px; font-size: var(--fs-s); color: var(--muted); line-height: 1.4; }
.ab-text p + p { margin-top: 1.4em; }
.ab-highlights { margin-top: 24px; max-width: 440px; font-size: var(--fs-s); color: var(--muted); line-height: 1.4; }
.ab-photo { margin: 0; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.ab-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Lists with a muted slash before each item */
.slash-list li { position: relative; padding-left: 14px; }
.slash-list li + li { margin-top: 6px; }
.slash-list li::before { content: "/"; position: absolute; left: 0; color: var(--muted); }

.ab-section {
  display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 241px); column-gap: 42px;
  margin-top: 96px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-s);
}
.ab-section + .ab-section { margin-top: 64px; }
.ab-section-title { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.ab-label { display: block; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 8px; }
.ab-col a:hover { color: var(--muted); }

@media (max-width: 1200px) {
  .ab-section { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 24px; column-gap: 24px; }
  .ab-section-title { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .ab-hero { grid-template-columns: 1fr; gap: 40px; }
  .ab-title { white-space: normal; }
}
@media (max-width: 640px) {
  .ab-section { grid-template-columns: 1fr 1fr; margin-top: 64px; }
}

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

/* Contact links: nudge right on hover, colour stays the same */
.col a.ext-link { display: inline-block; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.col a.ext-link:hover, .col a.ext-link:focus-visible { color: inherit; transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .col a.ext-link { transition: none; } }

#client-title, #all-title { max-width: none; }

/* Work / Services / Contact columns now live at the top of the shared footer */
.footer .columns { padding: 0; margin-bottom: clamp(64px, 7vw, 112px); }

/* Logo: inside the bounding box the pointer becomes the header's blue "Levi" cursor (main.js draws it) */
@media (hover: hover) and (pointer: fine) {
  .js .brand, .js .brand * { cursor: none; }
}
.hint.hint-cursor { position: fixed; z-index: 1000; opacity: 1; transition: none; }

/* ---------- Contact dropdown in the nav (follows the khasiyev.com contact panel) ---------- */
.nav-contact { position: relative; justify-self: start; }
.nav-contact-btn {
  position: relative; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: inherit; letter-spacing: inherit; color: var(--muted); transition: color 0.2s;
}
.nav-contact-btn:hover, .nav-contact-btn[aria-expanded="true"] { color: var(--text); }
.nav-contact-btn[aria-expanded="true"]::before {
  content: ""; position: absolute; left: -11px; top: 50%;
  width: 5px; height: 5px; background: currentColor; transform: translateY(-50%);
}
.contact-panel {
  position: absolute; top: calc(100% + 12px); right: -16px; z-index: 50;
  width: min(340px, calc(100vw - 32px));
  background: var(--bg); border: 1px solid var(--border);
  font-size: var(--fs-s); font-weight: 400; letter-spacing: -0.01em;
  opacity: 0; transition: opacity 0.25s ease;
}
.contact-panel.is-open { opacity: 1; }
.cp-row {
  position: relative; isolation: isolate;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 16px; border-top: 1px solid var(--border);
  color: var(--text);
  /* rows drift down into place as the panel opens */
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cp-row:first-child { border-top: 0; }
.contact-panel.is-open .cp-row { opacity: 1; transform: none; }
.contact-panel.is-open .cp-row:nth-child(2) { transition-delay: 0.05s, 0.05s, 0s; }
.contact-panel.is-open .cp-row:nth-child(3) { transition-delay: 0.1s, 0.1s, 0s; }
.cp-head { color: var(--muted); }
.cp-head strong { font-weight: 500; color: var(--text); }
.cp-label { font-weight: 500; }
.cp-value { color: var(--muted); transition: color 0.35s; overflow-wrap: anywhere; text-align: right; }
/* Email and X rows fill black from the top on hover, like the client work list */
a.cp-row::before {
  content: ""; position: absolute; inset: -1px 0 0; z-index: -1;
  background: var(--text); transform: scaleY(0); transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
a.cp-row:hover::before, a.cp-row:focus-visible::before { transform: scaleY(1); }
a.cp-row:hover, a.cp-row:focus-visible, a.cp-row:hover .cp-value, a.cp-row:focus-visible .cp-value { color: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  .contact-panel, .cp-row, a.cp-row::before { transition: none; }
}

/* The panel sits inside .nav, so restate row spacing and colour over the nav link styles */
.nav .contact-panel a.cp-row { padding: 14px 16px; color: var(--text); }
.nav .contact-panel a.cp-row:hover, .nav .contact-panel a.cp-row:focus-visible { color: var(--bg); }
