/* ================================
   Alice Maglio Portfolio
   Palette C — Pearl + Pink + Sage
   Jost + Inter
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg:      #FAFAF8;
  --text:    #1A1A22;
  --pink:    #E0288A;
  --sage:    #A8C8A0;
  --neutral: #D8D8D4;
  --muted:   #6B6B73;
  --white:   #FFFFFF;

  /* Contrast-safe variants for text on the light background */
  --sage-deep: #5A7A52;
  --pink-deep: #D4247F;   /* --pink fails AA under 18px; use this for small text */

  --font-head: 'Jost', sans-serif;
  --font-body: 'Inter', sans-serif;

  --nav-h: 64px;
  --pad:   40px;
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 100px;

  /* Elevation — one ramp, used everywhere */
  --shadow-1: 0 4px 14px rgba(26, 26, 34, 0.06);
  --shadow-2: 0 14px 36px rgba(26, 26, 34, 0.10);
  --shadow-3: 0 24px 56px rgba(26, 26, 34, 0.14);

  /* Lift distances */
  --lift-sm: -3px;
  --lift-md: -6px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

::selection { background: var(--pink); color: var(--bg); }

/* Visible keyboard focus everywhere — none existed before */
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 3px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ================================
   Nav
   ================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  border-color: var(--neutral);
  box-shadow: 0 1px 12px rgba(26, 26, 34, 0.06);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--text);
  transition: color 0.2s;
}

.nav-logo:hover { color: var(--pink); }

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

/* Simple underline that grows from left */
.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  position: relative;
  padding: 10px 0;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 7px;
  left: 0;
  width: 0%;
  height: 1.5px;
  border-radius: 2px;
  transition: width 0.28s var(--ease);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-link-writing::after { background: var(--sage); }
.nav-link-about::after   { background: var(--text); }
.nav-link-contact::after { background: var(--pink); }

.nav-link.active { color: var(--text); }
.nav-link.active::after { width: 100%; }

/* ================================
   Page wrapper
   ================================ */
.page { padding-top: var(--nav-h); min-height: 100vh; }

/* ================================
   Reveal animations
   ================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ================================
   Hero
   ================================ */
.hero {
  padding: 72px var(--pad) 56px;
  position: relative;
  overflow: visible;
}

/* Floating decorative shapes */
.hero-shape {
  position: absolute;
  font-size: 18px;
  pointer-events: none;
  user-select: none;
  animation: float 6s ease-in-out infinite;
}

.hero-shape-1 { color: var(--pink);    top: 48px;  left: 52%;   font-size: 14px; animation-delay: 0s;    animation-duration: 5.5s; }
.hero-shape-2 { color: var(--sage);    top: 100px; right: 12%;  font-size: 20px; animation-delay: 1.2s;  animation-duration: 7s;   }
.hero-shape-3 { color: var(--pink);    top: 210px; right: 28%;  font-size: 11px; animation-delay: 0.6s;  animation-duration: 6.5s; opacity: 0.6; }
.hero-shape-4 { color: var(--text);    top: 280px; left: 58%;   font-size: 16px; animation-delay: 2s;    animation-duration: 5s;   opacity: 0.2; }
.hero-shape-5 { color: var(--sage);    top: 160px; left: 44%;   font-size: 10px; animation-delay: 0.9s;  animation-duration: 8s;   opacity: 0.7; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-8px) rotate(15deg); }
  66%       { transform: translateY(4px) rotate(-10deg); }
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-headline .accent { color: var(--pink); }

.hero-sub {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
  max-width: 400px;
  margin-bottom: 6px;
}

.hero-meta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
}

.btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  display: inline-block;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-primary { background: var(--pink); color: var(--bg); }

/* ================================
   Work grid — itti style
   ================================ */
.work-section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 48px var(--pad) 20px;
}

.work-grid-itti {
  display: flex;
  gap: 32px;
  padding: 0 40px;
  align-items: flex-start;
}

