/* ============================================================
   Tümay Turhan — personal site
   Design: calm, editorial, continuous
   ============================================================ */

/* === TOKENS =============================================== */
:root {
  /* Surface */
  --bg:        #faf7f3;
  --bg-alt:    #f3ede3;
  --bg-raised: #fffefb;

  /* Text */
  --text:   #1f1c19;
  --text-2: #5c554c;
  --text-3: #8a8074;
  --text-4: #b0a99f;

  /* Accent */
  --accent:     #b8956a;
  --accent-mid: rgba(184,149,106,0.22);
  --accent-dim: rgba(184,149,106,0.09);

  /* Line */
  --line:     rgba(30,27,24,0.07);
  --line-mid: rgba(30,27,24,0.13);

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Outfit', system-ui, -apple-system, sans-serif;

  /* Type scale */
  --tx:   0.68rem;
  --ts:   0.79rem;
  --tb:   0.94rem;
  --tm:   1.06rem;
  --tl:   1.22rem;
  --txl:  clamp(1.65rem, 3vw, 2.2rem);
  --th:   clamp(1.9rem, 4.2vw, 2.8rem);

  /* Space scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 14px;
  --s4: 20px;
  --s5: 30px;
  --s6: 46px;
  --s7: 68px;
  --sy: clamp(52px, 8vw, 80px);

  /* Shape */
  --r:  12px;
  --rL: 20px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  340ms;

  /* Layout */
  --max:    960px;
  --gutter: clamp(20px, 5vw, 48px);
  --hh:     66px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === BASE ================================================= */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

/* === NOISE TEXTURE ======================================= */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* === AMBIENT GLOW ======================================== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
}
.ambient__orb--1 {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  background: radial-gradient(circle, rgba(184,149,106,0.16) 0%, transparent 70%);
  top: -6%;
  right: -8%;
}
.ambient__orb--2 {
  width: min(70vw, 560px);
  height: min(50vw, 380px);
  background: radial-gradient(circle, rgba(245,238,226,0.72) 0%, transparent 65%);
  bottom: 10%;
  left: -12%;
}
.ambient__orb--3 {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  background: radial-gradient(circle, rgba(184,149,106,0.09) 0%, transparent 70%);
  top: 50%;
  left: 38%;
}

/* === LAYOUT =============================================== */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-wrap {
  position: relative;
  z-index: 1;
  padding-block: var(--sy);
}

/* === HEADER =============================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--hh);
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250,247,243,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.logo__mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
  flex-shrink: 0;
}
.logo__text {
  font-family: var(--sans);
  font-size: var(--ts);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s6);
  margin-left: auto;
}
.nav a {
  font-size: var(--ts);
  color: var(--text-3);
  letter-spacing: 0.03em;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover {
  color: var(--text);
}
.nav a:hover::after {
  transform: scaleX(1);
}

/* Mobile nav */
.nav-drawer {
  display: none;
  margin-left: auto;
  position: relative;
}
.nav-drawer-trigger {
  font-size: var(--tx);
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: var(--s2) var(--s3);
  border: 1px solid var(--line-mid);
  border-radius: var(--r);
  transition: all var(--dur) var(--ease);
}
.nav-drawer-trigger:hover {
  background: var(--accent-dim);
  border-color: var(--accent-mid);
  color: var(--text-2);
}
.nav-drawer-panel {
  position: absolute;
  top: calc(100% + var(--s2));
  right: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line-mid);
  border-radius: var(--r);
  padding: var(--s2);
  display: flex;
  flex-direction: column;
  min-width: 150px;
  box-shadow: 0 8px 32px rgba(30,27,24,0.09);
  z-index: 10;
}
.nav-drawer-panel a {
  font-size: var(--ts);
  color: var(--text-2);
  padding: var(--s2) var(--s3);
  border-radius: 8px;
  transition: all var(--dur) var(--ease);
}
.nav-drawer-panel a:hover {
  color: var(--text);
  background: var(--accent-dim);
}

