/* =============================================================
   Jee-Hyun NAM — Personal Site
   Self-hosted rebuild of the original Wix site (street-life theme)
   Design system + all components
   -------------------------------------------------------------
   Palette : charcoal ink, warm paper, muted mauve, refined teal
   Type    : Anton (display) + Noto Sans KR (body / Korean)
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* color */
  --paper:      #f6f4f1;   /* warm off-white background            */
  --paper-2:    #efeae4;   /* slightly deeper panel                */
  --ink:        #1c1a19;   /* primary text                        */
  --charcoal:   #2e2e2e;   /* dark sections (from original hero bg)*/
  --charcoal-2: #232323;
  --mauve:      #756464;   /* muted accent text (from original)   */
  --teal:       #4f9d92;   /* refined accent (from gallery icon)  */
  --teal-dark:  #3d867c;
  --teal-text:  #2f6a62;   /* AA-contrast teal for small text on light */
  --purple:     #9a6dae;   /* soft secondary (from home icon)     */
  --white:      #ffffff;
  --line:       rgba(28, 26, 25, .12);
  --line-soft:  rgba(28, 26, 25, .07);
  --shadow-sm:  0 2px 10px rgba(0,0,0,.06);
  --shadow-md:  0 12px 30px rgba(0,0,0,.10);
  --shadow-lg:  0 24px 60px rgba(0,0,0,.16);

  /* type */
  --font-display: "Anton", "Noto Sans KR", sans-serif;
  --font-body:    "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;

  /* rhythm */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 10vw, 130px);
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }

::selection { background: var(--teal); color: #fff; }

/* ---------- a11y utilities ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7em 1.1em; border-radius: 0 0 10px 0;
  font-weight: 600; font-size: .9rem;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--charcoal); color: #ece9e6; }
.section--dark .eyebrow { color: #b9a9a9; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mauve);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--teal);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .98;
  letter-spacing: .01em;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  text-transform: uppercase;
  margin-top: .35em;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: #4a4442; max-width: 62ch; }

/* inner-page intro header (clears the fixed header) */
.page-intro { padding-top: calc(76px + clamp(42px, 8vw, 96px)); padding-bottom: clamp(28px, 5vw, 56px); }
.page-intro .section-title { margin-top: .3em; }
.page-intro .lead { margin-top: 1.3rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dark); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid currentColor; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* =============================================================
   Header / navigation  (injected by main.js)
   ============================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  transition: color .35s var(--ease);
  white-space: nowrap;
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500;
  font-size: .58rem; letter-spacing: .32em; opacity: .8; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.3rem); }
.nav a {
  position: relative;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  color: #fff;
  opacity: .92;
  padding: .3em 0;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; }

