/* ============================================================
   Zeynep Kaya - Portfolio
   Design tokens
   ============================================================ */

:root {
  /* Color */
  --paper: #FAF7F1;
  --paper-deep: #F1EDE4;
  --ink: #211E1A;
  --ink-soft: #4C4740;
  --muted: #837C71;
  --line: #E3DDD2;

  --accent: #3A4FD0;        /* cobalt - primary accent */
  --accent-sage: #6C9673;
  --accent-ember: #C54F00;
  --accent-plum: #B04A98;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  /* Rhythm */
  --gutter: clamp(20px, 6vw, 84px);
  --section-gap: clamp(90px, 14vh, 170px);
  --card-radius: 18px;
}

/* ============================================================
   Base
   ============================================================ */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

::selection {
  background: var(--accent);
  color: var(--paper);
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Sparkle glyph - used inline next to the name and in labels */
.sparkle {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  vertical-align: baseline;
  flex: none;
}

.sparkle--spin {
  animation: sparkle-twinkle 3.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes sparkle-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%      { transform: scale(0.78) rotate(90deg); opacity: 0.72; }
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 560;
  font-variation-settings: "opsz" 30;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav__wordmark .sparkle { color: var(--accent); }

.nav__links {
  display: flex;
  gap: clamp(10px, 2.5vw, 26px);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.nav__link {
  color: var(--muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav__link:hover { color: var(--accent); }

.nav__link[aria-current="page"] { color: var(--ink); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: calc(88svh - 74px);
  display: flex;
  align-items: center;
  overflow: hidden;
  /* soft aurora wash, faded downward */
  background:
    radial-gradient(52% 44% at 18% 8%,  color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    radial-gradient(46% 40% at 82% 12%, color-mix(in srgb, var(--accent-ember) 8%, transparent), transparent 70%),
    radial-gradient(40% 36% at 55% 0%,  color-mix(in srgb, var(--accent-plum) 6%, transparent), transparent 70%);
}

.hero__inner {
  width: 100%;
  padding-top: clamp(48px, 8vh, 110px);
  padding-bottom: clamp(56px, 10vh, 130px);
}

.hero__kicker {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.4vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 clamp(18px, 3vh, 30px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__kicker .sparkle { color: var(--accent-ember); }

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(52px, 11.5vw, 138px);
  font-weight: 420;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 0 0 clamp(24px, 4vh, 44px);
  cursor: default;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.24em;
}

.hero__name .word {
  display: inline-flex;
  white-space: nowrap;
}

.hero__name .char {
  display: inline-block;
  font-variation-settings: "opsz" 144, "SOFT" 40, "wght" 420;
}

.hero__name .sparkle {
  width: 0.42em;
  height: 0.42em;
  color: var(--accent);
  margin-left: 0.1em;
  align-self: center;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(19px, 2.6vw, 27px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 21em;
  margin: 0 0 clamp(26px, 4vh, 40px);
  color: var(--ink-soft);
}

.hero__tagline em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 480;
  font-variation-settings: "opsz" 40;
  color: var(--accent);
}

.hero__meta {
  font-family: var(--font-mono);
  font-size: clamp(11.5px, 1.4vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
}

.hero__meta a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__meta a:hover { color: var(--accent); border-color: var(--accent); }

.hero__scrollhint {
  position: absolute;
  bottom: 26px;
  left: var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__scrollhint::after {
  content: "";
  width: 1px;
  height: 28px;
  background: var(--muted);
  animation: hint-drip 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes hint-drip {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}

/* Cursor sparkle trail */
.trail-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  animation: trail-pop 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes trail-pop {
  0%   { transform: scale(0) rotate(0deg);    opacity: 0; }
  25%  { transform: scale(1) rotate(40deg);   opacity: 1; }
  100% { transform: scale(0.1) rotate(150deg); opacity: 0; }
}

/* ============================================================
   Work section
   ============================================================ */

.section-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.section-label .sparkle { color: var(--accent); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 460;
  font-variation-settings: "opsz" 90;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 clamp(36px, 6vh, 64px);
}

.work {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  scroll-margin-top: 60px;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

/* --- Work card + glow border --- */

.card {
  --hover-color: var(--accent);
  position: relative;
  display: block;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 14px 14px 22px;
  transition: transform 0.3s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.card:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 32px rgba(33, 30, 26, 0.1);
  z-index: 2;
}

/* glow ring overlay - populated & driven by JS */
.card__glow {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--card-radius) + 2px);
  pointer-events: none;
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card__glow { opacity: 1; }

.card__cover {
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--card-radius) - 6px);
  overflow: hidden;
  background: var(--paper-deep);
  margin-bottom: 20px;
}

.card__cover svg,
.card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__titlerow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 8px;
  margin-bottom: 8px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 520;
  font-variation-settings: "opsz" 40;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  transition: color 0.3s ease;
}

.card:hover .card__title { color: var(--hover-color); }

.card__tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-radius: 20px;
  padding: 5px 11px;
  white-space: nowrap;
}

.card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  padding: 0 8px;
  max-width: 34em;
}

/* Coming-soon card: present but not clickable */
.card--soon {
  cursor: default;
}

.card--soon:hover {
  transform: none;
  box-shadow: none;
}

.card--soon:hover .card__title { color: var(--ink); }

.card__badge {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #F2FF70;
  background: rgba(23, 23, 23, 0.88);
  border: 1px solid rgba(242, 255, 112, 0.4);
  border-radius: 100px;
  padding: 6px 13px;
}

/* Cover variant: a phone screenshot floating on a tinted field */
.card__cover--phone {
  display: flex;
  justify-content: center;
  background: #E9EDFB;
}

.card__cover--phone img {
  width: 46%;
  height: auto;
  align-self: flex-start;
  margin-top: 7%;
  border-radius: 18px;
  box-shadow: 0 22px 44px -14px rgba(24, 33, 89, 0.5);
}

/* Cover variant: app screenshots side by side (matches their sky-blue canvas) */
.card__cover--strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 18px);
  padding: 0 clamp(12px, 2.5vw, 22px);
  background: #98CDF7;
}

.card__cover--strip img {
  width: auto;
  height: 92%;
  border-radius: 14px;
  box-shadow: 0 10px 24px -14px rgba(20, 40, 80, 0.45);
}

/* Cover variant: logo on charcoal (Kognitos) */
.card__cover--kognitos {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(60% 55% at 50% 62%, rgba(242, 255, 112, 0.14), transparent 75%),
    #171717;
}

.card__cover--kognitos img {
  width: 58%;
  height: auto;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 36px;
  margin-top: var(--section-gap);
}

.footer__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__note {
  font-size: 14px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.footer__note .sparkle { color: var(--accent); width: 0.8em; height: 0.8em; }

.footer__links {
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.footer__links-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 11px;
}

.footer__links a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.footer__links a:hover { color: var(--accent); }

/* ============================================================
   About page
   ============================================================ */

.about {
  padding-top: clamp(48px, 8vh, 96px);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 440;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 clamp(24px, 4vh, 40px);
}

.about__title .sparkle {
  width: 0.45em;
  height: 0.45em;
  color: var(--accent);
  margin-left: 0.08em;
}

.about__body p {
  margin: 0 0 1.2em;
  color: var(--ink-soft);
  font-size: clamp(16.5px, 1.9vw, 18.5px);
  line-height: 1.7;
  max-width: 36em;
}

.about__body strong {
  font-weight: 600;
  color: var(--ink);
}

.about__body a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: border-color 0.2s ease;
}

.about__body a:hover { border-bottom-color: var(--accent); }

.about__facts {
  margin: clamp(28px, 5vh, 44px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.about__facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.about__facts .k {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  flex: none;
}

.about__facts .v {
  color: var(--ink-soft);
  text-align: right;
}

/* --- Photo stack: arch-top frames --- */

.about__photos {
  display: block;                 /* stacked vertically */
  padding-top: 14px;
}

.photo {
  position: relative;
  width: 80%;                     /* larger than the old side-by-side pair */
  aspect-ratio: 3 / 4;
  border-radius: 200px 200px 16px 16px;   /* arch top */
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}

/* one up-left, one down-right — still crossed */
.photo:nth-child(1) {
  transform: rotate(-2.5deg);
  margin: 0 auto 0 0;
}
.photo:nth-child(2) {
  transform: rotate(2.5deg);
  margin: clamp(26px, 4vh, 52px) 0 0 auto;
}

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

.photo.is-empty img { display: none; }

.photo__placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.photo.is-empty .photo__placeholder { display: flex; }

.photo__placeholder .sparkle {
  width: 18px;
  height: 18px;
  color: var(--muted);
  opacity: 0.6;
}

.photo__placeholder code {
  font-family: inherit;
  color: var(--ink-soft);
  word-break: break-all;
}

/* --- Gallery of travel / sunset photos --- */

.about__gallery {
  margin-top: clamp(56px, 10vh, 110px);
}

.about__gallery .section-label {
  margin-bottom: clamp(20px, 3vh, 30px);
}

.about__gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}

.about__gallery-grid figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}

.about__gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.about__gallery-grid figure:hover img {
  transform: scale(1.04);
}

/* First tile spans two columns/rows for a little rhythm */
.about__gallery-grid figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* ============================================================
   Project (case study placeholder) pages
   ============================================================ */

.project {
  padding-top: clamp(48px, 8vh, 96px);
}

.project__back {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(28px, 5vh, 48px);
  transition: color 0.2s ease;
}

.project__back:hover { color: var(--accent); }

.project__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 440;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 15em;
}

.project__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 6vh, 60px);
}