/* === HERO ================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--hh);
}

.hero__flow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__flow-svg {
  width: 100%;
  height: 100%;
  animation: flow-breathe 38s ease-in-out infinite;
  transform-origin: center 68%;
}
@keyframes flow-breathe {
  0%, 100% { transform: scale(1.015) translateY(0); }
  50%       { transform: scale(1) translateY(-13px); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: var(--s7) calc(var(--s7) * 1.25);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--tx);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s3);
}
.hero-kicker::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-position {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-style: italic;
  color: var(--accent);
  margin-bottom: var(--s5);
}

.hero-h1 {
  font-family: var(--serif);
  font-size: var(--th);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 620px;
  margin-bottom: var(--s5);
}

.hero-lead {
  font-size: var(--tb);
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.72;
  margin-bottom: var(--s5);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--tx);
  font-weight: 400;
  color: rgba(138, 128, 110, 0.48);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: var(--s6);
}
.hero-meta__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  display: block;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}

/* === BUTTONS ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding-inline: var(--s5);
  font-family: var(--sans);
  font-size: var(--ts);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--r);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--text);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent);
}
.btn--ghost {
  border: 1px solid var(--line-mid);
  color: var(--text-2);
}
.btn--ghost:hover {
  border-color: var(--accent-mid);
  background: var(--accent-dim);
  color: var(--text);
}

/* === SECTION COMMON ====================================== */
.section-eyebrow {
  font-size: var(--tx);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: var(--s3);
}
.section-title {
  font-family: var(--serif);
  font-size: var(--txl);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--s3);
}
.section-lead {
  font-size: var(--tb);
  color: var(--text-2);
  max-width: 420px;
  line-height: 1.65;
}

/* === ABOUT =============================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--s6), 6vw, 96px);
  align-items: start;
}

.about__essay p {
  font-size: var(--tb);
  color: var(--text-2);
  line-height: 1.78;
  margin-bottom: var(--s4);
}
.about__essay p:last-child { margin-bottom: 0; }
.about__essay strong {
  color: var(--text);
  font-weight: 500;
}
.about__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--tl);
  color: var(--text);
  margin-top: var(--s5) !important;
  margin-bottom: 0 !important;
}

/* === CREDENTIALS TAB SWITCHER ============================ */
.cred-switcher {}

.cred-tabs {
  display: flex;
  border: 1px solid var(--line-mid);
  border-radius: var(--r);
  padding: 3px;
  gap: 3px;
  background: var(--bg-raised);
  margin-bottom: var(--s4);
}
.cred-tab {
  flex: 1;
  height: 32px;
  font-size: var(--tx);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-4);
  border-radius: calc(var(--r) - 3px);
  transition: all var(--dur) var(--ease);
}
.cred-tab[aria-selected="true"] {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(30,27,24,0.08);
}
.cred-tab:hover:not([aria-selected="true"]) {
  color: var(--text-2);
}

.cred-viewport { overflow: hidden; }
.cred-track {
  display: flex;
  transition: transform var(--dur) var(--ease);
}
.cred-panel { flex: 0 0 100%; }

.cred-list {
  display: flex;
  flex-direction: column;
}
.cred-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s4);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--line);
}
.cred-item:last-child { border-bottom: none; }
.cred-item__main { flex: 1; min-width: 0; }
.cred-item__title {
  display: block;
  font-size: var(--tb);
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.cred-item__org {
  display: block;
  font-size: var(--ts);
  color: var(--accent);
  margin-top: 1px;
}
.cred-item__desc {
  font-size: var(--ts);
  color: var(--text-3);
  line-height: 1.5;
  margin-top: var(--s1);
}
.cred-item__period {
  font-size: var(--tx);
  color: var(--text-4);
  white-space: nowrap;
  padding-top: 3px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* === FOCUS =============================================== */
.focus__header {
  margin-bottom: var(--s5);
}
.focus__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-mid);   /* gap colour becomes the grid lines */
  border: 1px solid var(--line-mid);
  border-radius: var(--r);
  overflow: hidden;
}
.focus-item {
  background: var(--bg);
  padding: var(--s5) var(--s4);
  transition: background var(--dur) var(--ease);
}
.focus-item:last-child {
  grid-column: span 2;           /* fill the empty 6th cell on 3-col */
}
.focus-item:hover { background: var(--bg-raised); }

