/* ============================================================
   LdF Photography — System CSS
   photo-system.css · v1.0 · May 2026
   ============================================================ */


/* ── 01 · TOKENS ────────────────────────────────────────── */

:root {
  color-scheme: dark only;

  --warm-white:   #1B1D1F;
  --linen:        #222426;
  --active-bg:    #2A2C2F;
  --charcoal:     #F5F2ED;

  --orange:         #FF5A00;
  --orange-on-dark: #FF6400;

  --body-text:    #C9C5BF;
  --dark-text:    #F5F2ED;
  --mid-grey:     #9A938B;
  --muted:        #6E6B67;
  --pale:         #3A3835;

  --divider:      rgba(255,255,255,0.07);
  --divider-dk:   rgba(0,0,0,0.10);

  --space-1:  8px;
  --space-2:  16px;
  --space-3:  24px;
  --space-4:  32px;
  --space-5:  40px;
  --space-6:  48px;
  --space-7:  56px;
  --space-8:  64px;
  --space-9:  72px;
  --space-10: 80px;
  --space-12: 96px;

  --content-width: 1200px;
  --reading-width: 720px;
  --outer-pad:     64px;
  --outer-pad-mob: 24px;

  --nav-h:     60px;
  --sidebar-w: 300px;
}


/* ── 02 · RESET ─────────────────────────────────────────── */

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


/* ── 03 · BASE ──────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  background: var(--warm-white);
  height: 100%;
}

body {
  background: var(--warm-white);
  color: var(--body-text);
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  height: 100%;
  overflow: hidden;
}

a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }


/* ── 04 · TYPOGRAPHY ────────────────────────────────────── */

h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  color: var(--dark-text);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 960px;
  margin-bottom: 40px;
  text-wrap: pretty;
}

h1 em {
  font-style: italic;
  color: var(--orange-on-dark);
  font-size: clamp(34px, 5.5vw, 50px);
}

h1 > span      { display: block; }
h1 > span + em { display: block; }
h1 > span:not(:last-child) { margin-bottom: 0.2em; }

h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--dark-text);
  line-height: 1.15;
  margin-bottom: 28px;
  text-wrap: pretty;
}

h2 em {
  font-style: italic;
  color: var(--orange-on-dark);
}

h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 23px;
  font-weight: 400;
  font-style: italic;
  color: var(--dark-text);
  line-height: 1.45;
  margin-bottom: 16px;
}

p {
  margin-bottom: 24px;
  max-width: var(--reading-width);
  color: var(--body-text);
  line-height: 1.75;
}

p:last-child { margin-bottom: 0; }

.section-label,
h1.section-label,
h2.section-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--orange-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 18px;
  margin-bottom: 20px;
  display: block;
}

h1.section-label,
h2.section-label {
  margin-bottom: 50px;
  max-width: none;
}

.kicker,
.lead {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(18px, 2vw, 23px);
  font-style: italic;
  line-height: 1.45;
  color: var(--body-text);
  max-width: 680px;
  margin-bottom: 52px;
}

.pull-quote {
  border-left: 2px solid var(--orange);
  padding-left: 24px;
  margin: 48px 0;
}

.pull-quote p {
  font-family: 'Libre Baskerville', serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.45;
  color: var(--dark-text);
  margin: 0;
  max-width: none;
}

hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 64px 0;
}


/* ── 05 · LAYOUT — photo-site shell ─────────────────────── */

.photo-site {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* <main> must be in the flex chain or .photo-body has no height to fill */
.photo-site > main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.photo-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.photo-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}


/* ── 06 · NAVIGATION ────────────────────────────────────── */

nav.photo-nav {
  height: var(--nav-h);
  background: var(--warm-white);
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  flex-shrink: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--orange-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  margin-left: calc(var(--sidebar-w) - 28px);
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

nav.photo-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

nav.photo-nav a {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--mid-grey);
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

nav.photo-nav a.brand {
  color: var(--orange-on-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 15px;
}
nav.photo-nav a.brand:hover { color: var(--orange-on-dark); }

nav.photo-nav a:hover,
nav.photo-nav a.active { color: var(--orange-on-dark); }

nav.photo-nav a.nav-cross-link {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--pale);
  padding: 5px 10px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
}

nav.photo-nav a.nav-cross-link:hover {
  color: var(--mid-grey);
  border-color: var(--mid-grey);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 300;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--mid-grey);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--linen);
  z-index: 200;
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}

