/* ===========================================================
   Maddy Raff — Portfolio
   Craft style · Warm paper · Pastel · Subtle textures
   =========================================================== */

:root {
  --paper:        #F6EFE3;
  --paper-warm:   #FAF4E8;
  --paper-deep:   #EFE6D4;
  --ink:          #1F1A14;
  --ink-soft:     #4A4034;
  --ink-muted:    #8A7B66;
  --ink-faint:    #B8A88F;
  --line:         rgba(31, 26, 20, 0.08);
  --line-strong:  rgba(31, 26, 20, 0.14);

  --peach:        #FCD9C2;
  --peach-deep:   #4E7BE2;  /* primary accent — blue (variable name is legacy) */
  --rose:         #F4CFCB;
  --rose-deep:    #D88A8A;
  --sage:         #DDE6CF;
  --sage-deep:    #8FA38B;
  --butter:       #FAE9C4;
  --butter-deep:  #C49B6B;
  --lavender:     #E5DEEB;
  --lavender-deep:#9C8DAE;
  --pink:         #F8C2D0;
  --pink-deep:    #D8829C;

  --shadow-card:  0 1px 2px rgba(31,26,20,0.04), 0 12px 28px -12px rgba(31,26,20,0.12), 0 24px 48px -24px rgba(31,26,20,0.08);
  --shadow-lift:  0 1px 3px rgba(31,26,20,0.06), 0 24px 56px -16px rgba(31,26,20,0.18);

  --font-sans:   'Inter Tight', -apple-system, system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', ui-monospace, monospace;

  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
em, i {
  font-style: normal;
  font-weight: 500;
  color: var(--peach-deep);
}
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--peach-deep); color: var(--paper); }
a { color: inherit; text-decoration: none; transition: all 0.25s var(--ease); }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

/* Atmospheric wash — sky to cream, echoing the case-study deck gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(
    180deg,
    rgba(168, 204, 237, 0.34) 0%,
    rgba(200, 220, 238, 0.22) 18%,
    rgba(220, 225, 232, 0.10) 38%,
    rgba(228, 226, 218, 0.06) 58%,
    rgba(238, 228, 213, 0.16) 78%,
    rgba(245, 235, 220, 0.30) 100%
  );
}

/* Subtle paper grain — texture without noise */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main, footer, nav { position: relative; z-index: 1; }

/* ===========================================================
   LAYOUT
   =========================================================== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; }

@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 24px; }
  .section { padding: 72px 0; }
}

/* ===========================================================
   TYPOGRAPHY HELPERS
   =========================================================== */
.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--peach-deep);
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 0.5px;
  background: var(--peach-deep);
}

.hero-eyebrow-mark {
  flex-shrink: 0;
  display: block;
}

/* ===========================================================
   NAV — full-width sticky, translucent paper, pulse dot
   =========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(246, 239, 227, 0.72);
  border-bottom: 0.5px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

.nav-brand .accent { color: var(--peach-deep); font-weight: 700; }

.nav-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--peach-deep);
  box-shadow: 0 0 0 4px rgba(78, 123, 226, 0.18);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(78, 123, 226, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(78, 123, 226, 0.04); }
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 14px;
}

.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-links a.active {
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--peach-deep);
}

.nav-cta {
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper) !important;
  border-radius: 999px;
  font-size: 13px;
}

.nav-cta:hover { background: var(--peach-deep); }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.3s var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--peach-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn-ghost {
  background: var(--paper-warm);
  color: var(--ink);
  border: 0.5px solid var(--line-strong);
}

.btn-ghost:hover {
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-copy { font-family: inherit; cursor: pointer; }
.btn-copy .copy-icon {
  opacity: 0.55;
  transition: opacity 0.25s var(--ease);
  flex-shrink: 0;
}
.btn-copy:hover .copy-icon { opacity: 1; }
.btn-copied {
  background: var(--paper);
  border-color: var(--peach-deep);
  color: var(--peach-deep);
}

/* Channel-as-button with copy interaction */
button.contact-channel {
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  width: 100%;
}

.contact-channel.btn-copied .channel-arrow { color: var(--peach-deep); }

.copy-confirm {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--peach-deep);
}

