/* Andrea Turkson — portfolio
   Tokens follow the Figma design system (brand, grey scale, type scale). */

:root {
  /* Brand */
  /* Brand: drawn from the project cards */
  --indigo: #3A0CA3;
  --navy: #12297A;
  --magenta: #E0338A;
  --accent: #C2187A;          /* magenta, darkened so white button text passes contrast */
  --accent-pressed: #A01264;
  --teal: #2A9CC0;
  --sky: #6FD0F0;             /* teal, lightened for text on dark */
  --lilac: #F3F0FF;
  --lavender: #E6E1FA;

  /* Grey scale */
  --ink: #1A1A1A;
  --body: #3D3D3D;
  --secondary: #6B6B6B;
  --disabled: #9B9B9B;
  --border: #C7C7C7;
  --grey-200: #E4E4E4;
  --grey-50: #F2F2F2;
  --white: #FAFAFA;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: 64px;
  --max: 1312px;   /* 1440 frame minus 64px margins */
  --radius: 12px;
  --section-y: clamp(56px, 8vw, 96px);
}

/* 64px page margins; tightened on tablets and phones so content keeps its room */
@media (max-width: 900px) { :root { --gutter: 32px; } }
@media (max-width: 560px) { :root { --gutter: 20px; } }

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font: 400 16px/26px var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type scale ---------- */

.display {
  font: 800 clamp(34px, 5vw, 44px)/1.18 var(--serif);
  letter-spacing: -0.012em;
  color: var(--ink);
}
.h1 {
  font: 800 clamp(30px, 4vw, 34px)/1.24 var(--serif);
  letter-spacing: -0.0075em;
  color: var(--ink);
}
.h2 {
  font: 700 26px/34px var(--serif);
  letter-spacing: -0.004em;
  color: var(--ink);
}
.h3 { font: 700 20px/28px var(--serif); color: var(--ink); }
.h4 { font: 600 18px/26px var(--serif); color: var(--ink); }
.body-lg { font: 400 18px/30px var(--sans); }
.body-sm { font: 400 14px/22px var(--sans); }
.caption { font: 400 13px/18px var(--mono); letter-spacing: 0.002em; }
.label { font: 600 14px/20px var(--mono); letter-spacing: 0.0025em; }
.metric {
  font: 800 32px/38px var(--sans);
  letter-spacing: -0.0075em;
}

.measure { max-width: 68ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 28px;
  border: 2px solid transparent; border-radius: 10px;
  font: 700 15px/25px var(--mono);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-primary:active { background: var(--accent-pressed); }

.btn-secondary { background: var(--lavender); color: var(--indigo); }
.btn-secondary:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-secondary:active { background: #D5CDF5; }

/* Email CTA: frosted glass with a soft light travelling around its edge */
@property --orbit { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes orbit { to { --orbit: 360deg; } }

.btn-email {
  position: relative; isolation: isolate;
  border: 0; padding: 12px 30px;
  background: rgba(250, 250, 250, .1);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  color: var(--white);
}
.btn-email::before, .btn-email::after {
  content: ""; position: absolute; border-radius: inherit;
  background: conic-gradient(from var(--orbit),
    transparent 0deg 200deg,
    rgba(224, 51, 138, .9) 265deg,
    rgba(111, 208, 240, .95) 320deg,
    #FFFFFF 345deg,
    transparent 360deg);
  pointer-events: none;
}
/* one lap of light when the footer scrolls into view (stays under 5s), then it rests */
.btn-email.is-lit::before, .btn-email.is-lit::after { animation: orbit 4.5s linear 1; }
/* the crisp line of light on the border */
.btn-email::before {
  inset: 0; padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* its soft halo */
.btn-email::after { inset: -3px; z-index: -1; filter: blur(12px); opacity: .55; }
.btn-email:hover { background: rgba(250, 250, 250, .2); }
.btn-email:active { background: rgba(250, 250, 250, .3); }

.link {
  font: 600 16px/24px var(--sans);
  color: var(--sky);
  text-underline-offset: 4px;
}
.link:hover { color: var(--lilac); }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 12px; z-index: 50;
  margin-top: 12px;
}
.nav-bar {
  display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap;
  background: var(--ink);
  color: var(--lilac);
  border: 1px solid rgba(250, 250, 250, .14);
  border-radius: var(--radius);
  padding: 10px 12px 10px 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
}
.nav-name {
  font: 700 18px/26px var(--sans);
  color: var(--white); text-decoration: none;
  margin-right: auto;
}
.nav-links { display: flex; gap: 8px 36px; flex-wrap: wrap; }
.nav-links a {
  font: 400 14px/22px var(--sans);
  color: var(--lilac); text-decoration: none;
  padding-block: 10px;
}
.nav-links a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--magenta); }
.nav .btn { min-height: 40px; padding-block: 6px; }

/* Work dropdown: lists the case studies */
.nav-drop { position: relative; }
.nav-drop-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 0; border: 0; background: none;
  font: 400 14px/22px var(--sans); color: var(--lilac);
  cursor: pointer;
}
.nav-drop-toggle:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--magenta); }
.nav-drop-toggle svg { transition: transform .2s ease; }
.nav-drop-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-drop-menu {
  display: none;
  position: absolute; top: calc(100% + 14px); left: -16px; z-index: 5;
  min-width: 280px; padding: 8px;
  background: var(--ink);
  border: 1px solid rgba(250, 250, 250, .14); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}
