/* ==========================================================================
   Amanda.com — Design System & Layout
   Tokens extracted from Figma (Amanda.com / Page 1)
   ========================================================================== */

:root {
  --bg-sky: #d5f2ff;
  --bg-cream: #ffefdd;
  --accent: #8c1b23;
  --accent-dark: #6d131a;
  --placeholder: #79d0ff;
  --arch-fill: #d9d9d9;
  --ink: #141414;
  --ink-muted: #4a4540;
  --white: #ffffff;

  --font-display: 'IM Fell Great Primer', Georgia, 'Times New Roman', serif;
  --font-sans: 'Avenir', 'Avenir Next', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* High-contrast monochrome fractal noise SVG for tactile paper grain */
  --grain-svg: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.6' intercept='-0.3'/%3E%3CfeFuncG type='linear' slope='1.6' intercept='-0.3'/%3E%3CfeFuncB type='linear' slope='1.6' intercept='-0.3'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg-sky);
  overflow-x: hidden;
  line-height: 1.5;
}

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

img {
  display: block;
}

/* Reusable paper grain overlay placed below text (z-index: 3) */
.grain-overlay {
  position: absolute;
  inset: 0;
  background-image: var(--grain-svg);
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.19;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 4;
}

.grain-overlay--soft {
  opacity: 0.16;
}

.grain-overlay--crimson {
  opacity: 0.24;
  mix-blend-mode: overlay;
  z-index: 4;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 28%, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 28%, black 80%, transparent 100%);
}

/* Ensure all text sits cleanly above grain layers */
.text-layer {
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   HOMEPAGE (Desktop - 1 -> Desktop - 3)
   ========================================================================== */

.home-page {
  background-color: var(--bg-sky);
  min-height: 100vh;
}

/* Full-screen responsive stage (no side margins on wide monitors) */
.home-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-sky);
}

/* --- Sky Hero (0 to ~1060px on 1440px scale) --- */
.sky-hero {
  position: relative;
  width: 100%;
  /* 1080 / 1440 = 75vw capped at 1080px */
  height: min(75vw, 1080px);
  background-color: var(--bg-sky);
}

.sky-hero__cloud-left {
  position: absolute;
  left: -1.18%;
  top: 42.13%;
  width: 31.11%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  animation: cloudFloatLeft 14s ease-in-out infinite alternate;
}

.sky-hero__cloud-right {
  position: absolute;
  left: 66.94%;
  top: 24.63%;
  width: 33.06%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  animation: cloudFloatRight 16s ease-in-out infinite alternate;
}

@keyframes cloudFloatLeft {
  from { transform: translateX(0); }
  to { transform: translateX(12px); }
}

@keyframes cloudFloatRight {
  from { transform: translateX(0); }
  to { transform: translateX(-14px); }
}

