/* ============================================
   Mihai Gavrila — Personal Site
   Design system: Nunito Sans, warm neutrals,
   monochrome premium with one cool accent.
   ============================================ */

:root {
  /* Palette */
  --bg: #faf9f5;
  --bg-paper: #ffffff;
  --bg-ink: #1D222B;
  --ink: #1D222B;
  --ink-soft: #2c3340;
  --muted: #6b7180;
  --muted-2: #9EA3B0;
  --brand: #9EA3B0;
  --line: rgba(29, 34, 43, 0.10);
  --line-strong: rgba(29, 34, 43, 0.20);
  --accent: #36A1F5;
  --accent-soft: #dceffd;
  --paper-tint: #efeadd;

  /* Type */
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Sizing */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  font-variant-numeric: tabular-nums;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

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

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(72px, 9vw, 140px) 0;
  position: relative;
}
.section--tight { padding: clamp(48px, 6vw, 96px) 0; }
.section--ink { background: var(--bg-ink); color: #f3f1ec; }
.section--paper { background: var(--bg-paper); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.section--ink .eyebrow { color: #b6b5af; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; }
p { margin: 0; }

.h-display {
  font-size: clamp(54px, 8.4vw, 128px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.96;
}
.h-1 { font-size: clamp(42px, 5.4vw, 76px); letter-spacing: -0.03em; }
.h-1 .accent { color: var(--brand); font-style: italic; }
.h-2 { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.025em; }
.h-3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; }

.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.lead--ink { color: #b6b5af; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(250, 249, 246, 0);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}
body[data-screen-label="01 Home"] .nav {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
body[data-screen-label="01 Home"]:not(:has(.nav.is-scrolled)) .hero--type::before {
  opacity: 0;
}
.nav.is-scrolled {
  background: #FAF9F6;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  position: relative;
}
.nav__left { display: flex; align-items: center; gap: 16px; flex: 1 1 0; min-width: 0; }
.nav__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav__right { flex: 1 1 0; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.nav__logo { display: inline-flex; align-items: center; height: 22px; }
.nav__logo img,
.nav__logo svg { height: 22px; width: auto; transition: height 0.2s ease; }
.nav__logo svg path { fill: var(--ink); }

/* Hamburger button (hidden on desktop, shown via media query) */
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav__burger:hover { background: var(--paper-tint); }
.nav__burger span {
  display: block;
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 19px; }
.nav__burger span:nth-child(3) { top: 24px; }
.nav__burger.is-open span:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { top: 19px; transform: translateX(-50%) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 49;
  display: none;
  flex-direction: column;
  padding: 88px var(--gutter) 32px;
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow-y: auto;
}
.nav__drawer.is-open { display: flex; opacity: 1; }
.nav__drawer__links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
.nav__drawer__links li { display: block; }
.nav__drawer__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  background: transparent !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease;
}
.nav__drawer__links a::after {
  content: "→";
  font-weight: 600;
  font-size: 22px;
  color: var(--muted-2);
  transition: transform 0.2s ease, color 0.2s ease;
}
.nav__drawer__links a:hover { color: var(--accent); background: transparent !important; }
.nav__drawer__links a:hover::after { color: var(--accent); transform: translateX(4px); }
.nav__drawer__foot {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nav__drawer__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  align-self: flex-start;
}
.nav__drawer__cta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #65e29a;
  box-shadow: 0 0 0 4px rgba(101, 226, 154, 0.18);
}
.nav__drawer__email {
  font-size: 14px;
  color: var(--muted);
}
.nav__drawer__email a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }

.nav__links {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__links a:hover { background: var(--paper-tint); }
.nav__links a.is-active { background: var(--paper-tint); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav__cta:hover { transform: translateY(-1px); background: #0e1217; }
.nav__cta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #65e29a;
  box-shadow: 0 0 0 4px rgba(101, 226, 154, 0.18);
  margin-right: 4px;
}
.nav__burger { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: #0e1217; transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--paper-tint); }
.btn--ink-primary { background: var(--bg); color: var(--ink); }
.btn--ink-primary:hover { background: #fff; transform: translateY(-2px); }
.btn--ink-ghost { background: transparent; color: #f3f1ec; border-color: rgba(255,255,255,0.18); }
.btn--ink-ghost:hover { border-color: rgba(255,255,255,0.35); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 4vw, 56px);
  position: relative;
}

/* Typographic hero (large headline, no image) */
.hero--type {
  padding-top: clamp(96px, 11vw, 148px);
  padding-bottom: clamp(64px, 7vw, 112px);
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(239,234,221,0.92) 0%, transparent 34%),
    radial-gradient(circle at 82% 30%, rgba(158,163,176,0.18) 0%, transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, #f7f3ea 100%);
}
.hero--type::before {
  content: "";
  position: absolute;
  inset: clamp(18px, 2vw, 28px) var(--gutter) auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  opacity: 0.7;
}
.hero--type::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(120px, 16vw, 220px);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.56));
  pointer-events: none;
}
.hero__container { position: relative; z-index: 2; }
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
}
.hero__blob--a {
  width: clamp(420px, 48vw, 720px);
  aspect-ratio: 1;
  left: -14%;
  top: 8%;
  background: radial-gradient(circle at 30% 30%, rgba(239,234,221,0.92) 0%, transparent 64%);
}
.hero__blob--b {
  width: clamp(380px, 42vw, 640px);
  aspect-ratio: 1;
  right: -10%;
  top: 28%;
  background: radial-gradient(circle at 60% 40%, rgba(216,205,182,0.52) 0%, transparent 64%);
}
.hero__blob--c {
  width: clamp(300px, 32vw, 480px);
  aspect-ratio: 1;
  right: 16%;
  bottom: -8%;
  background: radial-gradient(circle at 50% 50%, rgba(158,163,176,0.20) 0%, transparent 60%);
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 80px);
  flex-wrap: wrap;
}
.hero__meta {
  display: flex;
  gap: 32px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span + span::before {
  content: ""; width: 1px; height: 12px; background: var(--line-strong); margin-right: 24px;
  display: inline-block; vertical-align: middle;
}

.hero--type .hero__title {
  font-size: clamp(56px, 9.5vw, 156px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0;
  max-width: 13.2ch;
  text-wrap: balance;
}
.hero--type .hero__title .display-target { display: inline; margin-right: 0.12em; }
.hero--type .hero__title .accent {
  color: var(--brand);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero__foot {
  margin-top: clamp(36px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}
.hero--type .hero__sub {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0;
}
.hero--type .hero__sub strong { font-weight: 800; color: var(--ink); }
.hero--type .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px 8px 9px;
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 28px;
  box-shadow: 0 18px 50px -36px rgba(29,34,43,0.34);
}
.hero__pill .avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #36A1F5 0%, #1d6fb5 100%);
  display: grid; place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.hero__pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #19c37d;
  box-shadow: 0 0 0 4px rgba(25,195,125,0.16);
  margin-right: 4px;
}
.hero__title { margin-bottom: 24px; }
.hero__title .accent { color: var(--brand); font-style: italic; font-weight: 800; }
.hero__title .accent--blue { color: var(--accent); font-style: italic; font-weight: 800; }
.hero__title .stroke {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}
.hero__sub { max-width: 46ch; font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ecf1ff;
  aspect-ratio: 5 / 4.2;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--line);
}
.hero__visual img { width: 100%; height: 100%; object-fit: contain; }
.hero__visual-tag {
  position: absolute;
  left: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px;
  background: var(--bg-paper);
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero__visual-tag .swatch {
  width: 18px; height: 18px; border-radius: 6px;
  background: linear-gradient(135deg, #6dbcff, #36A1F5);
}
.hero__visual-meta {
  position: absolute;
  right: 20px; top: 20px;
  display: flex; gap: 6px;
}
.hero__visual-meta span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 999px;
}

.hero__stats {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255,255,255,0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px -56px rgba(29,34,43,0.32);
}
.hero__stat {
  padding: clamp(22px, 2.4vw, 32px);
  border-right: 1px solid var(--line);
}
.hero__stat:last-child { border-right: 0; }
.hero__stat-num {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero__stat-num small { font-size: 0.55em; vertical-align: super; font-weight: 700; color: var(--muted); margin-left: 4px; }
.hero__stat-label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Marquee ---------- */
.marquee {
  padding: 32px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee__track {
  display: flex;
  gap: clamp(22px, 2.8vw, 40px);
  width: max-content;
  animation: marquee 120s linear infinite;
  align-items: center;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(120px, 12vw, 172px);
  height: clamp(36px, 4vw, 48px);
  opacity: 1;
}
.marquee__logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 156px;
  max-height: 30px;
  object-fit: contain;
}
.marquee__item--text {
  color: #8A8C92;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee__item .glyph {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.85;
}
.marquee__item .glyph--circle { border-radius: 50%; }
.marquee__item .glyph--ring { background: transparent; border: 2px solid currentColor; }
.marquee__item .glyph--diamond { transform: rotate(45deg); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Section header ---------- */
.s-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.s-head__left { max-width: 60ch; display: flex; flex-direction: column; gap: 16px; }
.s-head__right { display: flex; align-items: center; gap: 12px; }
#services .s-head__left {
  width: min(100%, 780px);
  max-width: 780px;
}

/* ---------- Projects grid ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.project {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
}
.project--wide { grid-column: span 12; }
.project--tall { grid-column: span 4; }
.project__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #F3EFE5;
  border: 1px solid var(--line);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.project__browser,
.project__shot {
  position: absolute;
  inset: clamp(64px, calc(2vw + 50px), 74px) clamp(44px, calc(2vw + 30px), 54px) clamp(44px, calc(2vw + 30px), 54px);
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #f4efe4;
  border: 1px solid rgba(29,34,43,0.12);
  box-shadow: 0 18px 42px -28px rgba(29,34,43,0.45);
}
.project__browser::before,
.project__shot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 34px;
  background: #eee7d9;
  border-bottom: 1px solid rgba(29,34,43,0.08);
  z-index: 3;
}
.project__browser::after,
.project__shot::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c8bfae;
  box-shadow: 14px 0 0 #d7cfbf, 28px 0 0 #e2dacc;
  z-index: 4;
}
.project--wide .project__media { aspect-ratio: 16 / 8; }
.projects > .project--wide:first-child .project__media {
  aspect-ratio: auto;
  min-height: clamp(520px, 54vw, 740px);
}
.projects > .project:not(:first-child) .project__browser,
.projects > .project:not(:first-child) .project__shot {
  inset: clamp(42px, calc(1.4vw + 28px), 50px) clamp(22px, calc(1.2vw + 14px), 32px) clamp(22px, calc(1.2vw + 14px), 32px);
}
.project--tall .project__media { aspect-ratio: 3 / 4; }
.project:hover .project__media { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(10,10,10,0.18); }
.project__shot {
  padding: 34px 0 0;
}
.project__shot .shot {
  border-radius: 0;
}
.project__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  padding: 34px 0 0;
  background: #f4efe4;
}
.project__chip {
  position: absolute;
  left: clamp(22px, 2vw, 30px); top: 20px;
  z-index: 5;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.project__chip .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #19c37d;
}
.project__year {
  position: absolute;
  right: 16px; top: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255,255,255,0.85);
  padding: 6px 10px;
  border-radius: 999px;
}
.project__meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 0 4px;
}
.project__title {
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.project__title .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.project:hover .project__title .arrow { transform: translate(4px, -4px); }
.project__tags {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* Project shot scenes — warm-tone backgrounds harmonized with the page bg */
.shot { width: 100%; height: 100%; position: relative; border-radius: 8px; overflow: hidden; }
.shot--saas { background: linear-gradient(160deg, #f0ebdc 0%, #ddd2b8 100%); }
.shot--studio { background: linear-gradient(160deg, #1D222B 0%, #0e1217 100%); color: #f3f1ec; }
.shot--editorial { background: #f0ebe1; }
.shot--ocean { background: linear-gradient(160deg, #d8cdb6 0%, #a89579 100%); }
.shot--mint { background: linear-gradient(160deg, #ede4d4 0%, #d8c5a6 100%); }
.shot--coral { background: linear-gradient(160deg, #ffefe7 0%, #ffd9c5 100%); }
.shot--sand { background: linear-gradient(160deg, #f5efe2 0%, #e8dcc1 100%); }
.shot--steel { background: linear-gradient(160deg, #ebe4d0 0%, #ccc0a4 100%); }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2vw, 28px);
}
.service {
  grid-column: span 4;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(10,10,10,0.18); border-color: var(--line-strong); }
.service--feature {
  grid-column: span 6;
  background: var(--bg-ink);
  color: #f3f1ec;
  border-color: transparent;
}
.service--wide { grid-column: span 8; }
.service__num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.service--feature .service__num { color: #98968f; }
.service__title { font-size: clamp(22px, 1.8vw, 28px); font-weight: 800; letter-spacing: -0.02em; }
.service__desc { color: var(--muted); font-size: 15px; line-height: 1.55; }
.service--feature .service__desc { color: #b6b5af; }
.service__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.service__tag {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.service--feature .service__tag { border-color: rgba(255,255,255,0.16); color: #98968f; }

.service__glyph {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--paper-tint);
}
.service--feature .service__glyph { background: rgba(255,255,255,0.08); }
.service__glyph svg { width: 32px; height: 32px; }
.service__glyph svg * { stroke: currentColor; }

/* ---------- About / Who I Am ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about__sticky { position: sticky; top: 100px; }
.about__name {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin-top: 24px;
}
.about__sub {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
}
.about__copy { display: flex; flex-direction: column; gap: 24px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--ink-soft); }
.section--ink .about__copy { color: #cfcdc6; }
.section--ink .about__sub { color: #98968f; }
.about__copy p strong { color: inherit; font-weight: 800; }

.about__meta {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.section--ink .about__meta { border-color: rgba(255,255,255,0.12); }
.about__meta-row {
  display: contents;
}
.about__meta dt, .about__meta dd {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  font-size: 14px;
}
.section--ink .about__meta dt,
.section--ink .about__meta dd { border-bottom-color: rgba(255,255,255,0.12); }
.about__meta dt { color: var(--muted); font-weight: 600; }
.about__meta dd { color: var(--ink); font-weight: 700; text-align: right; }
.section--ink .about__meta dd { color: #f3f1ec; }

/* ---------- Reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
}
.review {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.section--ink .review {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.review__logo {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.review__logo-mark {
  width: min(160px, 58%);
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}
.review__logo-mark img {
  display: block;
  max-width: 150px;
  max-height: 36px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
.review__quote {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.56;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  max-width: 58ch;
}
.section--ink .review__quote { color: #cfcdc6; }
.review__quote::before { content: "\201C"; font-weight: 900; }
.review__quote::after { content: "\201D"; font-weight: 900; }
.review__author {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.section--ink .review__author { border-color: rgba(255,255,255,0.12); }
.review__name { font-weight: 800; font-size: 15px; }
.review__role { color: var(--muted); font-size: 13px; margin-top: 2px; }
.review__rating { color: #C9A24A; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; }
.section--ink .review__rating { color: #C9A24A; }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq__list { display: flex; flex-direction: column; }
.faq__item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__toggle {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 16px;
  color: var(--ink);
  transition: transform 0.3s ease, background 0.25s ease, color 0.25s ease;
}
.faq__item[open] .faq__toggle { background: var(--ink); color: var(--bg); transform: rotate(45deg); }
.faq__a {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 72ch;
}

/* ---------- CTA banner ---------- */
.cta {
  background: var(--bg-ink);
  color: #f3f1ec;
  border-radius: clamp(20px, 2.4vw, 32px);
  padding: clamp(48px, 6vw, 96px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
  position: relative;
  overflow: hidden;
}
.cta__title {
  font-size: clamp(40px, 5.4vw, 80px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.cta__title .accent { color: var(--brand); font-style: italic; }
.cta__right { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cta__copy { color: #b6b5af; font-size: 17px; max-width: 38ch; }
.cta__email {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f3f1ec;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 4px;
  transition: border-color 0.25s ease;
}
.cta__email:hover { border-color: #f3f1ec; }
.cta__bg {
  position: absolute;
  right: -20%; top: -40%;
  width: 80%; height: 180%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,87,255,0.25) 0%, transparent 60%);
  pointer-events: none;
}

/* ---------- Footer ---------- */
.footer {
  padding: clamp(56px, 6vw, 80px) 0 24px;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: clamp(40px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}
.footer__intro { display: flex; flex-direction: column; gap: 24px; max-width: 36ch; align-items: flex-start; }
.footer__intro img,
.footer__intro svg { height: 22px; width: auto; align-self: flex-start; transition: height 0.2s ease; }
.footer__intro svg path { fill: var(--ink); }
.footer__intro p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.footer__col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 15px; font-weight: 600; color: var(--ink); transition: color 0.2s ease; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
  gap: 24px;
  flex-wrap: wrap;
}
.footer__bottom .status { display: inline-flex; align-items: center; gap: 8px; }
.footer__bottom .status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #19c37d;
  box-shadow: 0 0 0 4px rgba(25,195,125,0.16);
}

/* ---------- Page header (non-home pages) ---------- */
.page-head {
  padding: clamp(64px, 8vw, 120px) 0 clamp(40px, 5vw, 72px);
}
.page-head__crumb {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.page-head__title {
  font-size: clamp(52px, 7vw, 110px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.96;
  max-width: 14ch;
}
.page-head__title .accent { color: var(--brand); font-style: italic; }
.page-head__title .accent--blue { color: var(--accent); font-style: italic; }
.page-head__lead {
  margin-top: 32px;
  max-width: 60ch;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--muted);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-stagger="2"] { transition-delay: 0.06s; }
.reveal[data-stagger="3"] { transition-delay: 0.12s; }
.reveal[data-stagger="4"] { transition-delay: 0.18s; }
.reveal[data-stagger="5"] { transition-delay: 0.24s; }
.reveal[data-stagger="6"] { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 5/4; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero--type .hero__cta { justify-content: flex-start; }
  .hero__meta { gap: 16px; }
  .hero__meta span + span::before { margin-right: 16px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .nav__logo,
  .nav__logo img,
  .nav__logo svg,
  .footer__intro img,
  .footer__intro svg { height: 18px; }
  .nav__center { display: none; }
  .nav__right .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero__stat:nth-child(2) { border-right: 0; }
  .hero__stat:nth-child(1), .hero__stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .about { grid-template-columns: 1fr; }
  .about__sticky { position: static; }
  .faq { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .services .service { grid-column: span 12 !important; }
  .reviews { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .project, .project--wide, .project--tall { grid-column: span 12 !important; }
  .projects > .project--wide:first-child .project__media {
    min-height: clamp(480px, 74vw, 620px);
  }
  .projects > .project:not(:first-child) .project__browser,
  .projects > .project:not(:first-child) .project__shot {
    inset: 40px 22px 24px;
  }
  .nav__links { display: none; }
  .s-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .nav__logo,
  .nav__logo img,
  .nav__logo svg,
  .footer__intro img,
  .footer__intro svg { height: 16px; }
  .projects > .project--wide:first-child .project__media {
    min-height: clamp(400px, 108vw, 500px);
  }
  .projects > .project:not(:first-child) .project__browser,
  .projects > .project:not(:first-child) .project__shot {
    inset: 38px 16px 18px;
  }
}

/* ---------- Tweaks panel button hover ---------- */
.icon-arrow-out {
  display: inline-grid; place-items: center;
  width: 14px; height: 14px;
}
