/* ─── Design Tokens ─────────────────────────────────────────────────── */
:root {
  --surface:           #faf9f4;
  --surface-low:       #f5f4ef;
  --surface-container: #efeee9;
  --surface-high:      #e9e8e3;
  --surface-highest:   #e3e3de;
  --surface-lowest:    #ffffff;
  --text:              #1b1c19;
  --text-primary:      #000000;
  --muted:             #777777;
  --outline:           #777777;
  --outline-variant:   rgba(198,198,198,0.3);
  --on-primary:        #e6e2df;
  --tertiary:          #26412a;
  --tertiary-ct:       #caebca;
  --font:              'Helvetica Neue', Helvetica, Arial, sans-serif;
  --nav-h:             64px;
  --pad:               clamp(24px, 5vw, 80px);
  --max-w:             1280px;
}

/* ─── Dark mode overrides ────────────────────────────────────────────── */
[data-dark="true"] {
  --surface:           #0e0e0c;
  --surface-low:       #131310;
  --surface-container: #1b1b18;
  --surface-high:      #232320;
  --surface-highest:   #2b2b28;
  --surface-lowest:    #080807;
  --text:              #d4d1cc;
  --text-primary:      #e8e5e0;
  --muted:             #88887f;
  --outline:           #3c3c39;
  --outline-variant:   rgba(255,255,255,0.07);
  --on-primary:        #1a1a17;
}

