/* ==========================================================================
   JAMES ROGERS — SWISS GRID DESIGN SYSTEM (Option C Rebuild)
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;600;700;800;900&family=Inter:wght@300;400;500;600&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --bg:          #FAFAF8; /* default canvas */
  --bg-white:    #FFFFFF; /* pure white paper canvas */
  --bg-grey:     #F3F2EE; /* refined light-grey paper canvas */
  --ink:         #0C0C0B; /* deep black ink */
  --ink2:        #5A5A56; /* medium grey ink */
  --ink3:        #A5A5A0; /* light grey ink */
  --orange:      #E0521A; /* striking hot orange — used only on the last name accent */
  
  --rule:        2px solid var(--ink); /* Bold 2px delineation rules */
  --rule-light:  1px solid rgba(12,12,11,0.12);

  --f-condensed: 'Barlow Condensed', sans-serif;
  --f-mono:      'Space Mono', monospace;
  --f-body:      'Inter', sans-serif;

  /* Spacing & Grid */
  --grid-gap:    clamp(12px, 1.5vw, 24px);
  --page-pad:    clamp(20px, 4vw, 64px);
  
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --transition:  0.25s var(--ease);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg-white);
  overflow-x: hidden;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

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

/* ---------- Rule Utilities ---------- */
.rule {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.rule--light {
  background: rgba(12,12,11,0.12);
}

/* ---------- Solid Dots ---------- */
.dot {
  display: inline-block;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}
.dot--md { width: 40px; height: 40px; }

/* ---------- Giant Section Ghosts ---------- */
.section-ghost {
  position: absolute;
  font-family: var(--f-condensed);
  font-weight: 900;
  font-size: 15rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0.04;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ---------- Section Label / Subheader Bar ---------- */
.section-label-bar {
  padding: 8px var(--page-pad);
  background: transparent;
}

.section-label {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink2);
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink);
}

/* ---------- 1. NAVIGATION (STICKY) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  height: 44px;
  border-bottom: var(--rule);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--page-pad);
  gap: 24px;
}

.nav__brand {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink2);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__cta {
  text-align: right;
  justify-self: end;
}

.nav__cta a {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

/* ---------- 2. HERO ---------- */
.hero {
  height: calc(100svh - 44px);
  min-height: 480px;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow: hidden;
  background: var(--ink); /* deep backup color during loads */
}

/* Cinematic Video Background */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.02);
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 12, 11, 0.45) 0%,
    rgba(12, 12, 11, 0.1) 40%,
    rgba(12, 12, 11, 0.35) 75%,
    rgba(12, 12, 11, 0.7) 100%
  );
  z-index: 1;
}

.hero__eyebrow {
  position: relative;
  z-index: 2;
  padding-top: 28px;
  font-family: var(--f-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.55);
}

.hero__body {
  position: relative;
  z-index: 2;
  container-type: inline-size;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  padding-bottom: 2vh;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.hero__headline {
  font-family: var(--f-condensed);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--bg); /* white-ink on cinematic backdrop */
  white-space: nowrap;
  width: 100%;
  display: block;
  text-align: left;
}

.hero__headline .accent-line {
  color: var(--orange);
}

.hero__sub {
  font-family: var(--f-condensed);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 2.8vw);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg); /* white-ink on cinematic backdrop */
  max-width: 100%;
  margin-bottom: 12px;
}

.hero .btn-outline {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg); /* white button outline */
  border: 1px solid rgba(250, 250, 248, 0.5);
  padding: 12px 24px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  width: fit-content;
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

.hero .btn-outline:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

.hero__strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(250, 250, 248, 0.15);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 48px;
  background: rgba(12, 12, 11, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero__stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid rgba(250, 250, 248, 0.12);
  padding: 0 16px;
}

.hero__stat:last-child { border-right: none; }

.hero__stat-label {
  font-family: var(--f-mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.45);
}

.hero__stat-value {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--bg);
}