/* ===========================================================
   HERO (homepage) — big serif, centered status pill
   =========================================================== */
.hero {
  padding: 100px 0 80px;
  position: relative;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  background: var(--paper-warm);
  border: 0.5px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--peach-deep);
  box-shadow: 0 0 0 3px rgba(78, 123, 226, 0.18);
}

.hero-headline {
  font-size: clamp(44px, 7.2vw, 100px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--ink);
  margin-bottom: 36px;
  max-width: 1080px;
}


.hero-headline em {
  font-style: normal;
  color: var(--peach-deep);
}

.hero-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 720px;
}

.hero-sub a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--peach-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero-sub a:hover { color: var(--peach-deep); }

.hero-scroll {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-scroll::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ink-muted);
}

/* ===========================================================
   SECTION HEADER — left-aligned with hairline + meta
   =========================================================== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 0.5px solid var(--line);
  padding-bottom: 24px;
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
}

/* Section header rendered as a small eyebrow (matches .about-eyebrow) */
.section-header-eyebrow {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 32px;
}

.section-header-eyebrow h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--peach-deep);
}

.section-header-eyebrow h2::before {
  content: '';
  width: 24px;
  height: 0.5px;
  background: var(--peach-deep);
}

.section-header h2 em {
  font-style: normal;
  color: var(--peach-deep);
}

.section-header .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

/* ===========================================================
   BENTO WORK GRID — pastel cards, mixed sizes, slight tilt
   =========================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.work-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 0.5px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-4px) rotate(0) !important;
  box-shadow: var(--shadow-lift);
}

.work-card.large    { grid-column: span 7; min-height: 480px; }
.work-card.medium   { grid-column: span 5; min-height: 480px; }
.work-card.half     { grid-column: span 6; min-height: 380px; }

.work-card.tilt-l { transform: rotate(-0.5deg); }
.work-card.tilt-r { transform: rotate(0.5deg); }

.work-card.peach   { background: var(--peach); }
.work-card.sage    { background: var(--sage); }
.work-card.butter  { background: var(--butter); }
.work-card.lavender { background: var(--lavender); }
.work-card.rose    { background: var(--rose); }
.work-card.paper-warm { background: var(--paper-warm); }

.work-card-visual {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.work-card-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-card-visual img {
  transform: scale(1.04);
}

/* Per-image crop focus — adjust each so the subject stays in frame */
.work-card.large .work-card-visual img    { object-position: 50% 30%; } /* College Saver — keep laptop + matcha */
.work-card.medium .work-card-visual img   { object-position: 50% 50%; } /* Eureka — flat design composition */
.work-card.half.butter .work-card-visual img { object-position: 50% 20%; } /* Menu Manager — keep chef's head + laptop */
.work-card.half.sage .work-card-visual img   { object-position: 50% 30%; } /* In-Product Help — keep woman + laptop */

.work-card-content {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 0.5px solid rgba(31, 26, 20, 0.10);
  background: var(--paper-warm);
}

.work-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.work-card-meta .case-num { color: var(--peach-deep); }

.work-card-title {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
}

.work-card-title strong { font-weight: 700; }
.work-card-title em { font-style: normal; }

.work-card-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 0.5px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 18px;
  transition: all 0.3s var(--ease);
  z-index: 3;
}

.work-card:hover .work-card-arrow {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-45deg);
  border-color: var(--ink);
}

@media (max-width: 900px) {
  .work-card.large, .work-card.medium, .work-card.half {
    grid-column: span 12; min-height: 360px;
  }
}

/* Capabilities card content (fills last bento slot) */
.work-capabilities {
  padding: 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  cursor: default;
}

.work-capabilities-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--peach-deep);
}

.work-capabilities-text {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}

.work-capabilities-text em { font-style: normal; }

.work-capabilities-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  padding: 5px 12px;
  background: rgba(31, 26, 20, 0.04);
  border: 0.5px solid rgba(31, 26, 20, 0.08);
  border-radius: 999px;
}