.work-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Right column shifted down as a whole — matches itti */
.work-col-right {
  padding-top: 160px;
}

.work-card-itti {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.work-card-img-wrap {
  border-radius: var(--r-sm);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  border: 1px solid var(--neutral);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.work-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Coming-soon placeholder cover */
.work-card-soon { cursor: default; }

.soon-cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 14px,
      rgba(168, 200, 160, 0.22) 14px 15px
    ),
    linear-gradient(160deg, #EEF4EC 0%, var(--bg) 100%);
}

.soon-badge {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-deep);
  background: var(--white);
  border: 1px solid var(--neutral);
  border-radius: var(--r-pill);
  padding: 6px 14px;
}

.soon-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text);
}

.work-card-meta {
  padding: 14px 4px 8px;
}

.work-card-meta-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.2;
}

.work-card-meta-sub {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
}

/* ================================
   Work page (work.html) — kept for reference
   ================================ */
.work-list { display: flex; flex-direction: column; }

.work-row {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--neutral);
  text-decoration: none;
  transition: background 0.2s;
}

.work-row:first-child { border-top: 1px solid var(--neutral); }
.work-row-left { padding: 0 16px; }

.work-row-num {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.work-row-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
  transition: color 0.2s;
}

.work-row:hover .work-row-title { color: var(--pink); }

.work-row-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

.work-row-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

.tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--neutral);
  color: var(--muted);
}

.work-row-thumb {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--neutral);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}


/* ================================
   Section wrapper (writing/about inner pages)
   ================================ */
.section {
  padding: 0 var(--pad) 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ================================
   About page
   ================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  column-gap: 64px;
  row-gap: 40px;
  align-items: start;
  padding-top: 60px;
}

.about-headline { grid-column: 1; grid-row: 1; }
.about-text     { grid-column: 1; grid-row: 2; }
.about-photo    { grid-column: 2; grid-row: 1 / span 2; }

.about-headline {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 60px;
  margin-bottom: 28px;
}

.about-body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 520px;
}

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

.about-companies { margin-top: 40px; }

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

.company-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--neutral);
}

.company-name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.005em;
}

.company-role {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
}

/* The source photo is a landscape file rotated upright by its EXIF tag, so it
   arrives as an exact 3:4 with a lot of wall above the head. The frame clips a
   bottom-anchored scale, which crops that headroom off without touching the file. */
.about-photo {
  position: relative;
  margin: 0;
}

/* offset sage panel — the framing device */
.about-photo::before {
  content: '';
  position: absolute;
  inset: 24px -24px -24px 24px;
  background: var(--sage);
  border-radius: var(--r-lg);
}

.about-photo-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--neutral);
  box-shadow: var(--shadow-3);
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.22);
  transform-origin: 50% 100%;
}

.about-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
}

/* ================================
   Writing page
   ================================ */
.writing-hero {
  padding: 72px var(--pad) 40px;
}

.writing-headline {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.writing-sub {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  max-width: 480px;
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.writing-card {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-1);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  display: block;
}

.writing-card-type {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 10px;
}

.writing-card-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.writing-card-excerpt {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.writing-card-meta {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ================================
   Contact page
   ================================ */
.contact-hero {
  padding: 80px var(--pad) 0;
}

.contact-headline {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin-bottom: 20px;
}

/* Contact form */
.contact-form {
  margin-top: 36px;
  margin-bottom: 96px;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input[name="_gotcha"] {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

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

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--neutral);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.field input:hover,
.field textarea:hover { border-color: var(--muted); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(224, 40, 138, 0.12);
}

.field input[aria-invalid],
.field textarea[aria-invalid] { border-color: var(--pink); }

.field-error {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--pink-deep);
}

.field-error:empty { display: none; }

.form-submit {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bg);
  background: var(--pink);
  border: none;
  border-radius: var(--r-pill);
  padding: 13px 30px;
  align-self: flex-start;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s;
}

.form-submit:disabled { opacity: 0.55; cursor: default; }

.form-status {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  min-height: 20px;
}

.form-status:empty { display: none; }
.form-status.is-ok { color: var(--sage-deep); }
.form-status.is-error { color: var(--pink-deep); }

/* ================================
   Footer
   ================================ */
footer {
  border-top: 1px solid var(--neutral);
  padding: 32px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
}

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

.footer-link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--pink); }

