/* Uğur Baran — çok sayfalı kişisel dijital sergi */

:root {
  color-scheme: light;
  --font-display: "Manrope", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --bg: #f6f7fb;
  --bg-soft: #eef1f8;
  --surface: #ffffff;
  --surface-soft: #f0f3f9;
  --surface-raised: rgba(255, 255, 255, 0.92);
  --ink: #111521;
  --ink-soft: #303747;
  --text: #5c6577;
  --muted: #6b7385;
  --line: rgba(20, 26, 42, 0.09);
  --line-strong: rgba(20, 26, 42, 0.15);
  --accent: #4866f5;
  --accent-strong: #344fd5;
  --cyan: #6adcf2;
  --violet: #9c72f4;
  --pink: #daa1f5;
  --success: #19804a;
  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48));
  --glass-border: rgba(255, 255, 255, 0.84);
  --shadow-soft: 0 14px 40px rgba(38, 49, 90, 0.08);
  --shadow-medium: 0 24px 70px rgba(38, 49, 90, 0.12);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-xl: 44px;
  --radius-pill: 999px;
  --page-pad: clamp(1.25rem, 4vw, 4.75rem);
  --container: 92rem;
  --section-space: clamp(5rem, 10vw, 9rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms;
  --normal: 360ms;
  --page-glow-a: rgba(78, 111, 255, 0.13);
  --page-glow-b: rgba(176, 114, 244, 0.11);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10131b;
  --bg-soft: #171c27;
  --surface: #191e2a;
  --surface-soft: #202634;
  --surface-raised: rgba(28, 34, 48, 0.94);
  --ink: #f4f6fc;
  --ink-soft: #d4d9e6;
  --text: #adb5c7;
  --muted: #9099ad;
  --line: rgba(232, 237, 255, 0.1);
  --line-strong: rgba(232, 237, 255, 0.17);
  --accent: #8195ff;
  --accent-strong: #a8b5ff;
  --success: #74dfa5;
  --glass: linear-gradient(135deg, rgba(31, 38, 54, 0.84), rgba(22, 27, 39, 0.68));
  --glass-border: rgba(255, 255, 255, 0.11);
  --shadow-soft: 0 16px 44px rgba(0, 0, 0, 0.2);
  --shadow-medium: 0 28px 76px rgba(0, 0, 0, 0.3);
  --page-glow-a: rgba(76, 102, 226, 0.12);
  --page-glow-b: rgba(145, 83, 218, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  scrollbar-gutter: stable;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 4%, var(--page-glow-a), transparent 28rem),
    radial-gradient(circle at 87% 18%, var(--page-glow-b), transparent 31rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}

body.page--gallery {
  --page-glow-a: rgba(75, 181, 226, 0.12);
  --page-glow-b: rgba(114, 129, 245, 0.09);
}

body.page--projects {
  --page-glow-a: rgba(72, 112, 246, 0.14);
  --page-glow-b: rgba(91, 204, 231, 0.09);
}

body.page--notes {
  --page-glow-a: rgba(137, 118, 246, 0.11);
  --page-glow-b: rgba(226, 154, 222, 0.09);
}

body.page--about {
  --page-glow-a: rgba(84, 205, 225, 0.11);
  --page-glow-b: rgba(161, 108, 242, 0.11);
}

body.page--contact {
  --page-glow-a: rgba(76, 104, 244, 0.14);
  --page-glow-b: rgba(213, 137, 239, 0.1);
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

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

[hidden] {
  display: none;
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

::selection {
  background: rgba(72, 102, 245, 0.2);
  color: var(--ink);
}

.container {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - (var(--page-pad) * 2)), 58rem);
  margin-inline: auto;
}

.page-section {
  padding-block: var(--section-space);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 3000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-160%);
  transition: transform var(--fast) ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display-title,
.page-title,
.section-title,
h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-title {
  max-width: 15ch;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.section-head > p {
  max-width: 38rem;
  justify-self: end;
  color: var(--text);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.glass {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
}

/* Büyük yüzeylerde gerçek blur yerine aynı optik katman kullanılır; kaydırma daha hafif kalır. */
.liquid-stage.glass,
.about-portrait.glass {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.86rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform var(--normal) var(--ease), border-color var(--fast), background var(--fast);
}

.button--primary {
  border-color: transparent;
  background: linear-gradient(118deg, #3856f5, #5c5dca 50%, #8050b7);
  box-shadow: 0 14px 30px rgba(62, 78, 204, 0.22);
  color: #ffffff;
}

.button--quiet {
  background: transparent;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.text-link span[aria-hidden="true"] {
  color: var(--accent-strong);
  transition: transform var(--normal) var(--ease);
}

.card-hit {
  position: absolute;
  z-index: 8;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.card-hit:focus-visible {
  outline-offset: -5px;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  padding: 1rem var(--page-pad) 0;
  pointer-events: none;
}

.site-nav {
  display: grid;
  width: min(100%, var(--container));
  min-height: 4.35rem;
  grid-template-columns: minmax(7rem, 1fr) auto minmax(7rem, 1fr);
  align-items: center;
  gap: 1rem;
  margin-inline: auto;
  padding: 0.5rem 0.55rem 0.5rem 1.3rem;
  border-radius: var(--radius-pill);
  pointer-events: auto;
}

.brand {
  width: max-content;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 720;
  letter-spacing: -0.07em;
}

.brand span {
  color: var(--accent);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
  transition: color var(--fast), background var(--fast);
}

.site-nav__link.is-active,
.site-nav__link[aria-current="page"] {
  background: rgba(72, 102, 245, 0.09);
  color: var(--accent-strong);
}

.site-nav__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

.icon-button {
  display: inline-grid;
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink);
  font-size: 1.1rem;
  transition: transform var(--normal) var(--ease), background var(--fast), border-color var(--fast);
}

html[data-theme="dark"] .icon-button {
  background: rgba(255, 255, 255, 0.05);
}

.theme-glyph::before {
  content: "☼";
}

html[data-theme="dark"] .theme-glyph::before {
  content: "◐";
}

.menu-button {
  display: none;
}

.menu-glyph,
.menu-glyph::before,
.menu-glyph::after {
  width: 1.1rem;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
}

.menu-glyph {
  position: relative;
}

.menu-glyph::before,
.menu-glyph::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-glyph::before { top: -0.34rem; }
.menu-glyph::after { top: 0.34rem; }

.mobile-menu {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 23, 0.54);
}

.mobile-menu__panel {
  position: relative;
  width: min(100%, 35rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1rem;
  border-radius: var(--radius-lg);
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.25rem 1rem 0.6rem;
  border-bottom: 1px solid var(--line);
}

.mobile-menu__nav {
  display: grid;
  padding-block: 0.8rem;
}

.mobile-menu__nav a {
  display: grid;
  min-height: 4.25rem;
  grid-template-columns: 2.25rem 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 620;
  letter-spacing: -0.04em;
}

.mobile-menu__nav a span {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.mobile-menu__nav a.is-active {
  color: var(--accent-strong);
}

/* Footer */
.site-footer {
  padding: 2rem var(--page-pad) 1.25rem;
}

.site-footer__inner {
  display: grid;
  min-height: 7rem;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.site-footer__copy {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.74rem;
}

/* Home */
.home-hero {
  min-height: calc(100svh - 6rem);
  display: grid;
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(30rem, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
}

.home-hero__copy {
  max-width: 43rem;
}

.home-hero__title {
  margin-bottom: 1.7rem;
  font-size: clamp(4.6rem, 8vw, 8.4rem);
  line-height: 0.84;
}

.home-hero__title span {
  color: var(--accent);
}

.home-hero__lead {
  max-width: 31rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 560;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.home-hero__description {
  max-width: 38rem;
  color: var(--text);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  color: var(--text);
  font-size: 0.78rem;
}

.availability::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #42bb73;
  box-shadow: 0 0 0 0.25rem rgba(66, 187, 115, 0.1);
  content: "";
}

.liquid-stage {
  position: relative;
  min-height: clamp(32rem, 48vw, 44rem);
  overflow: hidden;
  border-radius: var(--radius-xl);
  contain: paint;
  isolation: isolate;
}

.liquid-stage::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 24%, rgba(90, 207, 244, 0.22), transparent 30%),
    radial-gradient(circle at 76% 72%, rgba(165, 104, 240, 0.22), transparent 34%);
  content: "";
}

.liquid-stage__labels {
  position: absolute;
  z-index: 6;
  top: 1.5rem;
  left: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.liquid-stage__labels span {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.64);
  color: #202536;
  font-size: 0.68rem;
  font-weight: 700;
}

.liquid-stage__labels i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.liquid-group {
  position: absolute;
  inset: 11% 4% 3% 7%;
  animation: liquid-float 10s ease-in-out infinite alternate;
}

.liquid-form {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 14px 12px 28px rgba(255, 255, 255, 0.58),
    inset -18px -16px 34px rgba(57, 67, 182, 0.18),
    0 28px 60px rgba(64, 82, 190, 0.14);
}

.liquid-form--blue {
  top: 24%;
  left: 8%;
  width: 64%;
  aspect-ratio: 1.18;
  border-radius: 57% 43% 61% 39% / 46% 62% 38% 54%;
  background: radial-gradient(circle at 27% 18%, #ffffff, rgba(80, 203, 245, 0.86) 23%, rgba(66, 114, 237, 0.83) 54%, rgba(113, 77, 224, 0.7) 76%, rgba(208, 142, 243, 0.4));
  transform: rotate(-13deg);
}

.liquid-form--violet {
  right: 5%;
  bottom: 10%;
  width: 47%;
  aspect-ratio: 0.94;
  border-radius: 42% 58% 45% 55% / 59% 42% 58% 41%;
  background: radial-gradient(circle at 28% 18%, #ffffff, rgba(193, 158, 247, 0.72) 33%, rgba(139, 70, 222, 0.76) 65%, rgba(232, 157, 244, 0.38));
  opacity: 0.84;
  transform: rotate(23deg);
}

.liquid-form--clear {
  top: 9%;
  right: 3%;
  width: 43%;
  aspect-ratio: 1.05;
  border-color: rgba(68, 91, 178, 0.34);
  border-radius: 46% 54% 58% 42% / 39% 50% 50% 61%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(224, 235, 255, 0.18));
  box-shadow: inset 10px 9px 24px rgba(255, 255, 255, 0.7), 0 22px 46px rgba(61, 78, 162, 0.1);
  transform: rotate(17deg);
}

.liquid-bubble {
  position: absolute;
  bottom: 16%;
  left: 5%;
  width: 4.25rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: radial-gradient(circle at 28% 22%, #ffffff, rgba(110, 155, 245, 0.22) 58%, rgba(140, 90, 228, 0.25));
  box-shadow: inset 4px 4px 12px rgba(255, 255, 255, 0.65), 0 14px 30px rgba(67, 84, 188, 0.12);
}

@keyframes liquid-float {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0.55rem, -0.7rem, 0); }
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.featured-card {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.featured-card:first-child {
  grid-column: span 5;
}

.featured-card:nth-child(2) {
  grid-column: span 7;
}

.featured-card:nth-child(3) {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
}

.featured-card__media {
  min-height: 18rem;
  overflow: hidden;
  background: var(--surface-soft);
}

.featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--normal) var(--ease);
}

.featured-card__body {
  padding: 1.5rem;
}

.featured-card__body small {
  color: var(--accent-strong);
  font-weight: 700;
}

.featured-card__body h3 {
  margin: 0.7rem 0;
  font-size: clamp(1.5rem, 2.2vw, 2.4rem);
}

.featured-card__body p {
  max-width: 38rem;
  color: var(--text);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.route-card {
  position: relative;
  min-height: 25rem;
  grid-column: span 4;
  overflow: hidden;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.route-card--gallery {
  grid-column: span 6;
}

.route-card--notes {
  grid-column: span 6;
  background: linear-gradient(145deg, rgba(116, 135, 245, 0.09), rgba(210, 153, 237, 0.08)), var(--surface);
}

.route-card--about {
  grid-column: span 12;
  min-height: 18rem;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 2rem;
}

.route-card__title {
  display: block;
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 3.8vw, 4rem);
}

.route-card--about .eyebrow {
  display: block;
}

.route-card p {
  max-width: 34rem;
  color: var(--text);
}

.route-card .text-link {
  margin-top: 1.5rem;
}

.route-gallery-strip {
  display: grid;
  height: 13rem;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 0.5rem;
  margin-top: 2rem;
}

.route-gallery-strip img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.route-note-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.route-note-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.route-monogram {
  display: grid;
  width: min(100%, 15rem);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 42% 58% 47% 53% / 36% 44% 56% 64%;
  background:
    radial-gradient(circle at 25% 22%, rgba(85, 215, 239, 0.38), transparent 36%),
    radial-gradient(circle at 76% 78%, rgba(151, 104, 235, 0.36), transparent 39%),
    var(--surface-soft);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 750;
  letter-spacing: -0.08em;
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, rgba(72, 102, 245, 0.12), rgba(154, 114, 244, 0.1)), var(--surface);
  border: 1px solid var(--line);
}

.home-cta h2 {
  max-width: 13ch;
  font-size: clamp(2.3rem, 5vw, 5rem);
}

/* Inner page hero */
.page-hero {
  padding-block: clamp(5rem, 10vw, 9rem) clamp(3.5rem, 7vw, 6rem);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.6fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 8rem);
}

.page-title {
  max-width: 11ch;
  font-size: clamp(4.2rem, 9vw, 9rem);
}

.page-title span {
  color: var(--accent);
}

.page-hero__intro {
  max-width: 39rem;
  color: var(--text);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.page-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 2rem;
}

.page-stats div {
  padding: 1rem;
  border-top: 1px solid var(--line-strong);
}

.page-stats strong,
.page-stats span {
  display: block;
}

.page-stats strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.page-stats span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.page-index {
  justify-self: end;
  color: rgba(72, 102, 245, 0.13);
  font-family: var(--font-display);
  font-size: clamp(9rem, 18vw, 18rem);
  font-weight: 750;
  line-height: 0.72;
  letter-spacing: -0.1em;
  user-select: none;
}

/* Projects */
.project-filters {
  display: flex;
  max-width: 100%;
  gap: 0.4rem;
  margin-bottom: 2rem;
  padding: 0.45rem;
  overflow-x: auto;
  border-radius: var(--radius-pill);
  scrollbar-width: none;
}

.project-filters::-webkit-scrollbar { display: none; }

.filter-button {
  min-height: 2.75rem;
  flex: 0 0 auto;
  padding: 0.62rem 0.95rem;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.filter-button.is-active,
.filter-button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(40, 50, 88, 0.07);
  color: var(--accent-strong);
}

.project-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  position: relative;
  display: grid;
  min-height: 34rem;
  grid-column: span 6;
  grid-template-rows: minmax(18rem, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform var(--normal) var(--ease), border-color var(--fast);
}

.project-card[data-size="wide"] {
  min-height: 39rem;
  grid-column: span 7;
}

.project-card[data-size="tall"] {
  min-height: 39rem;
  grid-column: span 5;
}

.project-card__media {
  position: relative;
  height: auto;
  min-height: 18rem;
  overflow: hidden;
  background: var(--surface-soft);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--normal) var(--ease);
}

.project-card__number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #171b28;
  font-size: 0.66rem;
  font-weight: 750;
}

.project-card__body {
  padding: 1.45rem;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--accent-strong);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.5rem, 2.3vw, 2.4rem);
}

.project-card__body p {
  max-width: 40rem;
  color: var(--text);
  font-size: 0.9rem;
}

.project-card__status {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.4rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  min-height: 22rem;
  grid-column: span 4;
  aspect-ratio: 1.2;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.gallery-item--large {
  min-height: 36rem;
  grid-column: span 7;
  aspect-ratio: 1.4;
}

.gallery-item--tall {
  min-height: 36rem;
  grid-column: span 5;
  aspect-ratio: 0.82;
}

.gallery-item--wide {
  min-height: 25rem;
  grid-column: span 8;
  aspect-ratio: 1.65;
}

.gallery-item--small {
  grid-column: span 4;
  aspect-ratio: 1.12;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--normal) var(--ease);
}

.gallery-item figcaption {
  position: absolute;
  z-index: 3;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(13, 17, 27, 0.5);
  color: #ffffff;
}

.gallery-item figcaption span {
  font-weight: 700;
}

.gallery-item figcaption small {
  color: rgba(255, 255, 255, 0.76);
  text-align: right;
}

/* Notes */
.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  gap: 1.25rem;
}