/* ============ Project mini-visuals — same as before ============ */
.viz-cs {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(78, 123, 226,0.18) 0%, transparent 100%);
}
.viz-cs-card {
  background: var(--paper);
  border-radius: 14px;
  padding: 20px;
  border: 0.5px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.viz-cs-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--peach-deep);
  margin-bottom: 8px;
}
.viz-cs-value {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 4px;
}
.viz-cs-value em { font-style: normal; color: var(--peach-deep); font-size: 0.6em; }
.viz-cs-bar {
  height: 6px;
  background: rgba(31,26,20,0.08);
  border-radius: 999px;
  margin-top: 12px;
  overflow: hidden;
  position: relative;
}
.viz-cs-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 64%;
  background: linear-gradient(90deg, var(--peach-deep), var(--butter-deep));
  border-radius: 999px;
}
.viz-cs-list {
  display: flex; flex-direction: column;
  gap: 6px; margin-top: 14px;
  font-size: 12px;
}
.viz-cs-list-item {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}
.viz-cs-list-item span:last-child { color: var(--ink); }
.viz-eu {
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, rgba(156, 141, 174, 0.12) 0%, transparent 100%);
}
.viz-eu-row { display: flex; gap: 8px; }
.viz-eu-swatch {
  flex: 1; height: 38px;
  border-radius: 8px;
  border: 0.5px solid rgba(31,26,20,0.10);
}

.viz-mm {
  padding: 24px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(196, 155, 107, 0.15) 0%, transparent 100%);
}
.viz-mm-chart {
  display: flex; align-items: flex-end;
  gap: 8px; height: 70px;
}
.viz-mm-bar {
  flex: 1;
  background: var(--peach-deep);
  border-radius: 4px 4px 0 0;
  opacity: 0.5;
}
.viz-mm-bar.tall { opacity: 1; background: var(--butter-deep); }
.viz-mm-list {
  display: flex; flex-direction: column;
  gap: 6px; margin-top: 14px;
}
.viz-mm-row {
  display: flex; justify-content: space-between;
  padding: 8px 12px;
  background: var(--paper);
  border-radius: 8px;
  border: 0.5px solid var(--line);
  font-size: 12px;
}
.viz-mm-row strong { font-weight: 500; }
.viz-mm-row .delta { color: var(--peach-deep); font-family: var(--font-mono); }

/* ===========================================================
   ABOUT — portrait card with washi tape + multi-paragraph bio + meta grid
   =========================================================== */
.about {
  padding: 100px 0;
  border-top: 0.5px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.about-portrait-frame {
  position: relative;
  width: 100%;
}

.about-portrait {
  aspect-ratio: 4/5;
  border-radius: 14px;
  background: var(--paper-warm);
  border: 0.5px solid var(--line-strong);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

/* Washi tape — half on the photo, half on the paper */
.washi-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 96px;
  height: 22px;
  background: rgba(78, 123, 226, 0.55);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(255, 255, 255, 0.18) 4px,
    rgba(255, 255, 255, 0.18) 5px
  );
  border-left: 0.5px dashed rgba(255, 255, 255, 0.35);
  border-right: 0.5px dashed rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 6px rgba(31, 26, 20, 0.08);
  z-index: 3;
  pointer-events: none;
}

.washi-tape.right {
  left: auto;
  right: -8px;
  top: 60%;
  transform: rotate(72deg);
  width: 60px;
  height: 18px;
  background: rgba(143, 163, 139, 0.5);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(255, 255, 255, 0.18) 4px,
    rgba(255, 255, 255, 0.18) 5px
  );
  border-left: 0.5px dashed rgba(255, 255, 255, 0.3);
  border-right: 0.5px dashed rgba(255, 255, 255, 0.3);
}

.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--peach-deep);
  margin-bottom: 24px;
}

.about-eyebrow::before {
  content: '';
  width: 24px;
  height: 0.5px;
  background: var(--peach-deep);
}

.about-headline {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 28px;
}

.about-headline em { font-style: normal; color: var(--peach-deep); }

.about-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.about-text strong { color: var(--ink); font-weight: 500; }

.about-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 0.5px solid var(--line-strong);
}

.about-meta-item .label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.about-meta-item .value {
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-portrait-frame { max-width: 200px; order: -1; }
}

/* ===========================================================
   CTA — left-aligned, mirrors the about section
   =========================================================== */
.cta {
  padding: 120px 0;
  border-top: 0.5px solid var(--line);
}