.focus-item__eyebrow {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.focus-item__num {
  font-size: var(--tx);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.focus-item__area {
  font-size: var(--tx);
  color: var(--text-4);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.focus-item__hook {
  font-family: var(--serif);
  font-size: var(--tl);
  font-weight: 500;
  line-height: 1.22;
  color: var(--text);
  margin-bottom: var(--s2);
}
.focus-item__body {
  font-size: var(--ts);
  color: var(--text-3);
  line-height: 1.62;
}

/* === WORK ================================================= */
.work-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
  margin-bottom: var(--s6);
  flex-wrap: wrap;
}

/* Viewer frame */
.work-viewer {
  position: relative;
  border-radius: var(--rL);
  overflow: hidden;
  border: 1px solid var(--line-mid);
  background: var(--bg-alt);
}

.work-track-wrap { overflow: hidden; }

.work-track {
  display: flex;
  transition: transform 520ms var(--ease);
  will-change: transform;
}

.work-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 38fr 62fr;
  min-height: 500px;
}

/* Slide media */
.work-slide__media {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border-right: 1px solid var(--line);
}

/* Slide content */
.work-slide__content {
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.work-slide__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
  margin-bottom: var(--s4);
}
/* Badge sits above the title via reverse ordering */
.work-slide__top .badge {
  order: -1;
}
.work-slide__top h3 {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.28;
  color: var(--text);
  max-width: 100%;
}

.badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding-inline: var(--s2);
  font-size: var(--tx);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: var(--r);
  margin-top: 5px;
  white-space: nowrap;
}

/* Case study blocks */
.case-study {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  flex: 1;
}
.case-block__label {
  font-size: var(--tx);
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 3px;
}
.case-block p {
  font-size: var(--ts);
  color: var(--text-2);
  line-height: 1.62;
}
.case-block p strong {
  color: var(--text);
  font-weight: 500;
}
.case-block p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--accent-mid);
  transition: text-decoration-color var(--dur) var(--ease);
}
.case-block p a:hover { text-decoration-color: var(--accent); }

.work-slide__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
.work-slide__links a {
  font-size: var(--ts);
  color: var(--text-3);
  transition: color var(--dur) var(--ease);
}
.work-slide__links a::after { content: ' ↗'; font-size: 0.85em; }
.work-slide__links a:hover { color: var(--accent); }

/* Work nav chrome */
.work-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) var(--s5);
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.work-nav__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
}
.work-counter {
  font-size: var(--tx);
  color: var(--text-4);
  letter-spacing: 0.08em;
}

.work-dots {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.work-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-mid);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--dur) var(--ease);
}
.work-dot.is-active {
  background: var(--accent);
  transform: scale(1.3);
}
.work-dot:hover:not(.is-active) { background: var(--text-3); }

.work-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-mid);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  transition: all var(--dur) var(--ease);
}
.work-arrow:hover:not(:disabled) {
  border-color: var(--accent-mid);
  background: var(--accent-dim);
  color: var(--text);
}
.work-arrow:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

/* === INNER CAROUSEL ====================================== */
.project-carousel {
  position: relative;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}
.project-carousel-viewport {
  height: 100%;
  overflow: hidden;
}
.project-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 440ms var(--ease);
}
.project-carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}
.project-carousel-slide a,
.project-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.project-carousel-controls {
  position: absolute;
  bottom: var(--s3);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  z-index: 2;
}

.carousel-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(250,247,243,0.9);
  backdrop-filter: blur(6px);
  color: var(--text-2);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-mid);
  transition: all var(--dur) var(--ease);
}
.carousel-btn:hover {
  background: rgba(250,247,243,1);
  border-color: var(--accent-mid);
  color: var(--text);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: var(--s1);
}
.carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(30,27,24,0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--dur) var(--ease);
}
.carousel-dot.is-active {
  background: var(--text);
  transform: scale(1.2);
}