/* ---------- 3. STATEMENT ---------- */
.statement {
  padding: 80px var(--page-pad);
  border-top: var(--rule);
  border-bottom: var(--rule);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(32px, 4vw, 80px);
  align-items: center;
  background: var(--bg-grey);
}

.statement__icon {
  display: flex;
  align-items: flex-start;
}

.statement__text {
  font-family: var(--f-condensed);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  line-height: 1.2;
  color: var(--ink);
  max-width: 950px;
}

/* ---------- 4. GENERAL NOTES (ABOUT) ---------- */
.about-section {
  position: relative;
  padding: 80px 0;
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding: 40px var(--page-pad) 0;
  position: relative;
}

.about-meta {
  border-right: var(--rule-light);
  padding-right: 48px;
  z-index: 1;
}

.about-portrait {
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
}

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(0.15);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.about-portrait:hover img {
  transform: scale(1.03);
  filter: grayscale(0);
}

.about-portrait__caption {
  font-family: var(--f-mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  padding: 10px 0 0;
  display: block;
  background: var(--bg-white);
  border-top: 2px solid var(--ink);
  padding: 8px 12px;
}

.about-content {
  position: relative;
  min-height: 200px;
}

.notes-meta-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 6px;
}

.notes-meta-val {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--ink2);
  margin-bottom: 24px;
}

.notes-meta-val a {
  font-weight: 700;
  color: var(--ink);
}

.notes-meta-val a:hover {
  color: var(--orange);
}

.notes-list {
  z-index: 1;
  position: relative;
}

.notes-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: var(--rule-light);
  align-items: start;
}

.notes-list li:first-child { padding-top: 0; }
.notes-list li:last-child { border-bottom: none; padding-bottom: 0; }

.note-num {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--ink3);
  letter-spacing: 0.1em;
}

.note-text {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink2);
}

/* ---------- 5. TECHNICAL SPECIFICATIONS ---------- */
.spec-section {
  position: relative;
  padding: 80px 0;
  background: var(--bg-grey);
}

.spec-container {
  position: relative;
  padding: 40px var(--page-pad) 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border-top: var(--rule);
  border-bottom: var(--rule);
  z-index: 1;
  position: relative;
}

.spec-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  border-bottom: var(--rule-light);
}

.spec-table tbody td {
  padding: 16px;
  font-size: 0.85rem;
  border-bottom: var(--rule-light);
}

.spec-table tbody tr:last-child td { border-bottom: none; }

/* Parameter Column */
.spec-table tbody td:first-child {
  font-family: var(--f-mono);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 250px;
}

/* Value Column */
.spec-table tbody td:nth-child(2) {
  font-family: var(--f-body);
  font-weight: 500; /* Medium weight */
  color: var(--ink);
}

/* Notes Column */
.spec-table tbody td:nth-child(3) {
  font-family: var(--f-body);
  font-weight: 300; /* Lightest weight */
  color: var(--ink2);
}

.spec-table tbody tr.row-highlight td {
  background: rgba(224, 82, 26, 0.04);
}

.spec-table tbody tr.row-highlight td:nth-child(2) {
  color: var(--orange);
  font-weight: 700;
}

/* ---------- 6. PROFESSIONAL EXPERIENCE ---------- */
.experience-section {
  position: relative;
  padding: 80px 0;
  background: var(--bg-white);
}

.experience-container {
  position: relative;
  padding: 40px var(--page-pad) 0;
}

.experience-list {
  z-index: 1;
  position: relative;
}

.exp-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  border-bottom: var(--rule-light);
  padding: 32px 0;
}

.exp-item:first-child { padding-top: 0; }
.exp-item:last-child { border-bottom: none; padding-bottom: 0; }

.exp-meta {
  padding-right: 24px;
}

.exp-detail-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 8px;
}

.exp-company {
  font-family: var(--f-condensed);
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.exp-role {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.exp-dates {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink3);
  text-transform: uppercase;
}

.exp-location {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--ink3);
  margin-top: 4px;
}

.exp-content {
  padding-left: 24px;
}

.exp-bullets {
  list-style: none;
}