.cta-content { }

.cta-headline {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 28px;
}

.cta-headline em { font-style: normal; }

.cta-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  padding: 56px 0;
  border-top: 0.5px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-brand {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-muted);
}

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

.footer-links a:hover { color: var(--peach-deep); }

/* ===========================================================
   PROJECT PAGE
   =========================================================== */
.project-hero { padding: 56px 0 48px; }

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 56px;
  transition: color 0.25s var(--ease);
}

.project-back:hover { color: var(--peach-deep); }

.project-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--peach-deep);
  margin-bottom: 24px;
}

.project-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 1080px;
}

.project-title em { font-style: normal; color: inherit; }

.project-summary {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 56px;
}

.project-summary em {
  font-style: normal;
  color: var(--peach-deep);
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 28px 0;
  border-top: 0.5px solid var(--line-strong);
  border-bottom: 0.5px solid var(--line-strong);
}

.project-meta-item .label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.project-meta-item .value {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .project-meta { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}

/* Hero visual frame — paper-stock card with mock UI */
.project-hero-viz {
  margin: 64px 0 32px;
  height: 540px;
  border-radius: 24px;
  overflow: hidden;
  border: 0.5px solid var(--line-strong);
  background: linear-gradient(135deg, var(--peach) 0%, var(--rose) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
}

.project-hero-viz::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--butter);
  opacity: 0.4;
}

.project-hero-viz-frame {
  position: relative;
  width: 78%;
  max-width: 760px;
  aspect-ratio: 16/9;
  background: var(--paper);
  border-radius: 16px;
  border: 0.5px solid var(--line-strong);
  padding: 18px 22px;
  box-shadow: 0 30px 64px rgba(31,26,20,0.18);
  z-index: 1;
}

.project-hero-viz-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.project-hero-viz-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(31, 26, 20, 0.12);
}

.project-hero-viz-bar span:first-child { background: var(--peach-deep); }

.project-hero-viz-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px;
  height: calc(100% - 32px);
}

.project-hero-viz-side {
  background: var(--paper-warm);
  border: 0.5px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.project-hero-viz-row {
  height: 8px;
  background: rgba(31, 26, 20, 0.06);
  border-radius: 4px;
}

.project-hero-viz-row.active {
  background: var(--peach-deep);
  width: 70%;
}

.project-hero-viz-main {
  background: var(--paper-warm);
  border: 0.5px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-hero-viz-stat {
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}

.project-hero-viz-stat em {
  font-style: normal;
  color: var(--peach-deep);
  font-size: 0.55em;
}

.project-hero-viz-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

.project-hero-viz-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.project-hero-viz-chart-bar {
  flex: 1;
  background: var(--peach-deep);
  border-radius: 2px 2px 0 0;
  opacity: 0.5;
}
.project-hero-viz-chart-bar:nth-child(1) { height: 30%; }
.project-hero-viz-chart-bar:nth-child(2) { height: 45%; }
.project-hero-viz-chart-bar:nth-child(3) { height: 38%; }
.project-hero-viz-chart-bar:nth-child(4) { height: 62%; }
.project-hero-viz-chart-bar:nth-child(5) { height: 55%; }
.project-hero-viz-chart-bar:nth-child(6) { height: 78%; opacity: 0.75; }
.project-hero-viz-chart-bar:nth-child(7) { height: 92%; opacity: 1; background: var(--butter-deep); }

/* Project content sections — numbered, two-column */
.project-section { padding: 48px 0; }

.project-section-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 28px;
  align-items: baseline;
}

.project-section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

.project-section-num strong {
  color: var(--peach-deep);
  font-weight: 400;
  margin-right: 8px;
}

.project-section h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.project-section h3 em { font-style: normal; color: inherit; }

.project-prose {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}

.project-prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 720px;
}

.project-prose p strong { color: var(--ink); font-weight: 500; }
.project-prose p em {
  font-style: normal;
  color: var(--peach-deep);
}

@media (max-width: 768px) {
  .project-section-header,
  .project-prose { grid-template-columns: 1fr; gap: 16px; }
}