.nav-drawer.open { transform: translateX(0); }

.nav-drawer a { color: inherit; }


/* ── 07 · SIDEBAR ───────────────────────────────────────── */

.photo-sidebar {
  width: var(--sidebar-w);
  background: var(--linen);
  border-right: 1px solid var(--divider);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 14px 0;
}

.sidebar-scroll::-webkit-scrollbar { width: 2px; }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: var(--pale); border-radius: 1px; }

.sidebar-all {
  display: block;
  padding: 6px 20px 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mid-grey);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 6px;
  transition: color 0.15s;
}

.sidebar-all:hover,
.sidebar-all.active { color: var(--orange-on-dark); }

.cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.cat-head:hover { background: rgba(255,255,255,0.03); }

.cat-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.cat-caret {
  font-size: 7px;
  color: var(--pale);
  transition: transform 0.22s;
  line-height: 1;
}

.cat-head.open .cat-caret { transform: rotate(90deg); }

.cat-projects {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s cubic-bezier(0.4,0,0.2,1);
}

.cat-projects.open { max-height: 600px; }

.proj-link {
  display: block;
  padding: 5px 20px 5px 28px;
  font-size: 13.3px;
  color: #DADADA;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  border-left: 2px solid transparent;
  line-height: 1.35;
}

.proj-link:hover {
  color: var(--orange-on-dark);
  background: rgba(255,255,255,0.025);
}

.proj-link.active {
  color: var(--orange-on-dark);
  border-left-color: var(--orange);
  background: rgba(255,90,0,0.07);
}


/* ── 08 · STRIP HEADER ──────────────────────────────────── */

.strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px 9px;
  border-bottom: 1px solid var(--divider);
  flex-shrink: 0;
}

.strip-header-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.strip-cat-label {
  font-size: 11.6px;
  font-weight: 600;
  color: var(--orange-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.strip-proj-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--dark-text);
  font-weight: 400;
  margin-bottom: 0;
  max-width: none;
  letter-spacing: 0;
  line-height: 1;
}

.strip-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.strip-scroll-hint {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.strip-back {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  cursor: pointer;
  transition: color 0.15s;
}

.strip-back:hover { color: var(--dark-text); }


/* ── 09 · FILMSTRIP ─────────────────────────────────────── */

.filmstrip {
  display: flex;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 7px;           /* gap between all filmstrip children */
  align-items: stretch;
  background: #111213;
  min-height: 0;
}

.filmstrip::-webkit-scrollbar { height: 2px; }
.filmstrip::-webkit-scrollbar-track { background: var(--warm-white); }
.filmstrip::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 1px; }

.fs-cover {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.fs-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fs-cover-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.10) 100%
  );
}

.fs-cover-text {
  position: relative;
  z-index: 2;
  padding: 16px 16px 20px;
}