.note-feature,
.note-row {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform var(--normal) var(--ease), border-color var(--fast);
}

.note-feature {
  min-height: 38rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.7rem, 4vw, 3.5rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 76% 18%, rgba(90, 208, 238, 0.15), transparent 31%),
    radial-gradient(circle at 18% 80%, rgba(153, 104, 236, 0.14), transparent 34%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.note-feature::before {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: rgba(72, 102, 245, 0.12);
  font-family: var(--font-display);
  font-size: clamp(8rem, 16vw, 15rem);
  font-weight: 750;
  line-height: 0.8;
  content: "01";
}

.note-feature h2 {
  position: relative;
  max-width: 12ch;
  margin: 1rem 0;
  font-size: clamp(2.8rem, 5.4vw, 5.6rem);
}

.note-feature p {
  position: relative;
  max-width: 38rem;
  color: var(--text);
}

.note-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.note-index {
  display: grid;
  gap: 0.75rem;
}

.note-row {
  min-height: 12rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.note-row h2 {
  max-width: 18ch;
  margin: 1rem 0 0.65rem;
  font-size: clamp(1.55rem, 2.7vw, 2.5rem);
}

.note-row p {
  max-width: 36rem;
  color: var(--text);
  font-size: 0.88rem;
}

.writing-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.writing-note strong {
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 3rem;
}

.writing-note p {
  max-width: 47rem;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.7rem);
  line-height: 1.35;
  letter-spacing: -0.035em;
}

/* About */
.about-intro {
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 9rem);
}