/* Pull quote — torn paper feel, sage card */
.pull-quote {
  margin: 72px 0;
  padding: 80px 56px 72px;
  background: var(--sage);
  border-left: 0.5px solid var(--line-strong);
  border-right: 0.5px solid var(--line-strong);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.pull-quote::before {
  content: '"';
  position: absolute;
  top: 32px;
  left: 32px;
  font-style: normal;
  font-size: 96px;
  color: var(--sage-deep);
  opacity: 0.45;
  line-height: 1;
  z-index: 0;
}

.pull-quote-text {
  font-style: normal;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.pull-quote-attr {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

/* Torn edges (top + bottom of pull quote) */
.torn-edge {
  position: absolute;
  left: -1px;
  right: -1px;
  width: calc(100% + 2px);
  height: 18px;
  z-index: 2;
  pointer-events: none;
  display: block;
}

.torn-top { top: -1px; }
.torn-bottom { bottom: -1px; transform: scaleY(-1); }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 56px 0;
  border-top: 0.5px solid var(--line-strong);
  border-bottom: 0.5px solid var(--line-strong);
}

.stat-item {
  padding: 36px 24px;
  border-right: 0.5px solid var(--line);
}

.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}

.stat-value em {
  font-style: normal;
  color: var(--ink);
  font-size: 0.55em;
  font-weight: 400;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 0.5px solid var(--line); }
}

/* Project images / visualizations */
.project-image {
  margin: 56px 0;
  border-radius: 20px;
  overflow: hidden;
  border: 0.5px solid var(--line-strong);
  height: 460px;
  background: var(--paper-warm);
  position: relative;
  box-shadow: var(--shadow-card);
}

/* Bulleted list inside project prose (e.g. design principles) */
.principle-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

.principle-list li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}

.principle-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--peach-deep);
}

.principle-list li strong { color: var(--ink); font-weight: 500; }

/* Hero image (full-width photo replacing the abstract mock UI) */
.project-hero-image {
  margin: 64px 0 32px;
  border-radius: 24px;
  overflow: hidden;
  border: 0.5px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  background: var(--paper-warm);
}

.project-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Project cards — used for mission goals, design principles, etc. */
.project-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 56px 0;
}

.project-cards-card {
  background: var(--paper-warm);
  border: 0.5px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-cards-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 12px;
}

.project-cards-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--peach-deep);
  margin-bottom: 4px;
}

.project-cards-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}

.project-cards-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 768px) {
  .project-cards { grid-template-columns: 1fr; gap: 12px; }
}

/* "Under construction" placeholder state for case studies still in progress */
.under-construction {
  text-align: center;
  padding: 96px 32px;
  background: var(--paper-warm);
  border: 0.5px dashed var(--line-strong);
  border-radius: 24px;
  margin: 32px 0;
}

.under-construction-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--peach-deep);
  margin-bottom: 18px;
}

.under-construction-headline {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 auto 16px;
  max-width: 560px;
}

.under-construction-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
}

.under-construction-text a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--peach-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.under-construction-text a:hover { color: var(--peach-deep); }

/* Figma deck embed — responsive 16:9 iframe */
.figma-embed {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 0.5px solid var(--line-strong);
  background: var(--paper-warm);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
}

.figma-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.project-image-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px;
  height: 100%;
  background: linear-gradient(135deg, var(--peach) 0%, var(--rose) 100%);
}

.project-image-screen {
  flex: 1;
  max-width: 240px;
  aspect-ratio: 9/16;
  background: var(--paper);
  border-radius: 16px;
  border: 0.5px solid var(--line-strong);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(31,26,20,0.10);
}

.project-image-screen-bar {
  height: 4px;
  background: rgba(31, 26, 20, 0.06);
  border-radius: 2px;
}
.project-image-screen-bar.full { width: 100%; }
.project-image-screen-bar.lg { width: 60%; }
.project-image-screen-bar.md { width: 80%; }
.project-image-screen-bar.sm { width: 40%; }
.project-image-screen-bar.peach { background: var(--peach-deep); height: 8px; }
.project-image-screen-bar.butter { background: var(--butter-deep); height: 6px; }

.project-image-screen .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(78, 123, 226, 0.3);
  margin-bottom: 4px;
}