.fs-cover-cat {
  font-size: 11.6px;
  font-weight: 600;
  color: var(--orange-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 6px;
}

.fs-cover-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--dark-text);
  line-height: 1.10;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.fs-cover-count {
  margin-top: 10px;
  font-size: 10px;
  color: rgba(255,255,255,0.42);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.fs-copy {
  flex-shrink: 0;
  width: 470px;
  background: var(--linen);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px 28px;
  border-left: 2px solid var(--orange);
}

.fs-copy-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 11.6px;
  font-weight: 600;
  color: var(--mid-grey);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

.fs-copy-title {
  font-family: 'Libre Baskerville', serif;
  font-weight: 400;
  font-style: italic;
  color: var(--dark-text);
  line-height: 1.25;
  margin: 0 0 14px;
  max-width: none;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.fs-copy-count {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-top: 16px;
}

.fs-copy-text {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--body-text);
  line-height: 1.55;
  margin: 0;
  max-width: none;
}

.fs-copy-details {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  color: var(--body-text);
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: none;
}

.fs-copy-subtitle {
  font-family: 'Libre Baskerville', serif;
  font-size: 24px;
  font-style: italic;
  color: var(--orange-on-dark);
  line-height: 1.45;
  margin: 0 0 16px;
  max-width: none;
}

.fs-copy-link {
  display: inline-block;
  margin-top: 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--orange-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: opacity 0.2s;
}

.fs-copy-link:hover { opacity: 0.7; }

.fs-copy-meta {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--pale);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fs-copy-meta-item {
  font-family: 'Open Sans', sans-serif;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.fs-separator {
  flex-shrink: 0;
  width: 2px;
  background: var(--pale);
  opacity: 0.4;
}

/* Image cells — no margin; gap on .filmstrip handles spacing */
.fs-img {
  flex-shrink: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.fs-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.fs-img:hover img { transform: scale(1.03); }

.fs-img-num {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 10px;
  color: rgba(255,255,255,0.32);
  opacity: 0;
  transition: opacity 0.2s;
  letter-spacing: 0.04em;
}

.fs-img:hover .fs-img-num { opacity: 1; }


/* ── 10 · FOOTER ────────────────────────────────────────── */

.photo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  border-top: 1px solid var(--divider);
  background: var(--warm-white);
  flex-shrink: 0;
}

.photo-footer-left,
.photo-footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Contrast fix: lifted from --muted (#6E6B67, ~3.4:1) to --mid-grey (#9A938B, ~5.75:1) */
.photo-footer-copy,
.photo-footer-link,
.photo-footer-sep {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  color: var(--mid-grey);
  letter-spacing: 0.04em;
}

.photo-footer-link {
  text-transform: lowercase;
  transition: color 0.2s;
}

.photo-footer-link:hover { color: var(--orange-on-dark); }

.photo-footer-brand {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--orange-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.photo-footer-brand:hover { opacity: 0.7; }


/* ── 11 · GENERAL COMPONENT ATOMS ──────────────────────── */

/* Visually hidden but accessible to screen readers and crawlers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.callout {
  background: var(--charcoal);
  padding: var(--space-4) 36px;
  margin: 48px 0;
}

.callout p {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.70;
  color: #1B1D1F;
  max-width: none;
  margin: 0;
}

.callout p strong { font-weight: 600; }

.cta-btn {
  background: var(--orange);
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 18px 40px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.cta-btn:hover { background: #e05000; }

.cta-btn-sm {
  background: var(--orange);
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  height: 40px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.cta-btn-sm:hover { background: #e05000; }

.card {
  border-top: 1px solid var(--pale);
  padding-top: 28px;
}

.card-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--orange-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  display: block;
}

.card p {
  font-size: 16px;
  color: var(--mid-grey);
  max-width: none;
}


/* ── 12 · END-OF-PROJECT NAVIGATION ────────────────────── */

.fs-end {
  flex-shrink: 0;
  width: 360px;
  background: var(--linen);
  border-left: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
}

.fs-end-cat-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--orange-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  display: block;
}

.fs-end-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.fs-end-nav-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--pale);
  transition: border-color 0.15s, background 0.15s;
}

.fs-end-nav-link:hover {
  border-color: var(--orange);
  background: rgba(255,90,0,0.04);
}

.fs-end-dir {
  font-family: 'Open Sans', sans-serif;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.fs-end-proj-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--dark-text);
  line-height: 1.3;
}

.fs-end-acc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  border: none;
  border-top: 1px solid var(--divider);
  background: none;
  cursor: pointer;
  color: var(--mid-grey);
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.15s;
}

.fs-end-acc-toggle:hover { color: var(--dark-text); }

.fs-end-acc-icon {
  font-size: 8px;
  transition: transform 0.22s;
  flex-shrink: 0;
}

.fs-end-acc-toggle.open .fs-end-acc-icon { transform: rotate(180deg); }

.fs-end-acc-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  margin-bottom: 0;
}

.fs-end-acc-list.open { max-height: 800px; }

