/* =========================================================
   Charlotte Delhanty Gonzalez — portfolio
   Plain CSS, no build step. Colours and sizes live in :root.
   ========================================================= */

/* Inter Tight, served from this site (SIL Open Font Licence, see fonts/OFL.txt) */
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #f6f4ef;          /* warm white page background */
  --ink: #121211;         /* near-black text */
  --muted: #6b6863;       /* grey secondary text */
  --line: #dedad2;        /* hairlines */
  --card: #ebe8e1;        /* project card background */
  --dark: #121211;        /* footer background */
  --on-dark: #f6f4ef;
  --on-dark-muted: #a39f98;

  --radius: 16px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 2vw, 24px);
  --space: clamp(96px, 12vw, 180px);
  --max: 1680px;

  --font: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Rolling text on hover (nav links, buttons) ---------- */
.roll { display: inline-flex; overflow: hidden; position: relative; vertical-align: top; }
.roll > span { display: block; transition: transform 0.45s var(--ease); }
.roll > span::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 100%;
}
a:hover .roll > span,
button:hover .roll > span,
a:focus-visible .roll > span { transform: translateY(-100%); }

/* ---------- Pill buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--card); color: var(--ink); font-size: 15px; white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.pill:hover { background: #e0dcd3; }
.pill--dark { background: var(--ink); color: var(--bg); }
.pill--dark:hover { background: #2a2a28; }
.pill svg { width: 14px; height: 14px; flex: none; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 10px var(--gutter) 0;
  pointer-events: none;
}
.bar {
  pointer-events: auto;
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 6px 6px 6px 16px;
  border-radius: var(--radius);
  background: rgba(236, 233, 226, 0.78);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transform: translateY(-120%);
  animation: bar-in 0.9s var(--ease) 0.2s forwards;
}
@keyframes bar-in { to { transform: none; } }

.bar__left { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.logo { font-size: 19px; font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; }
.logo sup { font-size: 0.5em; font-weight: 600; margin-left: 2px; letter-spacing: 0; }
.clock { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.bar__right { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px; font-size: 15px; border-radius: 999px;
}
.nav-link svg { width: 12px; height: 12px; transition: transform 0.4s var(--ease); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.bar .pill--dark { margin-left: 8px; }

.menu-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg); display: grid; place-items: center; margin-left: 4px;
  transition: background 0.3s var(--ease);
}
.menu-btn:hover { background: #fff; }
.menu-btn svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.menu-btn[aria-expanded="true"] svg { transform: rotate(45deg); }

/* Portfolio dropdown */
.dropdown {
  pointer-events: auto;
  position: absolute; top: 74px; right: var(--gutter);
  width: min(420px, calc(100vw - 2 * var(--gutter)));
  padding: 10px; border-radius: var(--radius);
  background: rgba(236, 233, 226, 0.92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px rgba(18, 18, 17, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
.dropdown__title {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--muted); padding: 6px 8px 10px;
}

/* Project buttons (used in the dropdown, the menu and the footer) */
.project-buttons { display: grid; gap: 6px; }
.project-btn {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px;
  min-height: 64px; padding: 6px 14px 6px 6px; border-radius: var(--radius-sm);
  background: var(--bg);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.project-btn:hover { background: #fff; }
.project-btn img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.project-btn__name { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.project-btn__type { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.project-btn svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.project-btn:hover svg { transform: translateX(3px); }
.project-btn[aria-current="page"] { outline: 1.5px solid var(--ink); outline-offset: -1.5px; }

/* Full menu (the + button) */
.menu {
  pointer-events: auto;
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 8px auto 0;
  border-radius: var(--radius);
  background: rgba(236, 233, 226, 0.95);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(18, 18, 17, 0.35);
}
.menu.is-open { grid-template-rows: 1fr; }
.menu__inner { overflow: hidden; }
.menu__grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px;
  padding: 28px 24px 24px;
  max-height: calc(100dvh - 100px); overflow-y: auto;
}
.menu__links li + li { border-top: 1px solid var(--line); }
.menu__links > li > a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.035em; line-height: 1.1;
}
.menu__links .num { font-size: 14px; color: var(--muted); letter-spacing: 0; }
.menu__portfolio { padding: 10px 0 16px; }
.menu__portfolio-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.035em; line-height: 1.1; padding-bottom: 12px;
}
.menu__portfolio .project-buttons { grid-template-columns: 1fr 1fr; }
.menu__side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.menu__contact li { padding: 4px 0; }
.menu__contact a { font-size: 20px; letter-spacing: -0.02em; }
.menu__contact .label { display: block; font-size: 13px; color: var(--muted); }
.menu__small { font-size: 14px; color: var(--muted); }

/* =========================================================
   Shared section bits
   ========================================================= */
.section { padding-top: var(--space); }
.label-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-size: 15px; margin-bottom: 28px;
}
.label-row .num { color: var(--muted); }
.statement {
  font-size: clamp(34px, 5vw, 72px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 500;
  max-width: 18ch;
}
.statement .muted { color: #8e8a84; }
.h-big { font-size: clamp(48px, 7.4vw, 112px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 500; }

/* Words that rise in when scrolled into view (see main.js) */
.js [data-words] .w { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.js [data-words].is-in .w { opacity: 1; transform: none; filter: none; }

/* Blocks that fade up when scrolled into view */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Letters that slide up on load */
.js [data-split] .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.js [data-split] .word { display: inline-block; white-space: nowrap; }
.js [data-split] .ch { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.js [data-split].is-in .ch { transform: none; }
.js .wordmark .mark.ch { display: inline-grid; }

/* Marquee strips */
.marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee var(--speed, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Home: hero
   ========================================================= */
.hero { padding-top: clamp(120px, 14vw, 170px); container-type: inline-size; }
.wordmark {
  font-size: clamp(56px, 21vw, 360px);
  font-size: min(23cqi, 400px); /* sized to the section width so the DG mark always fits */
  line-height: 0.86; letter-spacing: -0.045em; font-weight: 600;
  margin-left: -0.04em; white-space: nowrap;
}
.wordmark .mark {
  display: inline-grid; place-items: center; vertical-align: top;
  width: 1.9em; height: 1.9em; margin: 0.35em 0 0 0.25em;
  border: 0.2em solid currentColor; border-radius: 50%;
  font-size: 0.2em; line-height: 1; letter-spacing: -0.02em;
}
.wordmark .mark span { font-size: 0.72em; font-weight: 700; }

.hero__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: end;
  margin-top: clamp(28px, 4vw, 56px);
}
.hero__intro { display: flex; align-items: center; gap: 18px; }
.hero__avatar {
  width: clamp(84px, 9vw, 120px); aspect-ratio: 1; object-fit: cover; flex: none;
  border-radius: 20px;
}
.hero__intro p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.25; letter-spacing: -0.03em; color: var(--muted); }
.hero__intro p strong { display: block; color: var(--ink); font-weight: 500; }
.hero__aside { display: flex; align-items: center; justify-content: flex-end; gap: 28px; min-width: 0; }
.hero__aside .marquee { flex: 1; min-width: 0; max-width: 560px; --speed: 55s; }
.skill-chip { padding: 0 18px; font-size: 15px; color: var(--muted); white-space: nowrap; }
.skill-chip::before { content: "/"; margin-right: 18px; color: #b6b2ab; }
.hero__credit { text-align: right; font-size: 14px; line-height: 1.35; color: var(--muted); white-space: nowrap; }
.hero__credit strong { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }

.hero__media {
  position: relative; display: block; margin-top: 28px;
  border-radius: var(--radius); overflow: hidden;
  transform-origin: 50% 0;
  will-change: transform;
}
.hero__media img { width: 100%; height: auto; }
.media-tag {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: rgba(246, 244, 239, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 15px;
}
.media-tag .muted { font-size: 14px; }
.media-tag svg { width: 14px; height: 14px; }

/* =========================================================
   Home: about
   ========================================================= */
.about__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(48px, 6vw, 96px); align-items: start;
}
.about__photos { display: flex; gap: 10px; }
.about__photos figure { margin: 0; flex: var(--ar) 1 0; }
.about__photos img { width: 100%; border-radius: var(--radius); }
.about__text p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; letter-spacing: -0.02em; color: var(--muted); }
.about__text p + p { margin-top: 1.1em; }
.about__text p:first-child { color: var(--ink); }
.about__text .pill { margin-top: 32px; }

.facts { margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; --speed: 45s; }
.fact { padding: 0 28px; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.035em; white-space: nowrap; }
.fact::before { content: "/"; margin-right: 28px; color: #b6b2ab; }
.fact .muted { font-size: 0.7em; letter-spacing: -0.01em; margin-left: 8px; }

/* =========================================================
   Home: skills & experience (accordion like the template's Services)
   ========================================================= */
.skills__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.skills__head .num { color: var(--muted); font-size: 15px; }
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%; display: grid; grid-template-columns: 64px 1fr 44px; align-items: center; gap: 16px;
  padding: clamp(18px, 2.2vw, 28px) 0; text-align: left;
}
.acc__num { font-size: 15px; color: var(--muted); }
.acc__title { font-size: clamp(28px, 4vw, 56px); letter-spacing: -0.035em; line-height: 1.05; font-weight: 500; transition: transform 0.5s var(--ease); }
.acc__head:hover .acc__title { transform: translateX(8px); }
.acc__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--card); display: grid; place-items: center; transition: background 0.3s var(--ease), transform 0.5s var(--ease); }
.acc__icon svg { width: 16px; height: 16px; }
.acc__head[aria-expanded="true"] .acc__icon { transform: rotate(45deg); background: var(--ink); color: var(--bg); }
.acc__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.6s var(--ease); }
.js .acc__panel { grid-template-rows: 0fr; }
.js .acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__body { padding: 0 0 clamp(24px, 3vw, 40px) 80px; display: grid; gap: 20px; max-width: 1100px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 9px 16px; border-radius: 999px; background: var(--card); font-size: 15px; line-height: 1.2; }
.entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 40px; }
.entry h4 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.025em; font-weight: 600; }
.entry p { color: var(--muted); font-size: 16px; line-height: 1.5; }

/* =========================================================
   Selected work cards
   ========================================================= */
.work__head { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.work__head .num { align-self: start; color: var(--muted); font-size: 15px; padding-top: 10px; }
.work__head p { grid-column: 1 / -1; color: var(--muted); font-size: 18px; max-width: 36ch; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: block; padding: 6px 6px 14px; border-radius: calc(var(--radius) + 4px); background: var(--card); }
.card__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #dcd8cf; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 8px 2px; }
.card__name { font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.03em; }
.card__num { font-size: 14px; color: var(--muted); }
.card__type { padding: 0 8px; color: var(--muted); font-size: 15px; }
.card__cta { display: inline-flex; align-items: center; gap: 6px; margin: 10px 8px 0; font-size: 14px; }
.card__cta svg { width: 12px; height: 12px; transition: transform 0.4s var(--ease); }
.card:hover .card__cta svg { transform: translate(2px, -2px); }

/* =========================================================
   Project pages
   ========================================================= */
.project-hero { padding-top: clamp(120px, 13vw, 170px); }
.project-title { font-size: clamp(52px, 10.5vw, 200px); line-height: 0.9; letter-spacing: -0.05em; font-weight: 500; margin-left: -0.04em; }
.project-lede { margin-top: 20px; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -0.03em; line-height: 1.3; color: var(--muted); max-width: 30ch; }
.project-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: clamp(40px, 6vw, 88px); font-size: 16px;
}
.project-meta .sep { color: #b6b2ab; }
.project-meta .pill { margin-left: auto; }
.project-cover { margin: 20px 0 0; border-radius: var(--radius); overflow: hidden; transform-origin: 50% 0; will-change: transform; }
.project-cover img { width: 100%; }

.story { padding-top: clamp(80px, 10vw, 150px); padding-bottom: clamp(40px, 5vw, 72px); }
.story h2 { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; max-width: 26ch; }
.story p { margin-top: 18px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; letter-spacing: -0.015em; color: var(--muted); max-width: 52ch; }

/* Gallery rows: images keep their own shape; a row's images share one height */
.gallery { display: grid; gap: 8px; }
.row { display: flex; gap: 8px; align-items: flex-start; }
.row figure { margin: 0; flex: var(--ar) 1 0; min-width: 0; border-radius: var(--radius); overflow: hidden; background: #e6e2da; }
.row img { width: 100%; height: auto; }
.row--narrow { max-width: 1000px; margin: 0 auto; width: 100%; }
.row--strip figure { border-radius: 18px; }

.more { padding-top: var(--space); }
.more__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }

/* =========================================================
   Footer / contact
   ========================================================= */
.footer {
  margin-top: var(--space);
  background: var(--dark); color: var(--on-dark);
  padding: clamp(56px, 7vw, 100px) 0 28px;
}
.footer__word {
  font-size: clamp(44px, 11.2vw, 190px); line-height: 0.92; letter-spacing: -0.045em; font-weight: 600;
  margin-left: -0.04em;
}
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: clamp(48px, 6vw, 96px); }
.footer__lead { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.035em; line-height: 1.2; color: var(--on-dark-muted); max-width: 22ch; }
.footer__lead strong { color: var(--on-dark); font-weight: 500; }
.contact-list { display: grid; gap: 18px; }
.contact-list .label { display: block; font-size: 13px; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.contact-list a {
  font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -0.04em; line-height: 1.15;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
  overflow-wrap: anywhere;
}
.contact-list a:hover { background-size: 100% 1px; }
.footer__links {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(56px, 7vw, 110px); padding-top: 24px; border-top: 1px solid #2c2c2a;
  font-size: 15px;
}
.footer__links h3 { font-size: 13px; color: var(--on-dark-muted); font-weight: 500; margin-bottom: 10px; }
.footer__links li { padding: 3px 0; }
.footer__links a:hover { color: #fff; }
.footer__small { color: var(--on-dark-muted); font-size: 14px; align-self: end; text-align: right; }

/* =========================================================
   Phones and tablets
   ========================================================= */
@media (max-width: 1000px) {
  .hero__row { grid-template-columns: 1fr; align-items: start; }
  .hero__aside { justify-content: space-between; }
  .about__grid { grid-template-columns: 1fr; }
  .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__small { text-align: left; }
}

@media (max-width: 820px) {
  .nav-link, .bar .pill--dark { display: none; }
  .dropdown { display: none; }
  .menu__grid { grid-template-columns: 1fr; gap: 28px; padding: 20px 16px 16px; }
  .menu__portfolio .project-buttons { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --space: 96px; }
  .clock { display: none; }
  .hero__aside { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero__aside .marquee { max-width: none; }
  .hero__credit { text-align: left; }
  .media-tag { left: 10px; bottom: 10px; min-height: 40px; padding: 0 14px; font-size: 14px; }
  .media-tag .muted { display: none; }
  .acc__head { grid-template-columns: 40px 1fr 44px; gap: 10px; }
  .acc__body { padding-left: 0; }
  .cards, .cards--three { grid-template-columns: 1fr; }
  .work__head { grid-template-columns: 1fr; }
  .work__head .num { display: none; }
  .row { flex-direction: column; }
  .row figure { flex: none; width: 100%; }
  .row--strip { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .row--strip figure { flex: 0 0 62%; scroll-snap-align: start; }
  .project-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .project-meta .sep { display: none; }
  .project-meta .pill { margin: 14px 0 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__photos { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .bar { transform: none; }
  .hero__media img, .project-cover img { transform: none !important; }
  .js [data-words] .w, .js [data-reveal], .js [data-split] .ch { opacity: 1; transform: none; filter: none; }
}