.project__hero {
  aspect-ratio: 21 / 9;
  border-radius: var(--card-radius);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(40px, 7vh, 72px);
}

.project__hero .placeholder-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.project__hero .sparkle { width: 16px; height: 16px; opacity: 0.6; }

.project__body {
  max-width: 680px;
}

.project__body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  font-variation-settings: "opsz" 40;
  letter-spacing: -0.01em;
  margin: 2.2em 0 0.6em;
}

.project__body h2:first-child { margin-top: 0; }

.project__body p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 1.2em;
}

.project__soon {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-ember);
  background: color-mix(in srgb, var(--accent-ember) 9%, transparent);
  border-radius: 20px;
  padding: 6px 14px;
  display: inline-block;
  margin-bottom: 18px;
}

.project__nextrow {
  border-top: 1px solid var(--line);
  margin-top: clamp(56px, 9vh, 96px);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.project__nextrow a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.project__nextrow a:hover { color: var(--accent); }

/* ============================================================
   Case study components (used by full case-study pages)
   ============================================================ */

.cs-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin: 0 0 12px;
}

.cs-section { padding: clamp(36px, 6vh, 64px) 0; }

.cs-narrow {
  max-width: 900px;
}

/* Hero */

.cs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.75fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(20px, 4vh, 48px) 0 clamp(40px, 7vh, 72px);
}