.exp-bullets li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  padding: 6px 0;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink2);
}

.exp-bullets li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 9px;
  flex-shrink: 0;
}

.exp-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.exp-client-tag {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink2);
  padding: 4px 10px;
  border: 1px solid rgba(12, 12, 11, 0.25);
  background: transparent;
  display: inline-block;
  text-decoration: none;
  transition: all var(--transition);
}

a.exp-client-tag:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ---------- 7. SELECTED WORKS ---------- */
.work {
  position: relative;
  padding: 80px 0;
  background: var(--bg-grey);
}

.work-container {
  position: relative;
  padding: 40px var(--page-pad) 0;
}

.work__list {
  z-index: 1;
  position: relative;
}

.fig-panel {
  display: grid;
  grid-template-columns: 80px 2.5fr 1fr;
  align-items: center;
  border-bottom: var(--rule);
  padding: 24px 0;
  gap: 24px;
  background: transparent;
  transition: opacity var(--transition);
}

.fig-panel:first-of-type {
  border-top: var(--rule);
}

.fig-panel:hover {
  opacity: 0.6;
}

.fp-num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink3);
}

.fig-panel h3 {
  font-family: var(--f-condensed);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

.fig-spec {
  display: flex;
  align-items: baseline;
  gap: 24px;
}

.fig-panel .project-cat {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink3);
  text-transform: uppercase;
  white-space: nowrap;
}

.fig-panel .project-year {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink3);
  justify-self: end;
  white-space: nowrap;
}

.work__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  margin-top: 64px;
  position: relative;
  z-index: 1;
}

.thumb-card {
  aspect-ratio: 16/9;
  background: #E8E8E4;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--rule-light);
}

.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-card__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink3);
  text-transform: uppercase;
}

/* ---------- 8. AWARDS & RECOGNITION ---------- */
.awards-section {
  position: relative;
  background: var(--bg-white);
  padding: 80px 0;
}

.awards-container {
  position: relative;
  padding: 40px var(--page-pad) 0;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  z-index: 1;
  position: relative;
}

.award-item {
  border-bottom: var(--rule-light);
  padding: 24px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.award-item:nth-child(-n+2) { padding-top: 0; }

.award-winner-badge {
  font-family: var(--f-mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--orange);
  color: #fff;
  padding: 3px 8px;
  width: fit-content;
}

.award-year {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--ink3);
  font-weight: 700;
}

.award-name {
  font-family: var(--f-condensed);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}

.award-link {
  transition: color var(--transition);
}

.award-link:hover {
  color: var(--orange);
}

.award-body {
  font-family: var(--f-body);
  font-size: 0.85rem;
  color: var(--ink2);
}

.award-project {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- 9. CTA (CONTACT) ---------- */
.cta {
  background: var(--ink);
  color: var(--bg);
  padding: 120px var(--page-pad);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}

.cta__left {}

.cta__h2 {
  font-family: var(--f-condensed);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: 40px;
}

.cta__body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(250,250,248,0.55);
  max-width: 450px;
  margin-bottom: 40px;
}

.btn-outline--white {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  border: 1px solid rgba(250,250,248,0.5);
  padding: 12px 24px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  width: fit-content;
}

.btn-outline--white:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

.cta__right {
  padding-top: 8px;
}

.cta__label {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.35);
  border-bottom: 1px solid rgba(250,250,248,0.12);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.cta__caps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cta__cap-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: baseline;
  border-bottom: 1px solid rgba(250,250,248,0.08);
  padding: 18px 0;
}

.cta__cap-num {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(250,250,248,0.25);
  text-transform: uppercase;
}

.cta__cap-name {
  font-family: var(--f-condensed);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.85);
}

.cta__cap-name a {
  transition: color var(--transition);
}

.cta__cap-name a:hover {
  color: var(--orange);
}

/* ---------- 10. FOOTER ---------- */
.footer {
  padding: 0 var(--page-pad);
  border-top: var(--rule);
  background: var(--bg-white);
}