/* === ECOSYSTEM =========================================== */
.ecosystem__lead {
  font-size: var(--tb);
  color: var(--text-3);
  line-height: 1.65;
  max-width: 380px;
  margin-top: var(--s2);
  margin-bottom: var(--s6);
}
.ecosystem__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-mid);
  border: 1px solid var(--line-mid);
  border-radius: var(--r);
  overflow: hidden;
}
.ecosystem-item {
  background: var(--bg);
  padding: var(--s5) var(--s4);
  transition: background var(--dur) var(--ease);
}
.ecosystem-item:hover { background: var(--bg-raised); }
.ecosystem-item__title {
  font-family: var(--serif);
  font-size: var(--tl);
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--s2);
}
.ecosystem-link {
  display: inline-block;
  font-size: var(--ts);
  color: var(--accent);
  margin-bottom: var(--s3);
  transition: opacity var(--dur) var(--ease);
}
.ecosystem-link:hover { opacity: 0.65; }
.ecosystem-item__desc {
  font-size: var(--ts);
  color: var(--text-3);
  line-height: 1.6;
}

/* === FOOTER ============================================== */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  border-top: 1px solid var(--line-mid);
}
.site-footer__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--s7) var(--gutter);
}
.site-footer__row {
  display: grid;
  /* CONTACT | sep | message+email | sep | links | sep | tagline */
  grid-template-columns: auto 1px 1fr 1px 1fr 1px 1fr;
  align-items: center;
  column-gap: var(--s5);
}
.site-footer__vsep {
  display: block;
  width: 1px;
  height: 44px;
  background: var(--line-mid);
  justify-self: center;
}
.site-footer__label-group {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}
.site-footer__label {
  font-size: var(--tx);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
}
.site-footer__location {
  font-size: var(--tx);
  color: var(--text-5);
  letter-spacing: 0.04em;
}
.site-footer__main {}
.site-footer__message {
  font-family: var(--serif);
  font-size: var(--tl);
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: var(--s2);
}
.site-footer__email-line {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--ts);
}
.site-footer__arrow { color: var(--accent); }
.site-footer__email {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line-mid);
  transition: all var(--dur) var(--ease);
}
.site-footer__email:hover {
  color: var(--accent);
  text-decoration-color: var(--accent-mid);
}
.site-footer__links {
  font-size: var(--ts);
  line-height: 1.8;
}
.site-footer__links a {
  color: var(--text-3);
  transition: color var(--dur) var(--ease);
}
.site-footer__links a:hover { color: var(--text); }
.site-footer__dot {
  color: var(--text-4);
  margin-inline: var(--s1);
}
.site-footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--tb);
  color: var(--text-3);
}

.site-footer__credit {
  margin: var(--s6) 0 0;
  padding-top: var(--s5);
  border-top: 1px solid var(--line-mid);
  font-family: var(--sans);
  font-size: var(--tx);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-4);
}
.site-footer__credit-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), letter-spacing var(--dur) var(--ease);
}
.site-footer__credit-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-mid);
  letter-spacing: 0.08em;
}
.site-footer__credit-arrow {
  display: inline-block;
  margin-left: 0.2em;
  font-size: 0.9em;
  opacity: 0.75;
}

/* === SCROLL REVEAL ======================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 580ms var(--ease), transform 580ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE ========================================== */
@media (max-width: 900px) {
  .focus__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* On 2-col: last item spans both columns (fills row 3) */
  .focus-item:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-drawer { display: block; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--s7);
  }

  .work-slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .work-slide__media {
    height: 220px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .work-slide__content {
    padding: var(--s4);
  }

  .work-intro {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .site-footer__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s5);
  }
  .site-footer__vsep { display: none; }
}

@media (max-width: 520px) {
  .focus__grid {
    grid-template-columns: 1fr;
  }
  .focus-item:last-child { grid-column: span 1; }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
}