/* Winged Logo: transitions from Desktop - 1 center-large to Desktop - 3 top-small */
.hero-wing-btn {
  position: absolute;
  left: 50%;
  top: 26.76%; /* 289 / 1080 */
  width: 17.57%; /* 253 / 1440 */
  transform: translateX(-50%);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 6;
  transition:
    top 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-wing-btn img {
  width: 100%;
  height: auto;
}

.hero-wing-btn:hover {
  transform: translateX(-50%) translateY(-3px);
}

.sky-hero.is-story-ready .hero-wing-btn {
  top: 7.96%; /* 86 / 1080 */
  width: 11.04%; /* 159 / 1440 */
}

/* Desktop - 1 Initial Headline */
.hero-intro {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 90%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  opacity: 1;
  transition:
    opacity 0.65s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-intro__text {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.78vw, 40px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.hero-intro__accent {
  font-family: var(--font-display);
  font-size: clamp(46px, 6.67vw, 96px);
  color: var(--accent);
  line-height: 1;
  margin-left: 0.14em;
  vertical-align: baseline;
}

.sky-hero.is-story-ready .hero-intro {
  opacity: 0;
  transform: translate(-50%, -62%);
  pointer-events: none;
}

/* Desktop - 3 Manifesto Statement */
.hero-statement {
  position: absolute;
  left: 50%;
  top: 44.86%; /* 484.5 / 1080 */
  width: 75%; /* 1080 / 1440 */
  transform: translate(-50%, -44%);
  text-align: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s,
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.hero-statement p {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.33vw, 48px);
  line-height: 1.24;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.sky-hero.is-story-ready .hero-statement {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

/* Subtle scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  top: 68%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.8s ease 0.8s, transform 0.25s ease;
}

.sky-hero.is-story-ready .scroll-cue {
  opacity: 0.78;
}

.scroll-cue:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(3px);
}

/* --- House Section (Featured Works + 3-bar Nav) --- */
.house-section {
  position: relative;
  width: 100%;
  margin-top: -5%; /* overlaps smoothly onto sky at y=1009 */
  /* 1280px height at 1440px width = 88.89vw */
  min-height: min(88vw, 1260px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

.house-wall-svg {
  position: absolute;
  left: -1.67%;
  top: 0;
  width: 106.8%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* Solid cream continuation below the SVG wall */
.house-cream-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  bottom: 0;
  background-color: var(--bg-cream);
  z-index: 1;
}

.house-roof-svg {
  position: absolute;
  left: -6.25%;
  top: -1px;
  width: 109.375%;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* Bird Arch Window & Interactive Kingfisher */
.bird-arch {
  position: absolute;
  left: 28.4%; /* 409 / 1440 */
  top: clamp(72px, 6.4vw, 92px);
  width: 25.28%; /* 364 / 1440 */
}

.bird-arch__window {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.bird-arch__dot {
  position: absolute;
  left: 46.15%;
  top: 92.6%;
  width: 4.4%;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.bird-trigger {
  position: absolute;
  left: 33.6%;
  top: 25.3%;
  width: 24.2%;
  aspect-ratio: 88.075 / 90.118;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 12;
  pointer-events: auto;
}

.bird-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 12px;
}

.bird-trigger__shadow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bird-trigger__coloured {
  position: absolute;
  left: -18.17%;
  top: -11.1%;
  width: 136.34%;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Kingfisher Explanation Card (Figma 139:311 & 140:318) */
.kingfisher-card {
  position: absolute;
  left: 57.69%; /* (619 - 409) / 364 */
  top: -99.07%; /* (993 - 1100) / 108 */
  width: clamp(270px, 28.4vw, 409px);
  min-height: 149px;
  background-color: var(--white);
  border: 2px solid var(--accent);
  border-radius: 44px;
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
  z-index: 25;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.28s ease;
}

.kingfisher-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain-svg);
  background-size: 180px 180px;
  opacity: 0.14;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

.kingfisher-card__body {
  position: relative;
  z-index: 10;
}

.kingfisher-card__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(14px, 1.11vw, 16px);
  line-height: 1.4;
  color: #000000;
  margin-bottom: 2px;
}

.kingfisher-card__copy {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(13px, 1.11vw, 16px);
  line-height: 1.4;
  color: #000000;
}

/* Reveal colored bird & card on hover, keyboard focus, or tap toggle */
.bird-trigger:hover .bird-trigger__shadow,
.bird-trigger:focus-visible .bird-trigger__shadow,
.bird-arch.is-bird-active .bird-trigger__shadow {
  opacity: 0;
}

.bird-trigger:hover .bird-trigger__coloured,
.bird-trigger:focus-visible .bird-trigger__coloured,
.bird-arch.is-bird-active .bird-trigger__coloured {
  opacity: 1;
}

.bird-trigger:hover + .kingfisher-card,
.bird-trigger:focus-visible + .kingfisher-card,
.bird-arch.is-bird-active .kingfisher-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Featured Works Heading */
.featured-heading {
  position: relative;
  z-index: 10;
  padding-top: min(17.5vw, 252px);
  padding-left: 6.5%;
  width: 81.5%;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.44vw, 64px);
  color: var(--accent);
  line-height: 1.12;
  font-weight: 400;
}

/* House Interior Grid: 3 Arches + 3 Red Nav Bars */
.house-interior {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.72fr;
  gap: clamp(16px, 2.3vw, 34px);
  align-items: center;
  padding: clamp(28px, 3.6vw, 52px) 4.3% 0 6.53%;
}

/* Arched Project Cards */
.arch-card {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  width: 100%;
  aspect-ratio: 306 / 440;
  border-radius: 260px 260px 0 0;
  background-color: var(--arch-fill);
  box-shadow: inset 0px 10px 16px 6px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  padding: clamp(20px, 2.5vw, 36px) clamp(14px, 1.5vw, 22px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

/* Grain and recessed inner shadow inside arch card, strictly below text at z-index 10 */
.arch-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.arch-card:hover .arch-card__bg {
  transform: scale(1.04);
}

.arch-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0px 10px 16px 6px rgba(0, 0, 0, 0.25);
  background: linear-gradient(
    180deg,
    rgba(255, 239, 221, 0) 40%,
    rgba(224, 220, 214, 0.76) 76%,
    rgba(220, 216, 210, 0.92) 100%
  );
  pointer-events: none;
  z-index: 3;
}

.arch-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain-svg);
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 4;
}

.arch-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0px 10px 16px 6px rgba(0, 0, 0, 0.22),
    0px 14px 28px rgba(140, 27, 35, 0.12);
}

.arch-card__badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 239, 221, 0.88);
  color: var(--accent);
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

.arch-card__meta {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: 12px;
}

.arch-card__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  color: var(--accent);
  line-height: 1.15;
  margin-bottom: 4px;
}

.arch-card__sub {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.15vw, 16px);
  color: var(--ink);
  line-height: 1.35;
}

.arch-card__cta {
  display: inline-block;
  margin-top: 10px;
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.82;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.arch-card:hover .arch-card__cta {
  opacity: 1;
  transform: translateX(3px);
}

/* 3 Red Navigation Bars on Right of House */
.house-nav {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.9vw, 28px);
  align-items: flex-end;
  justify-self: end;
  width: 100%;
}

.nav-plank {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 224px;
  aspect-ratio: 216 / 43;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-plank__bg {
  position: absolute;
  left: -1.76%;
  top: -8.89%;
  width: 105.5%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* Grain on the red plank SVG, kept under the text label */
.nav-plank::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain-svg);
  background-size: 160px 160px;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}

.nav-plank__label {
  position: relative;
  z-index: 10;
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.25vw, 18px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bg-cream);
  white-space: nowrap;
}

.nav-plank:hover {
  transform: translateX(-6px);
}

.nav-plank.is-active .nav-plank__label {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Site Footer inside cream house base */
.site-footer {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: clamp(48px, 6vw, 88px) auto 0;
  padding: 28px clamp(20px, 5vw, 64px) 0;
  border-top: 1px solid rgba(140, 27, 35, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--ink-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer__links a {
  color: var(--accent);
  font-weight: 500;
}

.site-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   CASE STUDY PAGE (Desktop - 2)
   ========================================================================== */

.cs-page {
  position: relative;
  background-color: var(--bg-cream);
  min-height: 100vh;
  overflow-x: hidden;
}

.cs-canvas {
  position: relative;
  width: 100%;
  background-color: var(--bg-cream);
  overflow: hidden;
}

.cs-container {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* Top bar with Figma circular red back button + minimal nav */
.cs-topbar {
  position: relative;
  z-index: 20;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 4.6vw, 67px) clamp(20px, 4.8vw, 69px) 0;
}

.cs-back-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(54px, 5.76vw, 83px);
  height: clamp(54px, 5.76vw, 83px);
  transition: transform 0.25s ease;
}

.cs-back-btn__circle {
  position: absolute;
  left: -4.82%;
  top: 0;
  width: 109.64%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.cs-back-btn__icon {
  position: relative;
  z-index: 10;
  width: 34%;
  height: 34%;
  color: var(--bg-cream);
}

.cs-back-btn:hover {
  transform: translateX(-4px);
}

.cs-top-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  background: rgba(255, 239, 221, 0.88);
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(140, 27, 35, 0.2);
}

.cs-top-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}

.cs-top-nav a:hover,
.cs-top-nav a.is-active {
  color: var(--accent);
}

/* Giant Arch Hero (Desktop - 2: left 34px, width 1369px, rounded top 684.5px) */
.cs-hero-wrap {
  position: relative;
  max-width: 1440px;
  margin: clamp(-36px, -4vw, -60px) auto 0;
  padding: 0 clamp(12px, 2.36vw, 35px);
}

.cs-cloud-left {
  position: absolute;
  left: -35.7%;
  top: 22%;
  width: 52.36%;
  height: auto;
  z-index: 7;
  pointer-events: none;
}

.cs-cloud-right {
  position: absolute;
  left: 78.89%;
  top: 3%;
  width: 55.6%;
  height: auto;
  z-index: 7;
  pointer-events: none;
}

.cs-hero-arch {
  position: relative;
  z-index: 6;
  max-width: 1369px;
  margin: 0 auto;
  background-color: var(--arch-fill);
  border-radius: 684.5px 684.5px 44px 44px;
  box-shadow: inset 0px 10px 16px 6px rgba(0, 0, 0, 0.25);
  padding: clamp(48px, 3.8vw, 56px) clamp(24px, 6.6vw, 96px) clamp(48px, 5vw, 72px);
  overflow: hidden;
}

.cs-hero-arch::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain-svg);
  background-size: 180px 180px;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

.cs-hero-arch__logo {
  position: relative;
  z-index: 10;
  width: clamp(96px, 11vw, 159px);
  height: auto;
  margin: 0 auto clamp(28px, 4.5vw, 68px);
}

.cs-hero-arch__eyebrow {
  position: relative;
  z-index: 10;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.cs-hero-arch__headline {
  position: relative;
  z-index: 10;
  max-width: 1020px;
  margin: 0 auto clamp(32px, 4.5vw, 64px);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.33vw, 48px);
  line-height: 1.24;
  letter-spacing: 0.03em;
  color: var(--ink);
}

/* Device Mockup inside Arch (iPad Pro M4 11" / MacBook style) */
.cs-device-frame {
  position: relative;
  z-index: 10;
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 88px);
  background: #232325;
  border-radius: 30px;
  padding: clamp(14px, 1.8vw, 24px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
}

.cs-device-screen {
  position: relative;
  background: var(--placeholder);
  border-radius: 16px;
  aspect-ratio: 4 / 2.85;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 2.8vw, 36px);
}