/* ─── Type family ────────────────────────────────────────────────────── */
:root {
  --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:    'Courier New', Courier, monospace;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ─── Navigation (floating) ──────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 90vw;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — bare image, matches pill height */
.nav-logo-pill {
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img {
  display: block;
  height: 36px;
  width: 36px;
  object-fit: cover;
  mix-blend-mode: multiply;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 28px;
}

.nav-pill {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.nav-pill:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.nav-pill.active {
  color: var(--text-primary);
  font-weight: 500;
  border-bottom-color: var(--text-primary);
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  height: calc(100svh - 48px);
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
  box-sizing: border-box;
  overflow: visible;
}

.hero-inner {
  max-width: 90vw;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
  width: 100%;
}

.hero-left {
  grid-column: span 9;
}

.hero-right {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.hero-left h1 {
  font-size: clamp(2.2rem, 3.8vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

.hero-left h1 .hero-sentence-2 {
  display: block;
  margin-top: 0.55em;
}

.hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

/* ─── Section structure ──────────────────────────────────────────────── */
.section-pad {
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ─── Selected Work section ──────────────────────────────────────────── */
.work-section {
  padding: 0 0 28px;
}

.work-inner {
  max-width: 90vw;
  margin: 0 auto;
}

.section-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 8px;
  margin-bottom: 28px;
}

.section-bar-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ─── Carousel ────────────────────────────────────────────────────────── */
.carousel-wrap {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-top: 16px;
  margin-top: -16px;
}

.carousel-track::-webkit-scrollbar { display: none; }

.proj-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: clamp(260px, 28vw, 340px);
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.card-image {
  width: 100%;
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 6px;
}

.card-spec-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #000;
  color: #e6e2df;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.card-body {
  padding: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-ref {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.05em;
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-top: 4px;
}

.card-type-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.card-client-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-challenge-text {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Carousel footer (nav + see-all) ────────────────────────────────── */
.carousel-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.carousel-nav {
  display: flex;
  gap: 24px;
}

.carousel-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--text);
  padding: 6px 12px;
  opacity: 0.45;
  transition: opacity 0.2s ease;
  line-height: 1;
}

.carousel-btn:hover { opacity: 1; }

.see-all-btn {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.see-all-btn:hover { color: var(--text); }

/* ─── Archive Section ─────────────────────────────────────────────────── */
.archive-section {
  background: var(--surface-low);
  padding: 96px 0;
}

.archive-inner {
  max-width: 80vw;
  margin: 0 auto;
}

.archive-header {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.archive-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.arch-filter-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s;
}

.arch-filter-btn:hover {
  color: var(--text-primary);
}

.arch-filter-btn.active {
  color: var(--text-primary);
  font-weight: 500;
}

.archive-list { }

.arch-row {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 20px 8px;
  cursor: pointer;
  transition: background 0.15s;
  color: inherit;
  text-decoration: none;
}

.arch-row:last-child {}
.arch-row:hover { background: var(--surface-container); }
.arch-row.hidden { display: none; }

.arch-num {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  min-width: 80px;
}

.arch-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  flex: 1;
  line-height: 1.1;
}

.arch-meta {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  flex-shrink: 0;
  padding-left: 24px;
}

/* ─── Capabilities section (legacy, unused) ──────────────────────────── */
.capabilities-section { display: none; }

/* ─── Approach and Practice section ─────────────────────────────────── */
.approach-section {
  background: var(--surface);
  padding: 28px 0 96px;
}

.approach-inner {
  max-width: 90vw;
  margin: 0 auto;
}

.approach-section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 28px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

/* Column label — same size as carousel card titles */
.approach-col-label {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Quote cards */
.approach-quote {
  background: #111;
  border-radius: 6px;
  padding: 18px 20px 16px;
  margin-bottom: 20px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.approach-quote--1:hover { background: #1a1a1a; }
.approach-quote--2:hover { background: #1a1a1a; }
.approach-quote--3:hover { background: #1a1a1a; }

.approach-quote-text {
  font-style: italic;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.approach-quote-attr {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
}

/* Intro line */
.approach-col-intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Items as plain text — spacing only, no lines */
.approach-items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}

.approach-items span {
  display: inline-block;
  background: var(--surface-container);
  color: var(--text);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 5px 10px;
  border-radius: 2px;
  line-height: 1.4;
}

.approach-items--models {
  margin-top: 8px;
}

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

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

/* ─── Capabilities section (kept for structure) ──────────────────────── */
.capabilities-inner {
  max-width: 90vw;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.capability-item {
  padding-top: 16px;
}

.cap-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.capability-item h3 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.capability-item p {
  font-size: 14px;
  line-height: 1.7;
  color: #474747;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: #111;
  padding: 40px 0;
}

.footer-inner {
  max-width: 90vw;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-right {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.footer-center {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.9);
}

/* ─── PROJECT PAGE ───────────────────────────────────────────────────── */
.project-hero {
  width: 100%;
  min-height: 55vh;
  padding-top: calc(var(--nav-h) + 48px);
  padding-left: var(--pad);
  padding-right: var(--pad);
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.spec-tag {
  display: inline-block;
  background: #000;
  color: #e6e2df;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0;
  font-family: var(--font-mono);
}

.project-hero-inner h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.0;
  text-transform: uppercase;
  color: white;
  margin-top: 24px;
}

.project-hero-inner .hero-sub-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin-top: 16px;
  line-height: 1.6;
}

/* Project body layout */
.project-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px var(--pad) 128px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.project-sidebar {
  grid-column: span 3;
}

.project-sidebar-inner {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding-top: 16px;
}

.sidebar-meta-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.sidebar-meta-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.meta-item-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.meta-item-value {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.project-back {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 40px;
  transition: color 0.2s;
}

.project-back:hover { color: var(--text-primary); }

.project-content {
  grid-column: 5 / span 8;
}

/* Section headings inside project */
.project-section-heading {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  padding-bottom: 16px;
  margin-bottom: 24px;
  line-height: 1.1;
}

.project-lead {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}

.project-section-block {
  margin-bottom: 64px;
}

.project-section-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

/* Process phases */
.phase-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 24px 0;
}

.phase-row:first-child {}

.phase-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 48px;
  padding-top: 3px;
}

.phase-content h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.phase-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Outputs */
.outputs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.output-tag {
  background: var(--surface-high);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0;
  color: var(--text);
}

/* ─── ABOUT PAGE ─────────────────────────────────────────────────────── */
.about-hero {
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 80px;
}

.about-hero-inner {
  max-width: 90vw;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

.about-hero-left {
  grid-column: span 7;
}

.about-hero-right {
  grid-column: span 5;
  position: relative;
}

.about-bio-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.about-hero-left h1 {
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 40px;
}

.about-bio-text {
  font-size: 17px;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 20px;
}

.about-cv-link {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.2s ease;
}

.about-cv-link:hover {
  color: var(--text-primary);
}

.about-portrait {
  aspect-ratio: 4/5;
  background: var(--surface-high);
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.about-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.portrait-ref {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 10px;
  font-family: var(--font-mono);
  background: white;
  border: 1px solid rgba(0,0,0,0.15);
  padding: 4px 8px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* About capabilities + chronology */
.about-caps-section {
  padding: 96px 0;
}

.about-caps-inner {
  max-width: 90vw;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.about-caps-left {
  grid-column: span 4;
}

.about-caps-right {
  grid-column: span 5;
}

.about-caps-companies {
  grid-column: span 3;
}

.about-section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 32px;
}

.cap-entry {
  margin-bottom: 32px;
}

.cap-entry-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.cap-entry h4 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.cap-entry p {
  font-size: 13px;
  color: #474747;
  line-height: 1.6;
}

/* Worked with */
.about-worked-with-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-worked-with-item {
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Chronology rows */
.chrono-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 16px 8px;
  cursor: default;
  transition: background 0.15s;
}

.chrono-row:last-child {}
.chrono-row:hover { background: var(--surface-low); }

.chrono-left h4 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

.chrono-org {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.chrono-years {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Contact section */
.contact-section {
  background: #111;
  padding: 128px 0;
}

.contact-inner {
  max-width: 90vw;
  margin: 0 auto;
}

.contact-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 48px;
}

.contact-inner h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 48px;
  line-height: 0.95;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-email {
  font-size: 13px;
  font-weight: 400;
  color: white;
  letter-spacing: 0;
  line-height: 1.6;
  transition: opacity 0.2s;
}

.contact-email:hover { opacity: 0.7; }

.contact-detail-line {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.contact-note {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 48px;
}

/* Google Calendar booking button — override font weight */
.gc-bubblewidget-button,
.gc-bubblewidget-button *,
[data-component="gc-scheduling-button"] *,
.contact-inner button,
.contact-inner a[href*="calendar.google.com"],
.contact-section button,
.contact-section [role="button"] {
  font-weight: 300 !important;
}

.contact-cta {
  display: inline-block;
  background: white;
  color: black;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 48px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-cta:hover { opacity: 0.85; }

/* ─── IDEAS PAGE ─────────────────────────────────────────────────────── */
.ideas-page {
  padding-top: calc(var(--nav-h) + 64px);
}

.ideas-inner {
  max-width: 90vw;
  margin: 0 auto;
}

.ideas-header {
  padding-bottom: 48px;
  margin-bottom: 80px;
}

.ideas-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 32px;
}

.ideas-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.ideas-desc {
  font-size: 16px;
  line-height: 1.6;
  max-width: 400px;
  color: var(--text);
}

.ideas-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.ideas-filter-btn {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.2);
  color: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s;
}

.ideas-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.ideas-filter-btn.active {
  background: var(--text-primary);
  color: var(--on-primary);
  border-color: var(--text-primary);
}

/* Featured article */
.featured-article {
  border: 1px solid black;
  overflow: hidden;
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: 7fr 5fr;
}

.featured-article-image {
  aspect-ratio: 4/3;
  background: var(--surface-high);
}

.featured-article-content {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.featured-article-tags {
  display: flex;
  gap: 8px;
  align-items: center;
}

.article-tag-featured {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.article-tag-cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.featured-article-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

.featured-article-content p {
  font-size: 14px;
  line-height: 1.65;
  color: #474747;
}

.read-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: opacity 0.2s;
}

.read-link:hover { opacity: 0.6; }

/* Article list rows */
.article-list {
  padding-bottom: 128px;
}

.article-row {
  display: grid;
  grid-template-columns: 100px 1fr 160px;
  align-items: baseline;
  gap: 24px;
  padding: 28px 8px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}

.article-row:last-child {}
.article-row:hover { background: var(--surface-low); }

.article-date {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-row h4 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  padding-right: 48px;
}

.article-row:hover h4::after {
  content: ' →';
  font-size: 16px;
}

.article-cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* ─── Intro Splash ───────────────────────────────────────────────────── */
#intro-splash {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
              filter  0.9s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, filter;
}

#intro-splash.fade-out {
  opacity: 0;
  filter: blur(20px);
  pointer-events: none;
}

#intro-splash p {
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(2rem, 3.8vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  width: 90vw;
  max-width: 90vw;
  padding: 0;
  line-height: 1.15;
  visibility: hidden;
  font-variant: normal;
  text-transform: none;
}

#intro-splash p::first-letter {
  font-size: inherit;
  font-variant: normal;
  text-transform: none;
}

.splash-word {
  display: inline-block;
  opacity: 0;
  animation: splashWordIn 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes splashWordIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Hero word animation ────────────────────────────────────────────── */
@keyframes wordIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.hero-word {
  display: inline-block;
  opacity: 0;
  animation: wordIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ─── Clients / Logos section ────────────────────────────────────────── */
.clients-section {
  padding: 48px 0 80px;
}

.clients-label-wrap {
  max-width: 90vw;
  margin: 0 auto;
}

.clients-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

/* Ticker */
.clients-ticker-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
}

.clients-ticker-wrap::before,
.clients-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.clients-ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--surface) 0%, transparent 100%);
}

.clients-ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--surface) 0%, transparent 100%);
}

.clients-ticker {
  display: flex;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}


.clients-ticker-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 0 32px;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-logo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.28;
  transition: opacity 0.25s ease;
  cursor: default;
  user-select: none;
}

.client-logo:hover { opacity: 0.7; }

/* ─── Dark mode toggle ───────────────────────────────────────────────── */
.dark-toggle {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  transition: color 0.2s, transform 0.3s ease;
  display: flex;
  align-items: center;
  border-radius: 0;
}

.dark-toggle:hover {
  color: var(--text-primary);
  transform: rotate(30deg);
}

/* ─── WORK PAGE ──────────────────────────────────────────────────────── */
.work-page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 64px;
}

.work-page-hero-inner {
  max-width: 90vw;
  margin: 0 auto;
}

.work-page-hero-inner h1 {
  font-size: clamp(3.5rem, 6.5vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-top: 24px;
}

.work-page-desc {
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 100%;
  margin-top: 24px;
}

/* Controls bar */
.work-controls-wrap {
  padding: 14px 0;
  margin-bottom: 48px;
}

.work-controls-inner {
  max-width: 90vw;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.work-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.view-toggle {
  display: flex;
  border: 1px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.view-btn {
  padding: 5px 16px;
  font-size: 10px;
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
}

.view-btn.active {
  background: var(--text-primary);
  color: var(--on-primary);
}

/* Projects container */
.work-projects-wrap { padding-bottom: 128px; }

.work-projects-inner {
  max-width: 90vw;
  margin: 0 auto;
}

/* Grid view */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.work-grid-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.work-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.work-card-info {
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  transition: border-color 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.work-grid-card:hover .work-card-info {
  border-color: transparent;
}

.work-card-info h3 {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}

.work-card-meta {
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* List view */
.work-list-row {
  display: grid;
  grid-template-columns: 52px 1fr auto auto auto 80px;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.work-list-row:last-child {}
.work-list-row:hover { padding-left: 8px; }

.work-list-num {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
}

.work-list-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

.work-list-type {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.work-list-client {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.work-list-year {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
}

.work-list-active {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2a7a38;
  white-space: nowrap;
}

.work-list-active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3d9c4f;
  flex-shrink: 0;
}

/* Status badge */
.status-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.18);
  color: var(--muted);
  vertical-align: middle;
  margin-left: 6px;
}

/* ─── Two-column work layout ─────────────────────────────────────────── */
.work-two-col {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: start;
}

.work-col-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Left: featured cards in 2-col mini-grid */
.work-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Right: level_2 list */
.work-l2-list {
  display: flex;
  flex-direction: column;
}

.work-l2-section {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 0;
}

.work-l2-section--gap { margin-top: 24px; }

.work-l2-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--outline-variant);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: padding-left 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.work-l2-item:hover { padding-left: 10px; }

.work-l2-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 6px;
}

.work-l2-item.is-active .work-l2-dot { background: #3d9c4f; }

.work-l2-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.work-l2-title {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.3;
  transition: opacity 0.25s ease;
}

.work-l2-item:hover .work-l2-title { opacity: 0.55; }

.work-l2-sub {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.work-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 24px 0;
}

/* Responsive: collapse to single column at 1100px */
@media (max-width: 1100px) {
  .work-two-col {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .work-featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .work-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hide/show views (legacy — no longer used) */
.work-projects-inner.list-view .work-grid { display: none; }
.work-projects-inner.grid-view .work-list { display: none; }

.archive-section { display: none; }
.archive-section.visible { display: block; }

/* Work list: Case indicator for featured projects */
.work-list-case {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border: 1px solid var(--outline-variant);
  padding: 2px 7px;
  border-radius: 2px;
  align-self: center;
  white-space: nowrap;
}

/* Level-2 items: pointer cursor (no href navigation) */
.is-level2 { cursor: pointer; }

/* ─── Project Panel (split-screen dark overlay) ────────────────────── */
.proj-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.proj-panel-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.proj-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 52vw;
  min-width: 340px;
  height: 100vh;
  background: #111;
  color: #d4d0cb;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.proj-panel.open { transform: translateX(0); }

.proj-panel-header {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.proj-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 48px 56px 96px;
}

.proj-panel-close {
  background: none;
  border: none;
  color: #555;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.proj-panel-close:hover { color: #d4d0cb; }

.panel-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 28px;
}

.panel-client {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #888;
}

.panel-year-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}

.panel-specialty {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
}

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 34px);
  color: #e8e5e0;
  line-height: 1.1;
  margin-bottom: 40px;
  font-weight: 400;
}

.panel-nda {
  color: #555;
  font-size: 14px;
  margin-top: 16px;
}

.panel-section {
  margin-bottom: 40px;
}

.panel-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
  margin-bottom: 10px;
}

.panel-text {
  font-size: 14px;
  line-height: 1.65;
  color: #a8a49f;
}

.panel-shift {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-shift-line {
  font-size: 14px;
  line-height: 1.5;
  color: #a8a49f;
}

.panel-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.panel-kw {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #555;
  border: 1px solid #2a2a2a;
  padding: 4px 10px;
  border-radius: 2px;
}

/* ─── Project page: new content sections ─────────────────────────────── */
.outcome-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.outcome-item {
  font-size: 15px;
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
}

.outcome-item::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}

@media (max-width: 768px) {
  .proj-panel {
    width: 100vw;
  }
  .proj-panel-body {
    padding: 32px 24px 80px;
  }
}

/* ─── Hover states ────────────────────────────────────────────────────── */

/* Carousel cards — image lifts, text softens */
.proj-card .card-image {
  filter: grayscale(40%);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.proj-card:hover .card-image {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.13), 0 8px 20px rgba(0,0,0,0.06);
  filter: grayscale(0%);
}

.proj-card .card-title {
  transition: opacity 0.35s ease;
}

.proj-card:hover .card-title { opacity: 0.6; }

/* Work grid cards — image lift */
.work-grid-card .work-card-img {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.work-grid-card:hover .work-card-img {
  transform: translateY(-6px);
}

.work-grid-card .work-card-info h3 {
  transition: opacity 0.3s ease;
}

.work-grid-card:hover .work-card-info h3 { opacity: 0.6; }

/* Work list rows — slide-indent */
.work-list-row {
  transition: padding-left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.work-list-row:hover { padding-left: 16px; }

.work-list-title {
  transition: opacity 0.3s ease;
}

.work-list-row:hover .work-list-title { opacity: 0.55; }

/* Archive rows */
.arch-row {
  transition: background 0.25s ease, padding-left 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.arch-row:hover { padding-left: 16px; }

/* Arch-row already sets bg on hover — keep it */

/* Capability items — slide right */
.capability-item {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.capability-item:hover { transform: translateX(5px); }

/* Client logos */
.client-logo {
  transition: opacity 0.25s ease;
}

/* Footer links — underline grows */
.footer-links a {
  position: relative;
  transition: opacity 0.25s ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.footer-links a:hover::after { width: 100%; }

/* Carousel nav buttons — transition handled in base rule above */

/* Filter buttons */
.arch-filter-btn {
  transition: color 0.2s ease;
}

/* View toggle buttons */
.view-btn {
  transition: background 0.2s ease, color 0.2s ease;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .project-content {
    grid-column: 4 / span 9;
  }
}

@media (max-width: 1400px) {
  .hero-left { grid-column: span 12; }
  .hero-right { grid-column: span 12; }
  .hero-left h1 .hero-sentence-2 { margin-top: 0.4em; }
  .hero { height: calc(100svh - 48px); min-height: 600px; }
}

@media (max-width: 900px) {
  .hero-left { grid-column: span 12; }
  .hero-right { grid-column: span 12; }
  .hero-right { flex-direction: row; gap: 48px; align-items: flex-start; }
  .hero-left h1 .hero-sentence-2 { margin-top: 0.4em; }

  .capabilities-inner { grid-template-columns: 1fr; gap: 32px; }

  .about-hero-left { grid-column: span 12; }
  .about-hero-right { grid-column: span 12; }
  .about-hero-right { max-width: 400px; }

  .about-caps-left { grid-column: span 12; }
  .about-caps-right { grid-column: span 12; }
  .about-caps-companies { grid-column: span 12; }

  .featured-article { grid-template-columns: 1fr; }
  .featured-article-image { aspect-ratio: 16/9; }

  .article-row { grid-template-columns: 80px 1fr; }
  .article-cat { display: none; }

  .project-body { grid-template-columns: 1fr; }
  .project-sidebar { grid-column: span 1; }
  .project-sidebar-inner { position: static; }
  .project-content { grid-column: span 1; }

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

@media (max-width: 768px) {
  #intro-splash p {
    white-space: normal;
    font-size: clamp(2.2rem, 7vw, 3.2rem);
    max-width: 80vw;
  }
}

@media (max-width: 640px) {
  .nav-links { gap: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-center { display: none; }
  .site-footer { padding: 32px var(--pad); }

  .work-grid { grid-template-columns: 1fr; }
  .work-list-row { grid-template-columns: 40px 1fr; }
  .work-list-type, .work-list-year { display: none; }

  .chrono-row { grid-template-columns: 1fr; }
  .chrono-years { text-align: left; }

  .ideas-header-row { flex-direction: column; }
}