/* solid state after scroll or on inner (non-hero) pages */
.site-header.is-solid {
  background: rgba(246, 244, 241, .9);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .brand,
.site-header.is-solid .nav a { color: var(--ink); }
.site-header.is-solid .nav-toggle span { background: var(--ink); }

/* mobile toggle */
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav-toggle span { background: #fff; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =============================================================
   Hero  (home)
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.05); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,18,17,.55) 0%, rgba(20,18,17,.30) 40%, rgba(20,18,17,.65) 100%);
}
.hero__inner { padding-block: 120px 90px; }
.hero__eyebrow { color: #d9cfcf; margin-bottom: 1.2rem; }
.hero__eyebrow::before { background: var(--teal); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .01em;
  font-size: clamp(3.4rem, 12vw, 9rem);
  text-shadow: 0 6px 40px rgba(0,0,0,.35);
}
.hero__rotator {
  margin-top: .6rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.5vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--teal);
  min-height: 1.2em;
  display: flex; align-items: baseline; gap: .35em; flex-wrap: wrap;
}
.hero__rotator .fixed { color: #fff; opacity: .85; }
.hero__word { position: relative; display: inline-block; }
.hero__word.swap { animation: wordSwap .5s var(--ease); }
@keyframes wordSwap {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero__desc { margin-top: 2rem; max-width: 46ch; color: #e7e0dd; font-size: 1.08rem; }
.hero__cta { margin-top: 2.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: #e7e0dd;
}
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(#fff, transparent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); transform-origin: top; opacity: .4;} 50% { transform: scaleY(1); opacity: 1; } }

/* =============================================================
   Home — quick links (teal / pink / purple icons)
   ============================================================= */
.quicklinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2rem); }
.qcard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.qcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.qcard__icon { width: 58px; height: 58px; color: var(--teal); }
.qcard__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.qcard__icon img { width: 100%; height: 100%; object-fit: contain; }
.qcard h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .02em; }
.qcard p { color: var(--mauve); font-size: .96rem; }
.qcard .link { margin-top: auto; color: var(--teal-text); font-weight: 600; font-size: .9rem; display: inline-flex; gap: .4em; align-items: center; }
.qcard:hover .link .arrow { transform: translateX(4px); }

/* section head block */
.section-head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* gallery preview strip on home */
.preview-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.preview-grid figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.preview-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.preview-grid figure:hover img { transform: scale(1.06); }
.preview-grid .g-tall { grid-column: span 6; aspect-ratio: 16/10; }
.preview-grid .g-wide { grid-column: span 6; aspect-ratio: 16/10; }

/* big CTA band "Who am I?" */
.cta-band { position: relative; text-align: center; }
.cta-band .huge {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  line-height: .92; font-size: clamp(3rem, 12vw, 8rem); letter-spacing: .01em;
}
.cta-band .sub { margin-top: 1rem; color: var(--mauve); letter-spacing: .24em; text-transform: uppercase; font-size: clamp(.9rem, 1.8vw, 1.2rem); }

/* =============================================================
   About
   ============================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.portrait {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/5; background: var(--charcoal); box-shadow: var(--shadow-md);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.03); }
.portrait__tag {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  color: #fff; font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.4rem; letter-spacing: .03em; text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.prose p { margin-bottom: 1.15em; color: #3f3a38; }
.prose p:last-child { margin-bottom: 0; }
.prose .signature { font-family: var(--font-display); text-transform: uppercase; font-size: 1.6rem; color: var(--ink); letter-spacing: .03em; }
.prose .smile { color: var(--teal); }

/* timeline: education / career */
.tl-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.tl h3 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: 1.7rem; letter-spacing: .03em; margin-bottom: 1.6rem;
  display: flex; align-items: center; gap: .6rem;
}
.tl h3::before { content: ""; width: 34px; height: 3px; background: var(--teal); }
.tl ol { position: relative; padding-left: 26px; }
.tl ol::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl li { position: relative; padding: 0 0 1.5rem; }
.tl li::before {
  content: ""; position: absolute; left: -26px; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--paper); border: 2.5px solid var(--teal);
}
.tl li:last-child { padding-bottom: 0; }
.tl .yr { display: block; font-weight: 700; font-size: .82rem; letter-spacing: .06em; color: var(--teal-text); margin-bottom: .2rem; }
.tl .role { font-weight: 600; }
.tl .org { color: var(--mauve); font-size: .95rem; }

/* facts row */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.fact { text-align: center; padding: 1.6rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.fact .num { font-family: var(--font-display); font-size: 2.6rem; color: var(--ink); line-height: 1; }
.fact .num.is-text { font-size: 1.7rem; letter-spacing: .02em; }
.fact .lbl { margin-top: .5rem; color: var(--mauve); font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; }

/* =============================================================
   Works
   ============================================================= */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
.work-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.work-card__media { aspect-ratio: 16/10; background: var(--charcoal); overflow: hidden; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: transform .6s var(--ease), filter .5s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.05); filter: grayscale(0%); }
.work-card__body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.tag { align-self: flex-start; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-text); font-weight: 700; }
.work-card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.45rem; letter-spacing: .02em; }
.work-card p { color: var(--mauve); font-size: .95rem; }
.placeholder-note {
  margin-top: 2.5rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--teal);
  background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0; font-size: .92rem; color: #5a5350;
}

/* =============================================================
   Pictures / gallery
   ============================================================= */