.cs-device-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain-svg);
  background-size: 200px 200px;
  opacity: 0.15;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

.cs-device-ui-top {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cs-device-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 239, 221, 0.92);
  color: var(--accent);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
}

.cs-device-ui-center {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 520px;
  margin: auto;
}

.cs-device-ui-center h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 44px);
  color: var(--ink);
  margin-bottom: 8px;
}

.cs-device-ui-center p {
  font-size: clamp(13px, 1.25vw, 17px);
  color: rgba(20, 20, 20, 0.84);
}

.cs-device-ui-bottom {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-device-tag {
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

/* Metadata Grid inside Arch (exact Desktop - 2 proportions) */
.cs-meta-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  border-top: 1px solid rgba(20, 20, 20, 0.45);
}

.cs-meta-col-left {
  border-right: 1px solid rgba(20, 20, 20, 0.45);
  display: flex;
  flex-direction: column;
}

.cs-meta-col-right {
  display: flex;
  flex-direction: column;
}

.cs-meta-cell {
  padding: clamp(18px, 2.2vw, 28px) clamp(16px, 2.6vw, 36px);
}

.cs-meta-cell + .cs-meta-cell {
  border-top: 1px solid rgba(20, 20, 20, 0.45);
}

.cs-meta-label {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.22vw, 32px);
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  font-weight: 400;
}