.project-image-screen.featured {
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%);
  border-color: rgba(78, 123, 226, 0.5);
  transform: scale(1.05);
  box-shadow: 0 24px 48px rgba(31,26,20,0.16);
}

/* Two-up image grid */
.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 56px 0;
}

.image-pair > div {
  aspect-ratio: 4/3;
  border-radius: 20px;
  border: 0.5px solid var(--line-strong);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) { .image-pair { grid-template-columns: 1fr; } }

/* Mock UI cards inside image pair */
.mock-ui-card {
  background: var(--paper);
  border: 0.5px solid var(--line-strong);
  border-radius: 12px;
  padding: 20px;
  width: 78%;
  box-shadow: 0 12px 28px rgba(31,26,20,0.10);
}

/* Next project */
.next-project {
  border-top: 0.5px solid var(--line);
  padding: 72px 0;
  text-align: center;
}

.next-project-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.next-project-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 24px;
  transition: color 0.3s var(--ease);
}

.next-project-title em { font-style: normal; }
.next-project-title:hover { color: var(--peach-deep); }
.next-project-title:hover .next-arrow { transform: translateX(8px); }

.next-arrow {
  font-size: 0.6em;
  color: var(--ink-muted);
  transition: all 0.3s var(--ease);
}

/* ===========================================================
   CONTACT PAGE
   =========================================================== */
.contact-hero { padding: 56px 0 48px; position: relative; }

.contact-hero::before {
  content: '';
  position: absolute;
  top: 30%;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 123, 226, 0.18), transparent 60%);
  pointer-events: none;
}

.contact-headline {
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--ink);
  margin: 24px 0 48px;
  position: relative;
  z-index: 1;
}

.contact-headline em { font-style: normal; color: var(--peach-deep); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 0;
  border-top: 0.5px solid var(--line-strong);
  position: relative;
  z-index: 1;
}

.contact-info p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.contact-info p strong { color: var(--ink); font-weight: 500; }
.contact-info p em {
  font-style: normal;
  color: var(--peach-deep);
}

.contact-channels {
  display: flex;
  flex-direction: row;
  margin-top: 56px;
  text-align: left;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
}

.contact-channel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease);
  min-width: 0;
}

.contact-channel + .contact-channel {
  border-left: 0.5px solid var(--line);
}

.contact-channel:hover { background: rgba(78, 123, 226, 0.04); }
.contact-channel:hover .channel-name { color: var(--peach-deep); }
.contact-channel:hover .channel-arrow { color: var(--peach-deep); }

@media (max-width: 768px) {
  .contact-channels {
    flex-direction: column;
    border-bottom: none;
  }
  .contact-channel {
    padding: 20px 0;
    border-bottom: 0.5px solid var(--line);
  }
  .contact-channel + .contact-channel { border-left: none; }
  .contact-channel:hover { background: transparent; }
}

.channel-info { display: flex; flex-direction: column; gap: 4px; }

.channel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

.channel-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}

.channel-arrow {
  font-size: 18px;
  color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}

/* Contact form — paper card with washi tape */
.contact-form-card {
  background: var(--paper-warm);
  border: 0.5px solid var(--line-strong);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--peach-deep);
  margin-bottom: 8px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--line-strong);
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.005em;
  outline: none;
  transition: border-color 0.25s var(--ease);
  resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-faint); }

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--peach-deep); }

.form-field textarea {
  min-height: 110px;
  font-family: var(--font-sans);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238A7B66' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}

.form-field select option { background: var(--paper-warm); color: var(--ink); }

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
  transition: all 0.3s var(--ease);
}

.form-submit:hover {
  background: var(--peach-deep);
  transform: translateY(-2px);
}

.form-submit-arrow { transition: transform 0.3s var(--ease); }
.form-submit:hover .form-submit-arrow { transform: translateX(4px); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 56px; padding: 56px 0; }
}

/* FAQ */
.faq {
  padding: 80px 0;
  border-top: 0.5px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 64px;
}

.faq-item {
  padding: 22px 0;
  border-bottom: 0.5px solid var(--line);
}

.faq-q {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.faq-a {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 768px) { .faq-grid { grid-template-columns: 1fr; gap: 0; } }

/* ===========================================================
   REVEAL ANIMATION
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