/* ================================
   Page transitions
   ================================ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--pink);
  z-index: 9000;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

.page-transition.enter { transform: translateY(0); }

/* ================================
   Writing index rows
   ================================ */
.work-index-list {
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

.work-index-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--neutral);
  text-decoration: none;
  transition: background 0.2s;
}

.work-index-row:first-child { border-top: 1px solid var(--neutral); }

.work-index-title {
  font-family: var(--font-head);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.2s;
  flex: 1;
  min-width: 0;
}

.work-index-row:hover .work-index-title { color: var(--pink); }

.work-index-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.work-index-tags {
  display: flex;
  gap: 6px;
}

.work-index-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.work-index-tag:first-child {
  background: rgba(224, 40, 138, 0.12);
  color: var(--pink-deep);
}

.work-index-tag:last-child {
  background: rgba(168, 200, 160, 0.25);
  color: var(--sage-deep);
}

.work-index-arrow {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}

.work-index-row:hover .work-index-arrow {
  color: var(--pink-deep);
  transform: translateX(2px);
}

/* ================================
   Case study page
   ================================ */
.case-hero {
  padding: 72px var(--pad) 48px;
  max-width: 900px;
  margin: 0 auto;
}

.case-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 16px;
}

.case-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.case-summary {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 32px;
}

.case-meta-row {
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--neutral);
}

.case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-meta-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-meta-value {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.005em;
}

.case-cover {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 64px;
  padding: 0 var(--pad);
}

.case-cover img {
  width: 100%;
  border-radius: var(--r-lg);
}

.case-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--pad) 56px;
}

.case-section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 16px;
}

.case-section h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.case-section p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 640px;
}

.case-section p strong { font-weight: 500; color: var(--text); }

.case-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.case-section ul li {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}

.case-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pink);
}

.case-section blockquote {
  border-left: 3px solid var(--pink);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
}

.case-section blockquote p {
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
}

.case-img {
  margin: 32px 0;
}

.case-img img {
  width: 100%;
  border-radius: var(--r-md);
}

.case-img-caption {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

.case-img-full {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 var(--pad);
}

.case-img-full img {
  width: 100%;
  border-radius: var(--r-md);
}

.case-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.case-two-col img {
  width: 100%;
  border-radius: var(--r-md);
}

.case-takeaways {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 36px;
  margin: 32px 0;
}

.case-takeaways h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.case-takeaways ul li {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}

.case-takeaways ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage);
}

.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px var(--pad) 60px;
  border-top: 1px solid var(--neutral);
}

.case-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.case-nav a:hover { color: var(--pink); }


/* ================================
   Case study — metric tiles
   Stat tiles, not charts: these are headline numbers, and a
   two-bar chart of two numbers would carry less than the numerals do.
   ================================ */
.case-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.case-metric {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
}

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

.case-metric-value {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.case-metric-value .from {
  color: var(--muted);
  font-weight: 400;
}

.case-metric-note {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}

.case-metric-note strong { font-weight: 500; color: var(--sage-deep); }

/* Microcopy shown as the artifact it is — the writing was the design work here */
.case-copy-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
  max-width: 380px;
}

.case-copy-card + .case-copy-card { margin-top: 0; }

.case-copy-card h4 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.case-copy-card p {
  font-size: 14px;
  margin-bottom: 12px;
  max-width: 100%;
}

.case-copy-card .wait {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--neutral);
  padding-top: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
}

.case-copy-card .wait strong {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
}

.case-copy-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
  margin: 28px 0;
}