.cs-meta-value {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.67vw, 24px);
  line-height: 1.42;
  color: var(--ink);
}

/* --- Case Study Body Sections --- */
.cs-body {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(56px, 6.5vw, 100px) clamp(20px, 9vw, 130px) 0;
}

/* Visual Placeholder Card (#79d0ff rounded 51px) */
.cs-visual-block {
  position: relative;
  z-index: 10;
  max-width: 1085px;
  margin: 0 auto clamp(48px, 5vw, 76px);
  min-height: clamp(260px, 34vw, 491px);
  border-radius: clamp(28px, 3.5vw, 51px);
  background-color: var(--placeholder);
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.cs-visual-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain-svg);
  background-size: 180px 180px;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

.cs-visual-block__content {
  position: relative;
  z-index: 10;
  max-width: 780px;
}

.cs-visual-block__tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 239, 221, 0.9);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.cs-visual-block__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 36px);
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.25;
}

.cs-visual-block__desc {
  font-size: clamp(15px, 1.35vw, 19px);
  color: rgba(20, 20, 20, 0.85);
}

/* Flow diagram chips inside visual placeholder */
.cs-flow-strip {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.cs-flow-node {
  padding: 8px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.cs-flow-arrow {
  color: var(--accent);
  font-weight: 700;
}

/* Pull Quote / Breathing Room */
.cs-pullquote {
  position: relative;
  z-index: 10;
  max-width: 928px;
  margin: 0 auto clamp(64px, 7.5vw, 120px);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.33vw, 48px);
  line-height: 1.26;
  letter-spacing: 0.03em;
  color: var(--ink);
}

/* 2-Column Narrative Row (matches CONTEXT / PROBLEM / GOAL layout) */
.cs-story-group {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 5vw, 72px);
  margin-bottom: clamp(64px, 7.5vw, 110px);
}