.nav-drop.is-open .nav-drop-menu { display: block; }
.nav-links .nav-drop-menu a { display: block; padding: 10px 14px; border-radius: 8px; }
.nav-links .nav-drop-menu a:hover { background: #333333; text-decoration: none; }
.nav-links .nav-drop-menu a:first-child { color: var(--sky); margin-bottom: 4px; border-bottom: 1px solid rgba(250, 250, 250, .14); border-radius: 8px 8px 0 0; }

.nav-toggle { display: none; }

/* Phones: the links and CTA fold into a hamburger menu */
@media (max-width: 720px) {
  .nav { height: 62px; }          /* fixed, so the open menu overlays the page instead of pushing it down */
  .nav-bar { padding: 8px 8px 8px 16px; gap: 0 12px; }
  .nav-name { font-size: 16px; }
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 8px;
    background: none; color: var(--white);
    cursor: pointer;
  }
  .nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }

  .nav-links, .nav .btn { display: none; }
  .nav-bar.is-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    order: 3; width: 100%;
    margin-top: 8px; padding-top: 8px;
    border-top: 1px solid rgba(243, 240, 255, .2);
  }
  .nav-bar.is-open .nav-links a { font-size: 16px; padding-block: 12px; }
  .nav-drop-toggle { width: 100%; justify-content: space-between; padding: 12px 8px 12px 0; font-size: 16px; }
  .nav-drop-menu {
    position: static; min-width: 0;
    margin: 0 0 6px 4px; padding: 0 0 0 12px;
    border: 0; border-left: 2px solid var(--magenta); border-radius: 0;
    box-shadow: none;
  }
  .nav-bar.is-open .nav-links .nav-drop-menu a { padding: 9px 0; font-size: 15px; border-radius: 0; }
  .nav-bar.is-open .nav-links .nav-drop-menu a:first-child { border-bottom: 0; margin-bottom: 0; }
  .nav-links .nav-drop-menu a:hover { background: none; text-decoration: underline; }
  .nav-bar.is-open .btn { display: inline-flex; order: 4; width: calc(100% - 8px); margin: 8px 8px 8px 0; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section-head { margin-bottom: 40px; }
.section-head p { margin-top: 16px; }

.on-lilac { background: var(--lilac); }
.on-white { background: var(--white); }
.on-grey { background: var(--grey-50); }
.on-lavender { background: var(--lavender); }

.on-ink { background: var(--ink); color: var(--grey-200); }
.on-indigo { background: linear-gradient(120deg, var(--indigo) 0%, var(--navy) 100%); color: var(--lilac); }
.on-ink .h1, .on-ink .h2, .on-ink .h3, .on-ink .h4,
.on-indigo .h1, .on-indigo .h2, .on-indigo .h3, .on-indigo .h4 { color: var(--white); }

/* ---------- Home hero ---------- */

.hero {
  background:
    radial-gradient(60% 70% at 4% 0%, rgba(224, 51, 138, .85) 0%, transparent 62%),
    radial-gradient(50% 70% at 100% 100%, rgba(42, 156, 192, .7) 0%, transparent 65%),
    linear-gradient(135deg, #7A1FB5 0%, var(--indigo) 45%, var(--navy) 100%);
  margin-top: -160px;              /* slides under the sticky nav */
  padding-top: calc(160px + clamp(24px, 5vw, 64px));
  padding-bottom: clamp(48px, 7vw, 88px);
}
.hero-grid {
  display: grid; gap: 40px 56px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.hero .display { color: var(--white); }
.hero :focus-visible { outline-color: #FFFFFF; }   /* magenta ring is under 3:1 on the hero gradient */
.hero-lede {
  margin-top: 24px;
  font: 600 clamp(20px, 2.4vw, 24px)/1.4 var(--serif);
  color: var(--lilac);
  max-width: 24em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero-photo {
  position: relative; isolation: isolate;
  aspect-ratio: 5 / 4.4;
  border-radius: var(--radius);
}
/* frosted pink pane offset behind the photo */
.hero-photo::before {
  content: ""; position: absolute; z-index: -1;
  inset: 16px -16px -16px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .45);
  background: linear-gradient(135deg, rgba(255, 190, 225, .55) 0%, rgba(240, 90, 165, .6) 45%, rgba(224, 51, 138, .7) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 30px rgba(18, 41, 122, .35);
}
.hero-photo img { width: 100%; height: 100%; border-radius: var(--radius); background: var(--lavender); object-fit: cover; object-position: 50% 42%; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 460px; margin-right: 16px; }
}

/* ---------- Process steps ---------- */

.steps {
  display: grid; gap: 40px 32px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.step { border-top: 2px solid var(--ink); padding: 16px 16px 0; }
.step-num { font: 400 13px/18px var(--mono); color: var(--secondary); }
.step .h4 { margin-top: 20px; }
.step p { margin-top: 16px; font-size: 14px; line-height: 22px; color: var(--secondary); }
.on-lavender .step { border-color: var(--indigo); }
.on-lavender .step p, .on-lavender .step-num { color: var(--body); }

/* Home "How I work": frosted-glass cards over soft brand-colour light */
#approach {
  background:
    radial-gradient(34% 46% at 14% 72%, rgba(224, 51, 138, .34) 0%, transparent 70%),
    radial-gradient(30% 44% at 46% 58%, rgba(122, 31, 181, .34) 0%, transparent 70%),
    radial-gradient(34% 48% at 84% 76%, rgba(42, 156, 192, .42) 0%, transparent 70%),
    var(--white);
}
#approach .steps { gap: 24px; }
#approach .step {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: var(--radius);
  background: rgba(250, 250, 250, .5);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 8px 28px rgba(58, 12, 163, .12);
}
#approach .step p, #approach .step-num { color: var(--body); }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Project cards ---------- */

/* Each card has two faces. The selected card shows its front; the others are
   turned 180deg and show their back, which carries the same colours. */
.project {
  position: relative;
  display: block;
  border-radius: var(--radius);
  color: var(--white); text-align: center; text-decoration: none;
  perspective: 1400px;
}
.project-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
  transition: transform .8s cubic-bezier(.4, 0, .2, 1);
}
.project.is-active .project-inner { transform: rotateY(0deg); }
.project-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.project-front { justify-content: flex-end; padding: 28px 32px; }
.project-back {
  align-items: center; justify-content: center;
  transform: rotateY(180deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.project .h3 { color: var(--white); white-space: nowrap; }
/* a preview of the project's own screens, above its name */
.project-shot {
  flex: 1 1 auto; min-height: 0; width: 100%;
  margin-bottom: 20px;
  object-fit: cover; object-position: top center;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
.project-front .h3 { font-size: 26px; line-height: 34px; }
.project-front .caption { margin-top: 14px; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.project-back .h3 {
  font-size: 18px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.project:not(.is-active):hover .project-back { filter: brightness(1.2); }

.project-aesthetics .project-face, .case-hero.hero-aesthetics {
  background:
    radial-gradient(120% 70% at 10% 0%, #E0338A 0%, transparent 60%),
    linear-gradient(180deg, #7A1FB5 0%, #3A0CA3 100%);
}
.project-aquarium .project-face, .case-hero.hero-aquarium {
  background:
    radial-gradient(110% 60% at 85% 12%, #2A9CC0 0%, transparent 62%),
    linear-gradient(180deg, #1B3567 0%, #10224A 100%);
}
.project-directpass .project-face, .case-hero.hero-directpass {
  background:
    radial-gradient(100% 70% at 40% 30%, #2C6FD9 0%, transparent 65%),
    linear-gradient(180deg, #12297A 0%, #0B1640 100%);
}
.project-wellness .project-face, .case-hero.hero-wellness {
  background:
    linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(100% 70% at 50% 20%, #8A22E0 0%, transparent 70%),
    linear-gradient(180deg, #4A0FA0 0%, #1E0A5C 100%);
}

/* ---------- Numbers ---------- */

.numbers { padding-block: 56px; }
.numbers-grid, .stats {
  display: grid; gap: 32px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat { text-align: center; }
.stat dt { font-size: 14px; line-height: 22px; margin-top: 10px; }
.stat dd { color: var(--sky); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.numbers .h2 { margin-bottom: 32px; }

@media (max-width: 720px) { .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- About + skills ---------- */

.prose p + p { margin-top: 20px; }

.skills { margin-top: 56px; }
.tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tab {
  font: 600 16px/24px var(--serif);
  color: var(--ink); background: var(--lavender);
  border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer;
}
.tab:hover { background: #D5CDF5; }
.tab { transition: box-shadow .3s ease, background-color .2s ease; }
/* the selected skill lights up */
.tab[aria-selected="true"] {
  background: linear-gradient(135deg, #7A1FB5 0%, var(--indigo) 100%);
  color: #FFFFFF;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .7) inset,
    0 0 14px 2px rgba(224, 51, 138, .65),
    0 0 36px 8px rgba(122, 31, 181, .45);
  animation: glow 2.4s ease-in-out 2;   /* two pulses (under 5s) each time a skill is selected, then it holds */
}
@keyframes glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .7) inset,
      0 0 8px 1px rgba(224, 51, 138, .4),
      0 0 20px 3px rgba(122, 31, 181, .25);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .7) inset,
      0 0 16px 3px rgba(224, 51, 138, .75),
      0 0 42px 10px rgba(122, 31, 181, .5);
  }
}
.tab-panel { margin-top: 20px; min-height: 140px; }
.tab-panel ul { list-style: disc; padding-left: 20px; }
.tab-panel li { font-size: 14px; line-height: 24px; }

/* ---------- Footer / contact ---------- */

.contact {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--lilac);
  padding-block: var(--section-y) 32px;
}
.contact .display { color: var(--white); max-width: 12em; }
.contact-note { margin-top: 32px; color: var(--sky); }
.contact .btn { margin-top: 40px; }
.contact-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 72px; padding-top: 24px;
  border-top: 1px solid rgba(243, 240, 255, .35);
}

/* ---------- Case study ---------- */

.case-hero {
  background: var(--indigo);   /* each page overrides this with its project card's colours */
  color: var(--lilac);
  margin-top: -160px;
  padding-top: calc(160px + clamp(24px, 4vw, 48px));
  padding-bottom: 56px;
}
.case-hero .caption { color: var(--white); }   /* white keeps 4.5:1 over the brightest part of each hero gradient */
.case-hero .display { color: var(--white); margin-top: 20px; }
.case-lede {
  margin-top: 24px;
  font: 600 18px/28px var(--serif);
  color: var(--lilac); max-width: 60ch;
}
.case-meta {
  display: grid; gap: 24px 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid rgba(243, 240, 255, .45);
}
.case-meta dt { font: 600 18px/26px var(--serif); color: var(--white); }
.case-meta dd { margin-top: 12px; font-size: 14px; line-height: 22px; color: var(--lavender); }
.case-hero .stats { margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(140px, 200px)); }
.case-hero .stat dd { color: var(--white); }
.case-hero .stat { text-align: left; }

@media (max-width: 640px) { .case-meta { grid-template-columns: 1fr; } }

.cards-2 { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .cards-2 { grid-template-columns: 1fr; } }

.card { border-radius: var(--radius); padding: 24px; }
.card p { margin-top: 12px; font-size: 14px; line-height: 22px; }
.on-ink .card { background: #333333; border: 1px solid #555555; }
.on-lilac .card { background: var(--white); border: 1px solid var(--lavender); border-top: 3px solid var(--magenta); }

.swatches { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.swatch {
  display: flex; align-items: flex-end;
  min-height: 72px; padding: 12px 14px;
  border-radius: 10px;
  font: 400 13px/18px var(--mono);
}

/* Screenshots */
.shot {
  display: block; width: 100%; padding: 0;
  border: 1px solid var(--grey-200); border-radius: var(--radius);
  background: var(--grey-50);
  overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot-wide { aspect-ratio: 16 / 9; }
.shot:hover { border-color: var(--indigo); }

.feature {
  display: grid; gap: 24px 40px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.feature + .feature { margin-top: 48px; }
.feature .h4 { margin-top: 20px; }
.feature p, .feature ul { margin-top: 12px; }
.feature ul { list-style: disc; padding-left: 20px; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

.tag {
  display: inline-block; padding: 4px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--white); color: var(--ink);
  font: 400 14px/22px var(--sans);
}

.shots-2 { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
.shots-2 figcaption { margin-top: 14px; text-align: center; color: var(--body); }
@media (max-width: 640px) { .shots-2 { grid-template-columns: 1fr; } }

.quotes { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { background: var(--lavender); border-radius: var(--radius); padding: 28px; }
.quote blockquote {
  margin-top: 16px;
  font: italic 600 14px/24px var(--sans);
  color: var(--ink); max-width: 80ch;
}
.quote-by { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.quote-initials {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--indigo); color: var(--lilac);
  font: 600 13px/1 var(--sans);
}
.quote-name { font: 700 15px/22px var(--serif); color: var(--ink); }
.quote-role { font-size: 14px; line-height: 22px; }

.result {
  background: var(--ink);
  color: var(--lilac);
  padding-block: var(--section-y) 40px;
}
.result .h1 { color: var(--white); }
.result p { margin-top: 24px; }
.result .stats { margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(140px, 220px)); }
.privacy-note {
  margin-top: 56px; max-width: 72ch;
  font-size: 13px; line-height: 20px;
  color: rgba(243, 240, 255, .72);
}
.result .privacy-note { margin-top: 56px; }   /* beats the general ".result p" spacing on case study pages */
.privacy-note a { color: var(--sky); text-underline-offset: 3px; }
.privacy-note a:hover { color: var(--lilac); }

.pager {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(243, 240, 255, .35);
}

/* Lightbox */
.lightbox {
  width: min(1100px, 94vw); max-height: 92vh;
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--white); overflow: auto;
}
.lightbox::backdrop { background: rgba(26, 26, 26, .8); }
.lightbox img { width: 100%; }
.lightbox-close {
  position: sticky; top: 12px; float: right; margin: 12px; z-index: 2;
  min-height: 40px; padding: 6px 16px;
}

/* ---------- Project carousel ---------- */

.carousel { position: relative; }
.arrow {
  position: absolute; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: 40px; height: 96px; padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 10px;
  background: rgba(250, 250, 250, .2);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  color: var(--white);
  cursor: pointer;
  transition: background-color .15s ease;
}
.arrow-prev { left: 12px; }
.arrow-next { right: 12px; }
.arrow:hover { background: rgba(250, 250, 250, .36); }
.arrow:active { background: rgba(250, 250, 250, .5); }

/* One project is turned face-up at a time; the rest wait face-down beside it */
.projects {
  display: flex; gap: 16px;
  height: 440px;
}
.project {
  flex: 0 0 96px;
  min-width: 0;
  transition: flex-grow .8s cubic-bezier(.4, 0, .2, 1);
}
.project.is-active { flex-grow: 1; }

/* 40px wide, centred in the 64px page margin */
.carousel-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; margin-top: 20px; padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 10px;
  background: rgba(250, 250, 250, .14);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  color: var(--white);
  font: 700 14px/20px var(--mono);
  cursor: pointer;
}
.carousel-toggle:hover { background: rgba(250, 250, 250, .28); }
.carousel-toggle .icon-play, .carousel-toggle.is-paused .icon-pause { display: none; }
.carousel-toggle.is-paused .icon-play { display: block; }

.arrow-prev { left: -52px; }
.arrow-next { right: -52px; }

@media (max-width: 900px) {
  /* stacked: the selected project opens, the others are face-down bars that turn top over bottom */
  .projects { flex-direction: column; height: 560px; gap: 12px; }
  .project { flex-basis: 64px; }
  .project-inner, .project-back { transform: rotateX(180deg); }
  .project.is-active .project-inner { transform: rotateX(0deg); }
  .project-back .h3 { writing-mode: horizontal-tb; transform: none; }
  .project-front { padding: 20px; }
  .project-front .h3, .project-front .caption { white-space: normal; }
  .carousel { padding-bottom: 72px; }
  .arrow { top: auto; bottom: 0; transform: none; width: 72px; height: 44px; }
  .arrow svg { transform: rotate(90deg); }   /* cards stack here, so arrows point up and down */
  .arrow-prev { left: calc(50% - 80px); }
  .arrow-next { right: calc(50% - 80px); }
}

/* ---------- Accessibility page + footer link ---------- */
.footer-links, .result .footer-links { margin-top: 16px; font-size: 13px; line-height: 20px; }
.footer-links a { color: var(--sky); text-underline-offset: 3px; }
.footer-links a:hover { color: var(--lilac); }
.a11y-list { list-style: disc; padding-left: 22px; margin-top: 12px; }
.a11y-list li + li { margin-top: 8px; }
.a11y-gap { margin-top: 40px; }
.prose .h2 + p { margin-top: 12px; }
.text-link { color: var(--indigo); text-underline-offset: 3px; }
.a11y-date { color: var(--secondary); font-size: 14px; }

/* ---------- Hero: project screens ---------- */
.hero-work { position: relative; aspect-ratio: 5 / 4.4; isolation: isolate; }
.hero-work::before {
  content: ""; position: absolute; inset: 8% 4% 4% 10%; z-index: -1;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .45);
  background: linear-gradient(135deg, rgba(255, 190, 225, .55) 0%, rgba(240, 90, 165, .6) 45%, rgba(224, 51, 138, .7) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.hero-shot {
  position: absolute; width: 68%;
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .4);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(10, 10, 40, .45);
  transition: transform .3s ease;
}
.hero-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.shot-bar { display: flex; gap: 6px; align-items: center; height: 22px; padding-left: 10px; background: var(--ink); }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(250, 250, 250, .35); }
.shot-1 { top: 0; left: 0; transform: rotate(-5deg); }
.shot-2 { top: 20%; right: 0; transform: rotate(4deg); }
.shot-3 { bottom: 0; left: 12%; transform: rotate(-1deg); z-index: 1; }
.hero-shot:hover, .hero-shot:focus-visible { transform: translateY(-6px) rotate(0deg); z-index: 2; }

/* ---------- About: photo beside the story ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.about-photo { aspect-ratio: 4 / 5; margin-right: 16px; }
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; }
  .hero-work { max-width: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