.about-portrait {
  position: sticky;
  top: 7rem;
  display: grid;
  width: min(100%, 28rem);
  aspect-ratio: 0.82;
  place-items: center;
  overflow: hidden;
  border-radius: 44% 56% 48% 52% / 38% 45% 55% 62%;
  background:
    radial-gradient(circle at 27% 21%, rgba(87, 215, 238, 0.35), transparent 35%),
    radial-gradient(circle at 75% 78%, rgba(151, 105, 234, 0.37), transparent 39%),
    var(--surface-soft);
  box-shadow: var(--shadow-medium);
}

.about-portrait span {
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 750;
  letter-spacing: -0.08em;
}

.about-copy h1 {
  max-width: 11ch;
  margin-bottom: 2rem;
  font-size: clamp(3.6rem, 7vw, 7.2rem);
}

.about-copy h1 > span {
  color: var(--accent);
}

.about-copy > p {
  max-width: 49rem;
  margin-bottom: 1.25rem;
  color: var(--text);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

.identity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.identity-chips li {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.curiosity-list {
  border-top: 1px solid var(--line-strong);
}

.curiosity-list details {
  border-bottom: 1px solid var(--line-strong);
}

.curiosity-list summary {
  display: grid;
  min-height: 7rem;
  grid-template-columns: 3rem minmax(13rem, 0.8fr) minmax(18rem, 1.2fr) auto;
  align-items: center;
  gap: 2rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.curiosity-list summary::-webkit-details-marker { display: none; }

.curiosity-list summary > span:first-child {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 750;
}

.curiosity-list summary strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 3rem);
  letter-spacing: -0.045em;
}

.curiosity-summary {
  color: var(--text);
}

.details-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform var(--normal) var(--ease), background var(--fast);
}