.cs-story-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.09fr);
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: 12px;
  align-items: start;
}

.cs-story-kicker {
  grid-column: 1 / -1;
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.67vw, 24px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.cs-story-lead {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.24;
  letter-spacing: 0.03em;
  color: var(--accent);
  font-weight: 400;
}

.cs-story-copy {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.67vw, 24px);
  line-height: 1.46;
  color: var(--ink);
}

.cs-story-copy ul {
  margin-top: 12px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-body > .cs-story-group:last-child {
  margin-bottom: clamp(20px, 2.5vw, 36px);
}

/* --- Lower Crimson Glow Zone (full-screen bleed, zero hard top edge) --- */
.cs-crimson-zone {
  position: relative;
  width: 100%;
  padding: clamp(120px, 11vw, 175px) 0 clamp(88px, 8vw, 128px);
  /* Smooth crimson radial aura reaching full transparency before the top edge */
  background:
    radial-gradient(
      ellipse 120% 58% at 50% 62%,
      #8c1b23 0%,
      #8c1b23 52%,
      rgba(140, 27, 35, 0.9) 62%,
      rgba(140, 27, 35, 0.68) 72%,
      rgba(140, 27, 35, 0.38) 82%,
      rgba(140, 27, 35, 0.14) 90%,
      rgba(140, 27, 35, 0.04) 95%,
      rgba(140, 27, 35, 0) 100%
    );
}

.cs-crimson-inner {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 9vw, 130px);
}

.cs-crimson-zone .cs-story-kicker,
.cs-crimson-zone .cs-story-copy {
  color: var(--white);
}

.cs-crimson-zone .cs-story-lead {
  color: var(--bg-cream);
}

.cs-crimson-zone .cs-pullquote {
  color: var(--bg-cream);
}

/* Case Study Footer Navigation (Next Project) */
.cs-next-bar {
  position: relative;
  z-index: 10;
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 32px;
  border-top: 1px solid rgba(255, 239, 221, 0.3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--bg-cream);
}

.cs-next-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--bg-cream);
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.25s ease;
}

.cs-next-link:hover {
  transform: translateX(4px);
}

.cs-next-home {
  font-weight: 500;
  color: var(--bg-cream);
  opacity: 0.9;
}

.cs-next-home:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   ALL PROJECTS & ABOUT ME PAGES (Shared Sky -> Cream Aesthetic)
   ========================================================================== */

.sub-page {
  background-color: var(--bg-sky);
  min-height: 100vh;
}

.sub-hero {
  position: relative;
  width: 100%;
  padding: clamp(32px, 4vw, 56px) clamp(20px, 6vw, 94px) clamp(56px, 6vw, 88px);
  overflow: hidden;
}