.fs-end-proj-item {
  display: block;
  padding: 6px 0 6px 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: var(--mid-grey);
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
}

.fs-end-proj-item:hover { color: var(--dark-text); }

.fs-end-proj-item.active {
  color: var(--orange-on-dark);
  border-left-color: var(--orange);
}

.fs-end-back {
  display: block;
  margin-top: auto;
  padding-top: 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  transition: color 0.15s;
  border-top: 1px solid var(--divider);
}

.fs-end-back:hover { color: var(--dark-text); }

.desktop-footer-only { display: block; }


/* ── 16 · DESKTOP INDEX GRID ────────────────────────────── */

.desktop-grid-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.desktop-grid-scroll::-webkit-scrollbar { width: 2px; }
.desktop-grid-scroll::-webkit-scrollbar-track { background: transparent; }
.desktop-grid-scroll::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 1px; }

.desktop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
}

.desktop-card {
  display: block;
  text-decoration: none;
  background: var(--linen);
  position: relative;
}

.desktop-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #111;
}

.desktop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.desktop-card:hover .desktop-card-img img { transform: scale(1.03); }

.desktop-card-placeholder {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
}

.desktop-card-info {
  padding: 14px 16px 18px;
  border-left: 2px solid var(--orange);
}

.desktop-card-cat {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--orange-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 5px;
}

.desktop-card-title {
  display: block;
  font-family: 'Libre Baskerville', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--dark-text);
  line-height: 1.2;
  margin-bottom: 6px;
}

.desktop-card-desc {
  display: block;
  font-family: 'Libre Baskerville', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--body-text);
  line-height: 1.5;
  margin-bottom: 8px;
}

/* Contrast fix: lifted from --muted (#6E6B67, ~3.4:1) to --mid-grey (#9A938B, ~5.75:1) */
.desktop-card-count {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 10px;
  color: var(--mid-grey);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}


/* ── 13 · MOBILE PROJECT GRID ───────────────────────────── */

.mobile-index { display: none; }

.mobile-cats {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--warm-white);
  border-bottom: 1px solid var(--divider);
  display: flex;
  overflow-x: auto;
  gap: 0;
  padding: 0 4px;
  -webkit-overflow-scrolling: touch;
}

.mobile-cats::-webkit-scrollbar { display: none; }

.mobile-cat-tab {
  flex-shrink: 0;
  padding: 11px 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mid-grey);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.mobile-cat-tab:hover,
.mobile-cat-tab.active {
  color: var(--orange-on-dark);
  border-bottom-color: var(--orange);
}

.mobile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 2px;
}

.mobile-card {
  display: block;
  text-decoration: none;
  background: var(--linen);
}

.mobile-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #111;
}

.mobile-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.mobile-card:hover .mobile-card-img img { transform: scale(1.03); }

.mobile-card-placeholder {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
}

.mobile-card-info {
  padding: 14px 16px 24px;
  border-left: 2px solid var(--orange);
}

.mobile-card-cat {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--orange-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 5px;
}

.mobile-card-title {
  display: block;
  font-family: 'Libre Baskerville', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--dark-text);
  line-height: 1.2;
  margin-bottom: 6px;
}

.mobile-card-desc {
  display: block;
  font-family: 'Libre Baskerville', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--body-text);
  line-height: 1.5;
  margin-bottom: 8px;
}

/* Contrast fix: lifted from --muted (#6E6B67, ~3.4:1) to --mid-grey (#9A938B, ~5.75:1) */
.mobile-card-count {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 10px;
  color: var(--mid-grey);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}


/* ── 14 · DRAWER ────────────────────────────────────────── */

.drawer-section {
  border-bottom: 1px solid var(--divider);
}

.drawer-section:last-child { border-bottom: none; }

/* Top-level links: All work, About, Contact, Strategic design */
.drawer-top-link {
  display: block;
  padding: 9px 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--dark-text);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.drawer-top-link:hover,
.drawer-top-link.active { color: var(--orange-on-dark); }

.drawer-cross-link {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
}

