/* =========================================================
   Jacky Huang — personal site
   Editorial / field-notes system
   ========================================================= */

:root {
  --paper: #f3efe6;
  --paper-deep: #e9e2d4;
  --paper-soft: #f8f5ee;
  --ink: #18231d;
  --ink-soft: #38443c;
  --muted: #667067;
  --forest: #2e4637;
  --forest-deep: #1f3127;
  --moss: #7e9078;
  --amber: #c58a4a;
  --line: rgba(24, 35, 29, 0.16);
  --line-light: rgba(255, 253, 248, 0.2);
  --white: #fffdf8;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
}

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

.container {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--amber);
}

.eyebrow--light {
  color: rgba(255, 253, 248, 0.62);
}

.eyebrow--light::before {
  background: var(--amber);
}

/* ---------- header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  padding: 24px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 4px 0;
}

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

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 9px 16px !important;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 9px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

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

.hero {
  position: relative;
  padding: clamp(132px, 15vh, 178px) 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 10.5ch;
  margin: 22px 0 24px;
  font-family: var(--serif);
  font-size: clamp(50px, 7vw, 86px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--forest);
  font-style: italic;
  font-weight: 400;
}

.hero-lead {
  max-width: 53ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--forest);
  color: var(--white);
}

.button--primary:hover {
  background: var(--forest-deep);
}

.button--ghost {
  border-color: var(--line);
  background: transparent;
}

.button--ghost:hover {
  border-color: var(--forest);
}

.button__arrow {
  font-size: 15px;
  line-height: 1;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 38px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--amber);
}

.hero-media {
  position: relative;
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-deep);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.02);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(24, 35, 29, 0.34));
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-caption span:last-child {
  text-align: right;
  opacity: 0.7;
}

.hero-stamp {
  position: absolute;
  top: -26px;
  right: -26px;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--forest);
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  line-height: 1.25;
  text-align: center;
  transform: rotate(8deg);
}

.hero-stamp::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

/* ---------- proof strip ---------- */

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(32px, 6vh, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
}

.proof:last-child {
  border-right: 0;
}