.curiosity-list details[open] .details-icon {
  background: var(--ink);
  color: var(--surface);
  transform: rotate(45deg);
}

.curiosity-detail {
  max-width: 54rem;
  margin-left: 5rem;
  padding: 0 0 2rem;
  color: var(--text);
}

.about-quote {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(125deg, rgba(72, 102, 245, 0.1), rgba(158, 108, 239, 0.09)), var(--surface);
}

.about-quote blockquote {
  position: relative;
  z-index: 2;
  max-width: 19ch;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.2vw, 5.4rem);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.about-quote cite {
  display: block;
  margin-top: 1.5rem;
  color: var(--muted);
  font-style: normal;
}

/* Contact */
.contact-hero {
  min-height: calc(100svh - 7rem);
  display: grid;
  align-items: center;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.contact-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.7fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 10rem);
}

.contact-title {
  max-width: 8ch;
  font-size: clamp(4.4rem, 10vw, 10rem);
}

.contact-lead {
  max-width: 42rem;
  margin-top: 1.7rem;
  color: var(--text);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
}

.email-panel {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
}

.email-panel > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.email-panel__address {
  display: block;
  margin: 1rem 0 1.5rem;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 620;
  letter-spacing: -0.045em;
}

.email-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(24rem, 1.25fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.contact-topics {
  display: grid;
  gap: 1rem;
}

.contact-topic {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-topic strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.contact-topic p {
  color: var(--text);
}

.social-list {
  display: grid;
  gap: 0.7rem;
}

.social-link {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform var(--normal) var(--ease), border-color var(--fast);
}

.social-link span {
  display: grid;
  gap: 0.2rem;
}

.social-link strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.social-link small {
  color: var(--muted);
}

/* Dialogs */
.modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.modal[open] {
  display: grid;
  place-items: center;
}

.modal:not([open]) {
  display: none;
}

.modal::backdrop {
  background: rgba(10, 13, 20, 0.68);
}

.modal__panel {
  position: relative;
  width: min(100%, 72rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  overscroll-behavior: contain;
}

.modal__close {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 1.35rem;
}

.project-modal__image {
  position: relative;
  aspect-ratio: 16 / 8;
  margin-top: -3rem;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

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

.project-modal__heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.project-modal__heading h2 {
  max-width: 15ch;
  margin-top: 0.6rem;
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.project-modal__heading p {
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-modal__meta {
  display: flex;
  gap: 1.5rem;
}

.project-modal__meta dt {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-modal__meta dd {
  color: var(--ink-soft);
  font-weight: 650;
}

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

.project-modal__body section {
  min-height: 12rem;
  padding: 2rem;
  border-bottom: 1px solid var(--line);
}

.project-modal__body section:nth-child(odd) {
  padding-left: 0;
  border-right: 1px solid var(--line);
}

.project-modal__body h3 {
  margin-bottom: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-modal__body p {
  color: var(--text);
}

.discipline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
}

.discipline-list li {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.72rem;
}

.note-modal__panel {
  width: min(100%, 54rem);
  padding: clamp(1.2rem, 4vw, 4rem);
}

.note-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.note-modal h2 {
  max-width: 13ch;
  margin: 1rem 0;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
}

.note-modal__lead {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.55;
}

.note-modal__content {
  max-width: 44rem;
  padding-top: 2rem;
}

.note-modal__content p {
  margin-bottom: 1.25rem;
  color: var(--text);
  line-height: 1.85;
}

.lightbox {
  padding: 0;
  background: rgba(7, 9, 14, 0.96);
}

.lightbox::backdrop {
  background: rgba(7, 9, 14, 0.96);
}

.lightbox__stage {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100dvh;
  grid-template-columns: 4.5rem 1fr 4.5rem;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.lightbox__figure {
  position: relative;
  display: grid;
  height: calc(100dvh - 2rem);
  place-items: center;
}

.lightbox__figure img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox__caption {
  position: absolute;
  z-index: 3;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(9, 12, 18, 0.72);
  color: #ffffff;
}

.lightbox__caption small {
  color: rgba(255, 255, 255, 0.74);
}

.lightbox__close {
  position: fixed;
  z-index: 5;
  top: 1rem;
  right: 1rem;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.lightbox__control {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.2rem;
}

.lightbox__counter {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  transform: translateX(-50%);
}

.has-image-error {
  position: relative;
  min-height: 12rem;
  background:
    radial-gradient(circle at 25% 20%, rgba(98, 211, 241, 0.3), transparent 35%),
    radial-gradient(circle at 78% 75%, rgba(153, 104, 235, 0.3), transparent 39%),
    var(--surface-soft);
}

.has-image-error::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  content: "Görsel yüklenemedi";
}

.copy-helper {
  position: fixed;
  top: -1000px;
  left: -1000px;
  opacity: 0;
}

@media (hover: hover) {
  .button:hover,
  .icon-button:hover {
    transform: translateY(-2px);
  }

  .site-nav__link:hover {
    background: rgba(72, 102, 245, 0.07);
    color: var(--ink);
  }

  .text-link:hover span[aria-hidden="true"] {
    transform: translateX(0.2rem);
  }

  .featured-card:hover img,
  .project-card:hover img,
  .gallery-item:hover img {
    transform: scale(1.02);
  }

  .project-card:hover,
  .note-feature:hover,
  .note-row:hover,
  .social-link:hover {
    border-color: rgba(72, 102, 245, 0.2);
    transform: translateY(-3px);
  }
}

@media (max-width: 63.9375rem) {
  :root {
    --page-pad: clamp(1.25rem, 3vw, 2rem);
  }

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

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .home-hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
    gap: 2rem;
  }

  .home-hero__title {
    font-size: clamp(4rem, 9vw, 6.4rem);
  }

  .liquid-stage {
    min-height: 31rem;
  }

  .featured-card:first-child,
  .featured-card:nth-child(2),
  .featured-card:nth-child(3) {
    grid-column: span 6;
    display: block;
  }

  .featured-card:nth-child(3) {
    grid-column: span 12;
  }

  .route-card,
  .route-card--gallery,
  .route-card--notes {
    grid-column: span 6;
  }

  .project-card,
  .project-card[data-size="wide"],
  .project-card[data-size="tall"] {
    min-height: 35rem;
    grid-column: span 6;
  }

  .gallery-item,
  .gallery-item--large,
  .gallery-item--tall,
  .gallery-item--wide,
  .gallery-item--small {
    min-height: 27rem;
    grid-column: span 6;
  }

  .notes-layout {
    grid-template-columns: 1fr 1fr;
  }

  .contact-hero__grid,
  .contact-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 52rem) {
  .home-hero {
    min-height: 0;
  }

  .home-hero__grid,
  .page-hero__grid,
  .about-intro,
  .contact-hero__grid,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .home-hero__copy {
    max-width: 44rem;
  }

  .liquid-stage {
    width: min(100%, 42rem);
    min-height: 35rem;
    justify-self: center;
  }

  .page-index {
    display: none;
  }

  .page-hero__intro {
    justify-self: start;
  }

  .about-portrait {
    position: relative;
    top: auto;
    width: min(76vw, 24rem);
  }

  .notes-layout {
    grid-template-columns: 1fr;
  }

  .note-feature {
    min-height: 32rem;
  }

  .curiosity-list summary {
    grid-template-columns: 2.5rem 1fr auto;
    gap: 1rem;
    padding-block: 1.25rem;
  }

  .curiosity-summary {
    grid-column: 2 / 3;
  }

  .details-icon {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .curiosity-detail {
    margin-left: 3.5rem;
  }
}

@media (max-width: 47.9375rem) {
  :root {
    --page-pad: 1.1rem;
    --section-space: clamp(4.5rem, 17vw, 6rem);
  }

  html {
    scroll-padding-top: 5.5rem;
  }

  .glass {
    background: var(--surface-raised);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header {
    padding: 0.6rem 0.6rem 0;
  }

  .site-nav {
    min-height: 3.8rem;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
  }

  .site-nav__actions .icon-button {
    width: 2.85rem;
    min-width: 2.85rem;
    height: 2.85rem;
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
  }

  .section-head > p {
    justify-self: start;
  }

  .home-hero {
    padding-block: 4.25rem 3rem;
  }

  .home-hero__title {
    font-size: clamp(3.8rem, 18vw, 5.8rem);
  }

  .home-hero__lead {
    font-size: 1.3rem;
  }

  .hero-actions,
  .email-panel__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .liquid-stage {
    min-height: clamp(24rem, 108vw, 32rem);
    border-radius: var(--radius-lg);
  }

  .liquid-group {
    animation: none;
  }

  .liquid-stage__labels {
    top: 1rem;
    left: 1rem;
  }

  .liquid-stage__labels span {
    padding: 0.4rem 0.62rem;
    font-size: 0.62rem;
  }

  .featured-grid,
  .route-grid,
  .project-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .featured-card,
  .featured-card:first-child,
  .featured-card:nth-child(2),
  .featured-card:nth-child(3),
  .route-card,
  .route-card--gallery,
  .route-card--notes,
  .route-card--about,
  .project-card,
  .project-card[data-size="wide"],
  .project-card[data-size="tall"],
  .gallery-item,
  .gallery-item--large,
  .gallery-item--tall,
  .gallery-item--wide,
  .gallery-item--small {
    grid-column: 1;
  }

  .featured-card:nth-child(3),
  .route-card--about {
    display: block;
  }

  .featured-card__media {
    min-height: 16rem;
  }

  .route-card {
    min-height: 22rem;
  }

  .route-monogram {
    margin-bottom: 1.5rem;
  }

  .home-cta {
    align-items: flex-start;
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .page-hero {
    padding-block: 4.5rem 2.5rem;
  }

  .page-title,
  .contact-title {
    font-size: clamp(3.6rem, 17vw, 6rem);
  }

  .page-stats {
    gap: 0.35rem;
  }

  .page-stats div {
    padding: 0.8rem 0.45rem;
  }

  .project-filters {
    margin-inline: calc(var(--page-pad) * -1);
    padding-inline: var(--page-pad);
    border-inline: 0;
    border-radius: 0;
  }

  .project-card {
    min-height: 32rem;
  }

  .project-card__media {
    min-height: 17rem;
  }

  .gallery-item,
  .gallery-item--large,
  .gallery-item--tall,
  .gallery-item--wide,
  .gallery-item--small {
    min-height: 25rem;
  }

  .gallery-item figcaption {
    display: grid;
    gap: 0.15rem;
  }

  .gallery-item figcaption small {
    text-align: left;
  }

  .note-feature {
    min-height: 29rem;
  }

  .writing-note {
    grid-template-columns: 1fr;
  }

  .about-copy h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .curiosity-list summary {
    grid-template-columns: 2rem 1fr 2.6rem;
  }

  .curiosity-list summary strong {
    font-size: 1.45rem;
  }

  .curiosity-summary {
    grid-column: 1 / -1;
    padding-left: 3rem;
  }

  .curiosity-detail {
    margin-left: 3rem;
  }

  .contact-hero {
    min-height: 0;
    padding-block: 4.5rem;
  }

  .contact-content {
    gap: 3rem;
  }

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

  .site-footer__copy {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    gap: 0.15rem;
  }

  .modal {
    padding: 0.45rem;
  }

  .modal__panel {
    max-height: calc(100dvh - 0.9rem);
    border-radius: var(--radius-md);
  }

  .project-modal__image {
    aspect-ratio: 4 / 3;
  }

  .project-modal__heading,
  .project-modal__body {
    grid-template-columns: 1fr;
  }

  .project-modal__heading {
    align-items: start;
  }

  .project-modal__body section,
  .project-modal__body section:nth-child(odd) {
    min-height: 0;
    padding: 1.5rem 0;
    border-right: 0;
  }

  .lightbox__stage {
    display: block;
    padding: 0.5rem;
  }

  .lightbox__figure {
    height: calc(100dvh - 1rem);
  }

  .lightbox__control {
    position: fixed;
    z-index: 6;
    bottom: 0.8rem;
  }

  .lightbox__control--previous { left: 0.8rem; }
  .lightbox__control--next { right: 0.8rem; }

  .lightbox__caption {
    right: 0.5rem;
    bottom: 4.5rem;
    left: 0.5rem;
  }
}

@media (max-width: 27rem) {
  .home-hero__title {
    font-size: 3.65rem;
  }

  .page-stats {
    grid-template-columns: 1fr;
  }

  .page-stats div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }

  .mobile-menu {
    padding: 0.4rem;
  }

  .mobile-menu__panel {
    max-height: calc(100dvh - 0.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }

  .liquid-group {
    animation: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--surface-raised);
  }
}

@media print {
  .site-header,
  .mobile-menu,
  .site-footer .icon-button,
  .project-filters,
  .card-hit,
  .modal {
    display: none;
  }

  body {
    background: #ffffff;
    color: #111111;
  }

  .page-section,
  .page-hero,
  .home-hero {
    min-height: 0;
    padding-block: 2rem;
  }
}