/* Category accordion button — full-width row, no separate link */
.drawer-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 9px 0;
  cursor: pointer;
  text-align: left;
}

.drawer-cat-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--dark-text);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.drawer-cat-btn:hover .drawer-cat-label,
.drawer-cat-btn.open .drawer-cat-label { color: var(--orange-on-dark); }

.drawer-cat-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--mid-grey);
  border-bottom: 1.5px solid var(--mid-grey);
  transform: rotate(45deg);
  transition: transform 0.22s, border-color 0.22s;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.drawer-cat-btn.open .drawer-cat-arrow {
  transform: rotate(225deg);
  margin-bottom: -2px;
  border-color: var(--orange-on-dark);
}

.drawer-cat-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  padding-left: 8px;
}

.drawer-cat-list.open { max-height: 800px; }

.drawer-proj-link {
  display: block;
  padding: 5px 0 5px 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--mid-grey);
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.35;
}

.drawer-proj-link:hover { color: var(--dark-text); }

.drawer-proj-link.active {
  color: var(--orange-on-dark);
  border-left-color: var(--orange);
}

.drawer-footer-links {
  display: flex;
  flex-direction: column;
}


/* ── 17 · CONTACT PAGE ──────────────────────────────────── */

/* Contact page uses a scrollable layout, not the fixed filmstrip.
   body.page-contact overrides the default overflow:hidden on body. */
body.page-contact {
  overflow: auto;
}

body.page-contact .photo-site {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}

body.page-contact .photo-site > main {
  flex: 1;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

/* Left-aligned to match the logo position on filmstrip pages.
   padding-left: --sidebar-w places the content edge where the logo sits.
   No justify-content: center — content anchors left, not centred. */
.contact-page {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 72px var(--outer-pad) 64px var(--sidebar-w);
}

.contact-inner {
  width: 100%;
  max-width: 680px;
}

.contact-heading {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  color: var(--dark-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
  text-wrap: pretty;
}

.contact-intro {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  color: var(--mid-grey);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}

.contact-form {
  width: 100%;
}

.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.form-group label {
  font-family: 'Open Sans', sans-serif;
  font-size: 11.6px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 8px;
}

.form-group .req { color: var(--orange-on-dark); }
.form-group .opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 11px;
}

.form-group input,
.form-group textarea {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: var(--dark-text);
  background: var(--linen);
  border: 1px solid var(--pale);
  padding: 12px 16px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--orange); }

.form-group textarea {
  resize: vertical;
  min-height: 148px;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.contact-error {
  background: rgba(255,90,0,0.08);
  border-left: 3px solid var(--orange);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--body-text);
  margin-bottom: 32px;
}

.contact-success {
  padding: 48px 0;
}

.contact-success p {
  color: var(--mid-grey);
  font-size: 17px;
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 40px;
}


/* ── 18 · ABOUT PAGE ────────────────────────────────────── */

/* About page uses a scrollable layout, mirroring page-contact. */
body.page-about {
  overflow: auto;
}

body.page-about .photo-site {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}

body.page-about .photo-site > main {
  flex: 1;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

/* Left-aligned to match the logo position on filmstrip pages.
   padding-left: --sidebar-w places the content edge where the logo sits.
   No justify-content: center — content anchors left, not centred. */
.about-page {
  flex: 1;
  display: flex;
  padding: 72px var(--outer-pad) 80px var(--sidebar-w);
}

.about-inner {
  width: 100%;
  max-width: 680px;
}

.about-hero {
  margin-bottom: 64px;
}

.about-heading {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  color: var(--dark-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0 28px;
  text-wrap: pretty;
}

.about-heading em {
  font-style: italic;
  color: var(--orange-on-dark);
}

.about-intro {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  color: var(--mid-grey);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 0;
}

.about-section {
  margin-bottom: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--divider);
}

.about-section-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 11.6px;
  font-weight: 600;
  color: var(--orange-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
  display: block;
}

.about-section p {
  font-size: 16px;
  color: var(--body-text);
  line-height: 1.8;
  max-width: none;
}

.about-section p em {
  font-style: italic;
  color: var(--dark-text);
}

.about-awards {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}

.about-award-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-award-org {
  font-family: 'Open Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dark-text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.about-award-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-award-item {
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.about-award-year {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-on-dark);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  width: 36px;
}

.about-award-detail {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--mid-grey);
  line-height: 1.5;
}