.proof strong {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.proof span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* ---------- sections ---------- */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section--tight {
  padding-top: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-title {
  max-width: 15ch;
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.section-link {
  flex: 0 0 auto;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: border-color 0.25s var(--ease);
}

.section-link:hover {
  border-color: var(--forest);
}

/* ---------- work cards ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.project-card:hover {
  border-color: rgba(24, 35, 29, 0.3);
  transform: translateY(-3px);
}

.project-card--wide {
  grid-column: span 7;
}

.project-card--narrow {
  grid-column: span 5;
}

.project-card--third {
  grid-column: span 4;
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-deep);
}

.project-card--wide .project-card__media {
  aspect-ratio: 16 / 9;
}

.project-card--narrow .project-card__media {
  aspect-ratio: 4 / 3;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.project-card:hover .project-card__media img {
  transform: scale(1.035);
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.project-card__tags span + span::before {
  content: "·";
  margin-right: 7px;
  color: var(--amber);
}

.project-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 2.5vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.project-card__title span {
  margin-left: 0.16em;
  color: var(--muted);
  font-size: 0.62em;
  font-weight: 400;
  letter-spacing: 0;
}

.project-card__desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card__arrow {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.project-card:hover .project-card__arrow {
  transform: translate(2px, -2px);
}

/* text-only card */

.project-card--text {
  border-color: transparent;
  background:
    radial-gradient(circle at 82% 12%, rgba(197, 138, 74, 0.2), transparent 22%),
    linear-gradient(145deg, var(--forest), var(--forest-deep));
  color: var(--white);
}

.project-card--text::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 253, 248, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 253, 248, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}

.project-card--text .project-card__body {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 24px;
}

.project-card--text .project-card__tags,
.project-card--text .project-card__desc,
.project-card--text .project-card__meta {
  color: rgba(255, 253, 248, 0.65);
}

.project-card--text .project-card__title,
.project-card--text .project-card__arrow {
  color: var(--white);
}

.project-card__big-number {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(74px, 9vw, 112px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.78;
}

.project-card__big-label {
  margin: 14px 0 0;
  color: rgba(255, 253, 248, 0.62);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- approach ---------- */

.approach {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}

.approach::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.approach::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -20px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 253, 248, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.approach .container {
  position: relative;
  z-index: 1;
}

.approach h2 {
  max-width: 15ch;
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.8vw, 58px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.approach h2 em {
  color: var(--amber);
  font-style: italic;
}

.approach-intro {
  max-width: 57ch;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.7);
  font-size: 15px;
  line-height: 1.7;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: clamp(40px, 6vw, 64px);
}

.principle {
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}

.principle__num {
  color: var(--amber);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.principle h3 {
  margin: 14px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.principle p {
  margin: 0;
  color: rgba(255, 253, 248, 0.66);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- field notes ---------- */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.note {
  margin: 0;
}

.note img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-deep);
  filter: saturate(0.9);
  transition: filter 0.4s var(--ease), transform 0.6s var(--ease);
}

.note:hover img {
  filter: saturate(1);
  transform: scale(1.015);
}

.note figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.note figcaption span:last-child {
  color: var(--amber);
}

.notes-intro {
  max-width: 55ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- about preview ---------- */

.about-preview {
  padding-top: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 7vw, 80px);
  align-items: start;
}

.about-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.about-photo figcaption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  color: var(--white);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.about-copy h2 {
  max-width: 16ch;
  margin: 12px 0 20px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.about-copy p {
  max-width: 58ch;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.about-copy p:last-of-type {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

.contact {
  background: var(--paper-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}

.contact h2 {
  max-width: 13ch;
  margin: 14px 0 24px;
  font-family: var(--serif);
  font-size: clamp(40px, 5.8vw, 70px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.contact-email {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 29px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact-email:hover {
  color: var(--forest);
  border-color: var(--forest);
}

.contact-note {
  max-width: 35ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-links a span {
  color: var(--amber);
  font-size: 14px;
  transition: transform 0.25s var(--ease);
}

.contact-links a:hover span {
  transform: translate(2px, -2px);
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-inner a {
  border-bottom: 1px solid transparent;
}

.footer-inner a:hover {
  border-color: var(--muted);
}

/* ---------- work index ---------- */

.page-hero {
  padding: clamp(132px, 15vh, 178px) 0 44px;
}

.page-hero h1 {
  max-width: 15ch;
  margin: 18px 0 20px;
  font-family: var(--serif);
  font-size: clamp(48px, 6.5vw, 78px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.page-hero p {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}

.work-index {
  padding-bottom: clamp(72px, 10vw, 120px);
}

.work-index .project-card {
  min-height: 100%;
}

/* ---------- project pages ---------- */

.project-hero {
  padding: clamp(126px, 15vh, 170px) 0 36px;
}

.project-hero h1 {
  max-width: 12ch;
  margin: 18px 0 22px;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.project-hero h1 span {
  margin-left: 0.08em;
  color: var(--muted);
  font-size: 0.52em;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.project-dek {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 36px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-meta dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-meta dd {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.project-cover {
  position: relative;
  overflow: hidden;
  margin: 28px 0 8px;
  background: var(--paper-deep);
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-cover--wide {
  aspect-ratio: 16 / 9;
}

.project-cover--portrait {
  aspect-ratio: 4 / 3;
}

.project-cover--text {
  display: grid;
  place-items: center;
  min-height: 380px;
  padding: 48px;
  background:
    radial-gradient(circle at 76% 24%, rgba(197, 138, 74, 0.26), transparent 26%),
    linear-gradient(145deg, var(--forest), var(--forest-deep));
  color: var(--white);
  text-align: center;
}

.project-cover--text::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 253, 248, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 253, 248, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  pointer-events: none;
}

.project-cover--text div {
  position: relative;
  z-index: 1;
}

.project-cover--text .big {
  font-family: var(--serif);
  font-size: clamp(96px, 16vw, 180px);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.78;
}

.project-cover--text .small {
  margin-top: 18px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-cover--screen {
  aspect-ratio: 4 / 3;
}

.project-cover--screen img {
  object-position: top center;
}

.project-caption {
  margin: 0 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.project-wide-figure {
  margin: 24px 0 0;
}

.project-wide-figure img {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--white);
}

.project-wide-figure figcaption {
  padding-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.project-caption a {
  border-bottom: 1px solid var(--line);
}

.project-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(42px, 7vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.project-body + .project-body {
  border-top: 1px solid var(--line);
}

.project-body__label {
  position: sticky;
  top: 28px;
  align-self: start;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.project-body__content {
  max-width: 720px;
}

.project-body h2 {
  max-width: 18ch;
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.project-body p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.project-body p:last-child {
  margin-bottom: 0;
}

.project-body ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.project-body li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.project-body li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-number {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 0;
}

.project-gallery--three {
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
}

.project-gallery figure {
  margin: 0;
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-deep);
}

.project-gallery--three img {
  height: 100%;
}

.project-gallery figcaption {
  padding-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.browser-frame {
  padding: 7px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(24, 35, 29, 0.08);
}

.browser-frame__bar {
  display: flex;
  gap: 5px;
  padding: 2px 2px 8px;
}

.browser-frame__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.browser-frame img {
  width: 100%;
  display: block;
  border: 1px solid rgba(24, 35, 29, 0.06);
}

.project-quote {
  max-width: 24ch;
  margin: 24px 0;
  padding-left: 20px;
  border-left: 2px solid var(--amber);
  font-family: var(--serif);
  font-size: clamp(23px, 2.5vw, 30px);
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.project-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.project-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-next__label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-next a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.project-next a span {
  color: var(--amber);
  font-family: var(--sans);
  font-size: 18px;
}

/* ---------- about page ---------- */

.about-main {
  padding: clamp(64px, 9vw, 100px) 0;
}

.about-main-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 7vw, 80px);
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 28px;
  margin: 0;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-portrait figcaption {
  padding-top: 8px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-long h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.about-long p {
  max-width: 62ch;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin: 32px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact-value {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.about-recognition {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

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

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.value {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.value h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.value p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

/* ---------- reveal / motion ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid,
  .about-grid,
  .about-main-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-media {
    max-width: 620px;
  }

  .hero-photo {
    aspect-ratio: 16 / 11;
  }

  .hero-photo img {
    object-position: 50% 42%;
  }

  .hero-stamp {
    display: none;
  }

  .project-card--wide,
  .project-card--narrow {
    grid-column: span 6;
  }

  .project-card--third {
    grid-column: span 6;
  }

  .notes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .principle {
    display: grid;
    grid-template-columns: 50px 1fr;
    column-gap: 16px;
  }

  .principle__num {
    grid-row: span 2;
    padding-top: 5px;
  }

  .principle h3 {
    margin-top: 0;
  }

  .project-body {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 28px;
  }

  .about-portrait {
    position: static;
    max-width: 520px;
  }

  .values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 18px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding: 32px var(--pad);
    background: var(--paper);
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.03em;
    text-transform: none;
  }

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

  .nav a::after {
    display: none;
  }

  .nav-cta {
    padding: 0 !important;
    border: 0;
    border-radius: 0;
  }

  .nav.is-open + .menu-toggle,
  .menu-toggle[aria-expanded="true"] {
    position: relative;
    z-index: 30;
  }

  .hero {
    padding-top: 118px;
  }

  .hero h1,
  .page-hero h1,
  .project-hero h1,
  .section-title,
  .approach h2,
  .contact h2,
  .about-copy h2,
  .project-body h2 {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(46px, 13vw, 66px);
  }

  .hero-photo {
    aspect-ratio: 4 / 5;
  }

  .hero-stamp {
    width: 82px;
    height: 82px;
    font-size: 9px;
  }

  .proof-strip {
    grid-template-columns: 1fr 1fr;
  }

  .proof:nth-child(2) {
    border-right: 0;
  }

  .proof:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card--wide,
  .project-card--narrow,
  .project-card--third {
    grid-column: 1 / -1;
  }

  .project-card--wide .project-card__media,
  .project-card--narrow .project-card__media,
  .project-card--third .project-card__media {
    aspect-ratio: 16 / 10;
  }

  .project-card--text .project-card__body {
    min-height: 320px;
  }

  .notes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .note figcaption {
    display: block;
    font-size: 8px;
  }

  .note figcaption span:last-child {
    display: block;
    margin-top: 2px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
  }

  .page-hero,
  .project-hero {
    padding-top: 112px;
  }

  .project-meta {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .project-cover--wide {
    aspect-ratio: 4 / 3;
  }

  .project-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-body__label {
    position: static;
  }

  .project-gallery,
  .project-gallery--three {
    grid-template-columns: 1fr;
  }

  .project-gallery--three img {
    aspect-ratio: 4 / 3;
  }

  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat-strip > div:last-child {
    grid-column: span 2;
  }

  .project-next {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-next a {
    font-size: 28px;
  }

  .about-main-grid {
    gap: 28px;
  }

  .about-long p {
    font-size: 14px;
  }

  .fact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 460px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-meta {
    gap: 8px 14px;
  }

  .hero-meta span + span::before {
    display: none;
  }

  .hero-meta span {
    width: 100%;
  }

  .proof {
    display: block;
    padding: 14px 12px;
  }

  .proof span {
    display: block;
    margin-top: 5px;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .project-cover--text {
    min-height: 300px;
    padding: 28px;
  }

  .project-cover--text .big {
    font-size: 96px;
  }
}