.sub-hero-inner,
.sub-content-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

.sub-header {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.sub-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.sub-brand img {
  width: 64px;
  height: auto;
}

.sub-brand span {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
}

.sub-title-block {
  position: relative;
  z-index: 10;
  max-width: 820px;
}

.sub-title-block h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 68px);
  color: var(--accent);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 16px;
}

.sub-title-block p {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink);
  line-height: 1.5;
}

.sub-content-wrap {
  position: relative;
  background-color: var(--bg-cream);
  width: 100%;
  padding: clamp(48px, 5.5vw, 84px) clamp(20px, 6vw, 94px) clamp(64px, 7vw, 100px);
  border-radius: 48px 48px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.04);
}

.projects-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.project-arch-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 220px 220px 24px 24px;
  background: var(--arch-fill);
  box-shadow: inset 0px 10px 16px 6px rgba(0, 0, 0, 0.22);
  padding: clamp(56px, 6vw, 84px) clamp(22px, 2.5vw, 32px) clamp(24px, 3vw, 34px);
  min-height: 410px;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.project-arch-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain-svg);
  background-size: 200px 200px;
  opacity: 0.2;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

.project-arch-tile:hover {
  transform: translateY(-5px);
}

.project-arch-tile__inner {
  position: relative;
  z-index: 10;
}

.project-arch-tile__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 239, 221, 0.8);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.project-arch-tile h2 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 10px;
}

.project-arch-tile p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 18px;
}

.project-arch-tile__meta {
  position: relative;
  z-index: 10;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 20, 20, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* About page two-column layout */
.about-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
}

.about-block + .about-block {
  margin-top: 40px;
}

.about-block h2 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(140, 27, 35, 0.2);
}

.about-item {
  margin-bottom: 22px;
}

.about-item h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.about-item__meta {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin: 2px 0 8px;
}

.about-item p,
.about-item li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}

.about-item ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--arch-fill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 960px) {
  .sky-hero {
    height: 72vh;
    min-height: 460px;
    max-height: 680px;
  }

  .hero-wing-btn {
    width: 140px;
    top: 22%;
  }

  .sky-hero.is-story-ready .hero-wing-btn {
    width: 96px;
    top: 8%;
  }

  .hero-statement {
    width: 88%;
    top: 52%;
  }

  .house-section {
    margin-top: -28px;
    min-height: auto;
  }

  .bird-arch {
    top: 38px;
    width: 34%;
    left: 33%;
  }

  .featured-heading {
    width: 100%;
    padding-left: 0;
    padding-top: clamp(110px, 21vw, 175px);
  }

  .house-interior {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 32px 24px 0;
    gap: 20px;
  }

  .house-nav {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
  }

  .nav-plank {
    max-width: 170px;
  }

  .cs-meta-grid,
  .cs-story-row,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .cs-meta-col-left {
    border-right: 0;
    border-bottom: 1px solid rgba(20, 20, 20, 0.45);
  }
}

@media (max-width: 600px) {
  .kingfisher-card {
    left: 50%;
    top: auto;
    bottom: 120%;
    width: min(86vw, 340px);
    min-height: auto;
    padding: 16px 20px;
    border-radius: 28px;
    transform: translateX(-50%) translateY(8px) scale(0.98);
  }

  .bird-trigger:hover + .kingfisher-card,
  .bird-trigger:focus-visible + .kingfisher-card,
  .bird-arch.is-bird-active .kingfisher-card {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .house-interior {
    grid-template-columns: 1fr;
  }

  .arch-card {
    max-width: 330px;
    margin: 0 auto;
  }

  .cs-hero-arch {
    border-radius: 220px 220px 28px 28px;
    padding-top: 40px;
  }

  .cs-top-nav {
    padding: 8px 14px;
    gap: 12px;
  }

  .cs-top-nav a {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sky-hero__cloud-left,
  .sky-hero__cloud-right {
    animation: none;
  }

  .hero-wing-btn,
  .hero-intro,
  .hero-statement,
  .scroll-cue,
  .arch-card,
  .nav-plank {
    transition: none;
  }
}