.case-copy-pair .case-copy-card { max-width: 100%; }

.case-version-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 8px;
}

/* ================================
   Lift & shadow — pointer devices only.
   On touch, :hover sticks after a tap, so these are gated.
   ================================ */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(var(--lift-sm));
    box-shadow: var(--shadow-2);
  }

  .work-card-itti:not(.work-card-soon):hover .work-card-img-wrap {
    transform: translateY(var(--lift-md));
    box-shadow: var(--shadow-3);
  }

  .work-row:hover { background: rgba(255, 255, 255, 0.5); }

  .form-submit:not(:disabled):hover {
    transform: translateY(var(--lift-sm));
    box-shadow: var(--shadow-2);
  }

  .work-row:hover .work-row-thumb {
    transform: translateY(var(--lift-sm));
    box-shadow: var(--shadow-2);
  }

  .writing-card:hover {
    transform: translateY(var(--lift-sm));
    box-shadow: var(--shadow-2);
  }

  .work-index-row:hover { background: rgba(255, 255, 255, 0.6); }
}

/* ================================
   Responsive
   ================================ */

/* --- Tablet / small laptop --- */
@media (max-width: 1000px) {
  :root { --pad: 28px; }

  .work-grid-itti { gap: 24px; padding: 0 var(--pad); }
  .work-col { gap: 48px; }
  .work-col-right { padding-top: 100px; }

  .about-grid { grid-template-columns: 1fr 300px; column-gap: 40px; }
}

/* --- Stack point --- */
@media (max-width: 860px) {
  :root { --pad: 20px; }

  .nav-links { gap: 20px; }

  /* Hero — shapes crowd the headline at this width, so keep only the
     two that sit clear of the text column */
  .hero { padding: 48px var(--pad) 40px; }
  .hero-shape-1,
  .hero-shape-4,
  .hero-shape-5 { display: none; }
  .hero-shape-2 { top: 24px; right: 6%; }
  .hero-shape-3 { top: 96px; right: 14%; }
  .hero-sub { max-width: 100%; }

  /* Single column below here — the offset two-column work grid and the
     text/photo split on About both stop working at this width. */
  .work-grid-itti { flex-direction: column; gap: 48px; }
  .work-col { gap: 48px; }
  .work-col-right { padding-top: 0; }

  .about-grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
    padding-top: 32px;
  }
  /* reset the explicit desktop row placement, or these overlap in one cell.
     DOM order then stacks as headline → photo → text. */
  .about-headline,
  .about-text,
  .about-photo { grid-column: 1; grid-row: auto; }
  .about-photo {
    max-width: 320px;
    margin-right: 22px;   /* room for the offset panel */
  }
  .about-photo::before { inset: 16px -16px -16px 16px; }
  .about-headline { margin-top: 0; }
}

/* --- Phone --- */
@media (max-width: 600px) {
  .hero-headline { font-size: clamp(38px, 12vw, 56px); }

  /* Writing index: title on one line, tags wrap beneath it.
     The arrow stays — it's the affordance that says "this is a link". */
  .work-index-row {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 16px 0;
  }
  .work-index-title { flex: 1 1 100%; font-size: 17px; }
  .work-index-right { flex: 1 1 100%; justify-content: space-between; }
  .work-index-tags { flex-wrap: wrap; }

  .contact-hero { padding: 56px var(--pad) 0; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { margin-top: 36px; margin-bottom: 72px; }
}

/* --- Small phone --- */
@media (max-width: 400px) {
  :root { --pad: 16px; }

  .nav-links { gap: 14px; }
  .nav-link { font-size: 12px; }

  .company-row { flex-direction: column; align-items: flex-start; gap: 2px; }

  .hero-shape { display: none; }
  .writing-card { padding: 18px; }
  .case-takeaways { padding: 20px; }
  .footer-links { gap: 14px; flex-wrap: wrap; justify-content: center; }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-shape { animation: none; }
  .page-transition { transition: none; }

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