.cs-brandrow {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 14px 0 20px;
  flex-wrap: wrap;
}

.cs-brand {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.cs-brandtag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.cs-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 460;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.cs-sub {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 32em;
  margin: 18px 0 0;
}

.cs-pills {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.cs-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 11px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.cs-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.cs-pill--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.cs-pill--solid:hover {
  background: color-mix(in srgb, var(--accent) 85%, #fff);
  border-color: color-mix(in srgb, var(--accent) 85%, #fff);
}

/* Phone screenshots */

.cs-phone {
  border-radius: 28px;
  overflow: hidden;
  background: #0E1B2E;
  box-shadow: 0 24px 52px -22px rgba(18, 40, 70, 0.4), 0 0 0 1px rgba(20, 30, 45, 0.06);
}

.cs-phone img,
.cs-phone video { width: 100%; display: block; }

.cs-hero .cs-phone {
  max-width: 264px;
  justify-self: center;
}

/* Meta grid */

.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cs-meta .k {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.cs-meta .v {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

/* Statements & body copy */

.cs-stmt {
  font-family: var(--font-display);
  font-size: clamp(25px, 3.4vw, 36px);
  font-weight: 480;
  font-variation-settings: "opsz" 90;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 24em;
  margin: 10px 0 0;
}

.cs-stmt .hl { color: var(--accent); }

.cs-body {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 38em;
  margin: 16px 0 0;
}

.cs-body b, .cs-body strong { color: var(--ink); font-weight: 600; }

/* Soft band panel */

.cs-band {
  background: var(--paper-deep);
  border-radius: var(--card-radius);
  padding: clamp(30px, 5vw, 52px);
  margin: clamp(20px, 4vh, 36px) 0;
}

.cs-band .cs-stmt { margin-top: 8px; }

/* Sketch figure */

.cs-sketch {
  margin: 28px 0 0;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  max-width: 620px;
  box-shadow: 0 16px 34px -24px rgba(33, 30, 26, 0.3);
}

.cs-sketch img { border-radius: 7px; width: 100%; }

.cs-sketch figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Feature blocks */

.cs-feature {
  padding: clamp(36px, 6vh, 56px) 0;
  border-top: 1px solid var(--line);
}

.cs-feature:first-of-type { border-top: none; }

.cs-feature h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 520;
  font-variation-settings: "opsz" 40;
  letter-spacing: -0.01em;
  margin: 10px 0 0;
}

.cs-shots {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.cs-shots--5 { grid-template-columns: repeat(5, 1fr); }

.cs-shots--2 { grid-template-columns: repeat(2, 1fr); max-width: 540px; gap: 20px; }

.cs-shot .cs-phone { border-radius: 20px; }

.cs-shot figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 11px;
  text-align: center;
  line-height: 1.4;
}

.cs-shot figcaption b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.cs-shot { margin: 0; }

/* Wide detail image */

.cs-detail {
  margin: 28px 0 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0E1B2E;
  box-shadow: 0 22px 46px -24px rgba(18, 40, 70, 0.4);
  max-width: 720px;
}

.cs-detail img { width: 100%; }

.cs-note {
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 22px;
  max-width: 600px;
}

.cs-note .q {
  font-family: var(--font-display);
  font-weight: 540;
  font-variation-settings: "opsz" 40;
  font-size: 17px;
  color: var(--accent);
}

.cs-note p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 5px 0 0;
}

/* Decisions list */

.cs-dec {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  max-width: 40em;
}

.cs-dec li {
  display: flex;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.55;
}

.cs-dec li:first-child { border-top: none; }

.cs-dec .n {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  flex: 0 0 26px;
  padding-top: 2px;
}

.cs-dec b { font-weight: 600; }

.cs-dec .d { color: var(--muted); }

/* Outcome stats, reviews, timeline */

.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 32px 0 8px;
}

.cs-stat .v {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 560;
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cs-stat .v .u { color: var(--accent-ember); }

.cs-stat .l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 4px;
}

.cs-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.cs-rev {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.cs-rev .st { color: var(--accent-ember); font-size: 13px; letter-spacing: 2px; }

.cs-rev .t {
  font-family: var(--font-display);
  font-weight: 540;
  font-variation-settings: "opsz" 40;
  font-size: 16.5px;
  margin: 10px 0 7px;
}

.cs-rev .b { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

.cs-rev .a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}

.cs-tl { margin: 30px 0 0; max-width: 40em; }

.cs-tl .row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.cs-tl .row:first-child { border-top: none; }

.cs-tl .ver {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.cs-tl .txt { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

.cs-tl .txt b { color: var(--ink); font-weight: 600; }

/* Thanks */

.cs-thanks {
  text-align: center;
  padding: clamp(48px, 8vh, 72px) 0 8px;
  border-top: 1px solid var(--line);
  margin-top: clamp(36px, 6vh, 56px);
}

.cs-thanks .big {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.015em;
}

.cs-thanks .lk {
  margin-top: 20px;
  display: flex;
  gap: 22px;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
}

.cs-thanks .lk a { color: var(--accent); }

.cs-thanks .lk a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .cs-hero { grid-template-columns: 1fr; }
  .cs-hero .cs-phone { justify-self: start; max-width: 230px; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cs-shots--5 { grid-template-columns: repeat(2, 1fr); }
  .cs-stats { grid-template-columns: repeat(2, 1fr); }
  .cs-reviews { grid-template-columns: 1fr; }
}

/* ============================================================
   Scroll reveal
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Motion & accessibility
   ============================================================ */

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sparkle--spin,
  .hero__scrollhint::after {
    animation: none;
  }

  .card,
  .card:hover {
    transform: none;
  }
}

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

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

@media (max-width: 900px) {
  .work__grid { grid-template-columns: 1fr; }

  .about__grid { grid-template-columns: 1fr; }

  .about__photos {
    max-width: 480px;
    order: -1;             /* photos above the bio on small screens */
  }

  .about__gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .nav__inner { min-height: 62px; }

  .nav__wordmark { font-size: 18px; }

  .hero { min-height: calc(82svh - 62px); }

  .hero__scrollhint { display: none; }

  .card { padding: 10px 10px 18px; }

  .card__titlerow,
  .card__desc { padding: 0 6px; }

  .footer__inner {
    flex-direction: column;
    gap: 14px;
  }

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