.footer__inner {
  height: 52px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.footer__brand {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.footer__links a {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--ink);
}

.tbl-sep {
  color: rgba(12,12,11,0.12);
}

.footer__copy {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink3);
  margin-left: auto;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* ---------- Responsive Layout Rules ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-rows: auto 1fr auto;
  }

  .hero__body {
    padding-bottom: 2vh;
  }

  .hero__sub {
    max-width: 100%;
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  }



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

  .hero__stat {
    padding: 12px 16px;
    border-bottom: var(--rule-light);
  }

  .hero__stat:nth-child(2) { border-right: none; }
  .hero__stat:nth-child(3) { border-bottom: none; }
  .hero__stat:nth-child(4) { border-bottom: none; border-right: none; }

  .statement {
    grid-template-columns: 40px 1fr;
    gap: 24px;
    padding: 60px var(--page-pad);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-meta {
    border-right: none;
    border-bottom: var(--rule-light);
    padding-right: 0;
    padding-bottom: 24px;
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .exp-meta {
    padding-right: 0;
    border-right: none;
    border-bottom: var(--rule-light);
    padding-bottom: 20px;
  }

  .exp-content {
    padding-left: 0;
  }

  .fig-panel {
    grid-template-columns: 60px 1.5fr 1fr;
    gap: 16px;
  }

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

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

  .award-item:nth-child(2) {
    padding-top: 24px;
  }

  .cta {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 80px var(--page-pad);
  }

  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav__links {
    display: none;
  }
}

@media (max-width: 560px) {
  .work__thumbs {
    grid-template-columns: 1fr;
  }

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

  .hero__stat {
    border-right: none !important;
    border-bottom: var(--rule-light) !important;
  }

  .hero__stat:last-child {
    border-bottom: none !important;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    height: auto;
    padding: 24px 0;
    gap: 16px;
    align-items: center;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .footer__copy {
    margin-left: 0;
  }

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

  .fig-panel .project-year {
    justify-self: start;
  }
}

/* ---------- 11. CONTACT MODAL ---------- */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.contact-modal[hidden] {
  display: flex; /* override default hidden display:none so transitions work */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 11, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.contact-modal__panel {
  position: relative;
  background: var(--bg-white);
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 48px;
  border: 2px solid var(--ink);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s var(--ease);
}

.contact-modal.is-open .contact-modal__panel {
  transform: translateY(0) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink3);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  z-index: 2;
}

.contact-modal__close:hover {
  color: var(--ink);
}

.contact-modal__header {
  margin-bottom: 32px;
}

.contact-modal__label {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 8px;
}

.contact-modal__heading {
  font-family: var(--f-condensed);
  font-weight: 900;
  font-size: 2.8rem;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-modal__sub {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--ink2);
}

/* Form Fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink2);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg-grey);
  border: 1px solid rgba(12, 12, 11, 0.12);
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  border-radius: 0;
}

.form-input::placeholder {
  color: var(--ink3);
  font-weight: 300;
}

.form-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-submit {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border: 2px solid var(--ink);
  padding: 14px 32px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

.form-submit:hover {
  background: transparent;
  color: var(--ink);
}

.form-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Success / Error States */
.contact-modal__success,
.contact-modal__error {
  text-align: center;
  padding: 24px 0;
}

.success-icon,
.error-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.success-icon {
  background: rgba(34, 139, 34, 0.08);
  color: #228B22;
  border: 2px solid #228B22;
}

.error-icon {
  background: rgba(224, 82, 26, 0.08);
  color: var(--orange);
  border: 2px solid var(--orange);
}

.success-heading,
.error-heading {
  font-family: var(--f-condensed);
  font-weight: 900;
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.success-body,
.error-body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--ink2);
  margin-bottom: 28px;
  line-height: 1.6;
}

.error-body a {
  font-weight: 500;
  color: var(--orange);
  text-decoration: underline;
}

/* Modal Responsive */
@media (max-width: 560px) {
  .contact-modal__panel {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-modal__heading {
    font-size: 2.2rem;
  }
}