.about-publications {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: none;
  margin-top: 8px;
  margin-bottom: 0;
}

.about-publications em {
  font-style: italic;
  color: var(--mid-grey);
}

.about-cta {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--divider);
  flex-wrap: wrap;
}

.about-cta-link {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: opacity 0.2s;
}

.about-cta-link:hover { opacity: 0.65; }


/* ── 15 · MOBILE ────────────────────────────────────────── */

@media (max-width: 768px) {

  body { overflow: auto; }

  .photo-site { height: auto; overflow: visible; }
  .photo-site > main { overflow: visible; }

  nav.photo-nav { padding: 0 var(--outer-pad-mob); }
  nav.photo-nav ul { display: none; }
  .nav-toggle { display: flex; }
  .brand { margin-left: 0; }

  nav.photo-nav {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  body.page-index .mobile-index { display: block; }
  body.page-index .photo-body  { display: none; }

  body.page-project .photo-sidebar { display: none; }
  body.page-project .photo-body { overflow: visible; }
  body.page-project .photo-main { overflow: visible; }
  body.page-project .photo-site { height: auto; overflow: visible; }

  /* Contact page — sidebar offset removed, full mobile padding both sides */
  body.page-contact .contact-page {
    padding: 48px var(--outer-pad-mob) 80px;
    align-items: stretch;
  }

  body.page-contact .form-row--two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* About page — sidebar offset removed, full mobile padding both sides */
  body.page-about .about-page {
    padding: 48px var(--outer-pad-mob) 80px;
  }

  /* Filmstrip becomes vertical column on mobile.
     gap: 7px matches the desktop gap between images. */
  .filmstrip {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
    height: auto;
    gap: 7px;
    min-height: unset;
  }

  .fs-cover {
    width: 100% !important;
    height: 67vw;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
  }

  .fs-copy {
    width: 100% !important;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 24px 20px;
    flex-shrink: 0;
  }

  .fs-img {
    width: 100% !important;
    height: auto;
    aspect-ratio: var(--img-aspect, 3/2);
    flex-shrink: 0;
  }

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

  .fs-end {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--divider);
    flex-shrink: 0;
    padding: 24px 20px;
  }

  .strip-header { padding: 8px 16px; }
  .strip-scroll-hint { display: none; }

  .photo-footer {
    position: sticky;
    bottom: 0;
    flex-direction: column;
    gap: 0;
    padding: 14px 16px 20px;
    z-index: 90;
    background: var(--warm-white);
    border-top: 1px solid var(--divider);
  }

  /* Row 1: brand left, about | contact right */
  .photo-footer-left {
    width: 100%;
    display: flex;
    align-items: center;
    padding-bottom: 12px;
  }

  /* Push about | contact to the right */
  .photo-footer-nav-first {
    margin-left: auto;
  }

  /* Hide strategic design separator and link from row 1 on mobile —
     the link is surfaced via .photo-footer-strategic-mob in row 2 instead */
  .photo-footer-sep-strategic,
  .photo-footer-strategic {
    display: none;
  }

  /* Strategic design link in row 2 — unique class, no cascade risk */
  .photo-footer-strategic-mob {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    color: var(--mid-grey);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    transition: color 0.2s;
  }

  .photo-footer-strategic-mob:hover { color: var(--orange-on-dark); }

  /* Row 2: copyright, privacy policy, and strategic design link.
     Always visible when footer is in flow. */
  .photo-footer-right {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--pale);
    padding: 10px 0 0;
    flex-wrap: nowrap;
  }

  .photo-footer-right::before {
    display: none;
  }

  .desktop-footer-only { display: none; }

  h1    { font-size: 32px; }
  h1 em { font-size: 32px; }
  h2    { font-size: clamp(22px, 6vw, 32px); }
  h3    { font-size: clamp(18px, 4vw, 22px); }
}