.page-banner {
  position: relative; min-height: 52vh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.page-banner__media { position: absolute; inset: 0; z-index: -2; }
.page-banner__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.04); }
.page-banner__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,17,.35), rgba(20,18,17,.72)); }
.page-banner__inner { padding-block: 130px 48px; }
.page-banner h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  line-height: .95; font-size: clamp(2.8rem, 9vw, 6rem); letter-spacing: .01em;
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.page-banner p { margin-top: .8rem; color: #e7e0dd; max-width: 52ch; }

.masonry { columns: 3 260px; column-gap: 16px; }
.masonry figure {
  break-inside: avoid; margin: 0 0 16px; position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--paper-2); cursor: zoom-in;
}
.masonry img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff;
  font-size: .85rem; letter-spacing: .04em; opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.masonry figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  place-items: center; padding: 4vw;
  background: rgba(15,13,12,.92); backdrop-filter: blur(6px);
}
.lightbox.open { display: grid; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: fixed; top: 22px; right: 26px; width: 48px; height: 48px; color: #fff; font-size: 2rem; line-height: 1; }
.lightbox__nav { position: fixed; top: 50%; translate: 0 -50%; width: 54px; height: 54px; color: #fff; font-size: 2.4rem; opacity: .8; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav.prev { left: 18px; }
.lightbox__nav.next { right: 18px; }

/* =============================================================
   Blog
   ============================================================= */
.blog-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.cat-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.chip {
  padding: .5em 1.1em; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: .86rem; font-weight: 500; color: #55504e;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { border-color: var(--teal); color: var(--teal-text); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.posts { display: grid; gap: 1.4rem; }
.post {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.post:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; color: var(--mauve); font-size: .82rem; margin-bottom: .8rem; }
.post__meta .tag { align-self: auto; }
.post__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.post h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: .02em; }
.post__excerpt { margin-top: .8rem; color: #4a4442; }
.post__full { margin-top: 1rem; color: #4a4442; display: none; }
.post__full.open { display: block; animation: wordSwap .4s var(--ease); }
.post__full ol, .post__full ul { padding-left: 1.3rem; margin: .6rem 0; }
.post__full li { list-style: decimal; margin-bottom: .3rem; }
.post__toggle { margin-top: 1.2rem; color: var(--teal-text); font-weight: 600; font-size: .9rem; display: inline-flex; gap: .4em; align-items: center; }
.post__toggle .arrow { transition: transform .25s var(--ease); }
.post__toggle[aria-expanded="true"] .arrow { transform: rotate(90deg); }

/* =============================================================
   Contact
   ============================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-info .row { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-info .row:first-of-type { border-top: 1px solid var(--line); }
.contact-info .k { min-width: 92px; color: var(--teal-text); font-weight: 700; letter-spacing: .06em; font-size: .78rem; text-transform: uppercase; padding-top: .2rem; }
.contact-info .v { color: #3f3a38; }
.contact-info .v a:hover { color: var(--teal); }
.contact-socials { display: flex; gap: .8rem; margin-top: 1.8rem; flex-wrap: wrap; }
.contact-socials a {
  display: inline-flex; align-items: center; gap: .5em; padding: .6em 1.1em;
  border: 1.5px solid var(--line); border-radius: 999px; font-size: .86rem; font-weight: 500;
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.contact-socials a:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

.form { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3.5vw, 2.6rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #55504e; margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; padding: .85em 1em; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(79,157,146,.14); }
.field textarea { resize: vertical; min-height: 140px; }
.form__note { margin-top: 1rem; font-size: .82rem; color: var(--mauve); }

/* =============================================================
   Footer
   ============================================================= */
.site-footer { background: var(--charcoal-2); color: #cfc9c6; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.footer-brand p { font-family: var(--font-body); font-size: .9rem; color: #a49d9a; margin-top: .6rem; max-width: 34ch; letter-spacing: 0; text-transform: none; }
.footer-col h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #8f8885; margin-bottom: 1rem; }
.footer-col a, .footer-col p { color: #cfc9c6; font-size: .92rem; display: block; padding: .25rem 0; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.8rem; font-size: .82rem; color: #8f8885; }
.footer-bottom .socials { display: flex; gap: 1.2rem; }
.footer-bottom .socials a:hover { color: var(--teal); }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--teal); }

/* =============================================================
   Scroll reveal
   ============================================================= */
/* Hidden only when JS is active (html.js). No-JS / JS-failure = fully visible. */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  /* mobile nav drawer */
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.4rem;
    padding: 4rem 2.4rem; background: var(--charcoal);
    transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease), visibility .4s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .nav { transform: translateX(0); visibility: visible; }
  .nav a { color: #fff !important; font-size: 1.3rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
  .nav::before {
    content: "MENU"; position: absolute; top: 26px; left: 2.4rem;
    font-size: .7rem; letter-spacing: .3em; color: #8f8885;
  }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; }

  .quicklinks { grid-template-columns: 1fr; }
  .tl-wrap { grid-template-columns: 1fr; }
  .preview-grid .g-tall, .preview-grid .g-wide { grid-column: span 12; }
  .masonry { columns: 2 160px; }
  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }

  /* touch targets: give stacked secondary links a >=44px hit area */
  .footer-col a, .footer-bottom .socials a, .contact-info .v a {
    min-height: 44px; display: inline-flex; align-items: center;
  }
}

@media (max-width: 420px) {
  .masonry { columns: 1; }
  .facts { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
}
