/* ===== Design tokens (iOS / iPhone feel) ===== */
:root {
  --bg: #ffffff;          /* white page (design blends seamlessly) */
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.65);
  --text: #1d1d1f;        /* Apple ink */
  --text-soft: #6e6e73;
  --line: #e5e5ea;        /* iOS separator */
  --accent: #b85c2c;      /* terracotta (darkened to pass WCAG AA contrast) */
  --accent-soft: rgba(184, 92, 44, 0.10);
  --accent-2: #0a7379;    /* teal (darkened to pass WCAG AA contrast) */
  --sidebar-w: 280px;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.055), 0 1px 3px rgba(0, 0, 0, 0.04);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);   /* iOS spring-ish */
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, 'Segoe UI', sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #000000;          /* iOS true black */
  --surface: #1c1c1e;     /* systemGray6 dark */
  --glass: rgba(28, 28, 30, 0.6);
  --text: #f5f5f7;
  --text-soft: #98989f;
  --line: #2c2c2e;
  --accent: #e0865a;
  --accent-soft: rgba(224, 134, 90, 0.16);
  --accent-2: #2fb6c0;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.35);
}
/* Preserve Fraunces for the Nazu brand identity only */
.ps-quote, .brand-tag, .brand-quote, .scent-name, .about__lead p { font-family: 'Fraunces', Georgia, serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .35s, color .35s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: italic; color: var(--accent); }

/* ===== Top nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.nav__inner {
  max-width: 1180px; margin: 0 auto; padding: 14px clamp(24px, 5vw, 60px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav__brand { justify-self: start; }
.nav__links { justify-self: center; }
.nav__right { justify-self: end; }
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.nav__mark { display: inline-block; width: 40px; height: 40px; flex-shrink: 0;
  background: url("assets/ma-logo.png") center / contain no-repeat;
  text-indent: -9999px; overflow: hidden; transition: transform .3s var(--ease); }
@supports (mask: url("assets/ma-logo.png")) or (-webkit-mask: url("assets/ma-logo.png")) {
  .nav__mark { background: var(--text);
    -webkit-mask: url("assets/ma-logo.png") center / contain no-repeat;
    mask: url("assets/ma-logo.png") center / contain no-repeat; }
}
.nav__brand:hover .nav__mark { transform: scale(1.06); }
.nav__links { display: flex; gap: 30px; }
.nav__links a { position: relative; color: var(--text-soft); font-weight: 500; font-size: .95rem; padding: 4px 0; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--accent); transition: width .3s ease; }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__cta { background: var(--accent); color: #fff !important; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: opacity .2s; }
.nav__cta:hover { opacity: .88; }
.theme-toggle {
  background: none; border: none; padding: 0; border-radius: 0;
  width: 40px; height: 40px; font-size: 1rem; cursor: pointer; color: var(--text);
  transition: opacity .2s, transform .2s; flex-shrink: 0;
  display: grid; place-items: center;
}
.theme-toggle:hover { opacity: .65; }
.nav__burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 42px; height: 42px; font-size: 1.2rem; cursor: pointer; color: var(--text); }

/* ===== Main ===== */
.main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 60px); position: relative; }
.main::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 620px; z-index: 0;
  background: radial-gradient(900px 460px at 75% -8%, var(--accent-soft), transparent 70%); pointer-events: none; }
.main > * { position: relative; z-index: 1; }

/* ===== Design hero (SVG background: dark by default → colour on hover) ===== */
.hero-hero { position: relative; margin: 0 calc(50% - 50vw) 20px; }
.hero-stage { position: relative; width: 100%; aspect-ratio: 1024.5 / 576; overflow: hidden; background: #fff; }
.hd-layer { position: absolute; inset: 0; background-image: url("assets/hero-figures.jpg");
  background-repeat: no-repeat; background-size: 100% auto; }
.hd-dark { background-position: 50% 100%; }
.hd-color { background-position: 50% 0%; opacity: 0; transform: scale(1.05);
  transition: opacity 1s var(--ease), transform 1.5s var(--ease); }
.hero-hero.is-color .hd-color { opacity: 1; transform: none; }

/* Text overlaid on the design's open left side — forced dark (design is always white) */
.hero-content { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1180px, 92vw); color: #1d1d1f; padding: 0 clamp(24px, 5vw, 60px); }
.hero-content > * { max-width: 720px; position: relative; }
/* subtle white glow hugs the letters — legible over shapes, no visible box */
.hero-content .hero__eyebrow, .hero-content .hero__title {
  text-shadow: 0 0 18px rgba(255,255,255,.75), 0 0 6px rgba(255,255,255,.85); }
/* keep the italic "products." from being clipped by the reveal mask */
.hero-content .anim-lines .line { padding-right: .16em; }
.hero-content .status { margin-bottom: 18px; color: #1d1d1f; border-color: #d2d2d7; background: rgba(255,255,255,.65); }
.hero-content .hero__eyebrow { margin-bottom: 14px; color: #1d1d1f; font-weight: 600; }
.hero-content .hero__title { margin-bottom: 26px; color: #1d1d1f; }
.hero-content .hero__title em { color: #c96d3c; }
.hero-content .hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-content .btn--ghost { color: #1d1d1f; border-color: #cfcfd6; background: rgba(255,255,255,.55); }

@media (max-width: 820px) {
  /* keep landscape crop so the two-panel swap still works; overlay text on the open left */
  .hero-stage { aspect-ratio: 1024.5 / 576; }
  .hero-content { position: absolute; left: clamp(16px, 4.5vw, 30px); right: auto; top: 50%;
    transform: translateY(-50%); width: min(55%, 240px); max-width: 55%; text-align: left; margin: 0; z-index: 3; }
  .hero-content > * { max-width: 100%; }
  .hero-content .status { display: none; }
  .hero-content .hero__eyebrow { font-size: .58rem; letter-spacing: .05em; margin-bottom: 8px; color: #1d1d1f; }
  .hero-content .hero__title { font-size: clamp(1.35rem, 7.4vw, 2.1rem); margin-bottom: 14px; color: #1d1d1f; }
  .hero-content .hero__title em { color: #c96d3c; }
  .hero-content .hero__cta { gap: 8px; }
  .hero-content .hero__cta .btn { padding: 9px 15px; font-size: .8rem; }
  .hero-content .btn--ghost { color: #1d1d1f; border-color: #cfcfd6; background: rgba(255,255,255,.6); }
}
.hero { min-height: auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px;
  align-items: center; padding: 40px 0 72px; }
.hero__content { display: flex; flex-direction: column; }
.status { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  font-size: .82rem; font-weight: 500; color: var(--text-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; margin-bottom: 26px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71;
  box-shadow: 0 0 0 0 rgba(47,191,113,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47,191,113,0); } 100% { box-shadow: 0 0 0 0 rgba(47,191,113,0); } }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; color: var(--text-soft); margin-bottom: 24px; }

/* ===== Centered photo hero ===== */
.hero-c { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 0 76px; }
.hero-c .status { margin-bottom: 22px; }
.hero-c .hero__eyebrow { margin-bottom: 18px; }
.hero-c .hero__title { margin-bottom: 32px; }
.hero-c .hero__roles { justify-content: center; margin: 30px 0 0; max-width: 720px; }
.hero-c .hero__cta { justify-content: center; margin-top: 24px; }
.hero-c .hero__socials { justify-content: center; margin-top: 22px; }

/* ===== Designed hero panel (photo framed inside shapes) ===== */
.hero__media { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100%; padding: 24px 0; }
/* big soft colour circle behind the figure */
.hero__blob { position: absolute; z-index: 0; width: min(430px, 90%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent) 8%, transparent) 70%);
  transform: translateY(6%); pointer-events: none; }
/* dotted grid accent (top-right) */
.hero__dots { position: absolute; z-index: 0; top: 2%; right: 2%; width: 118px; height: 118px; pointer-events: none;
  background-image: radial-gradient(currentColor 1.6px, transparent 1.7px); background-size: 15px 15px;
  color: color-mix(in srgb, var(--accent) 55%, transparent); opacity: .55; }
/* thin ring accent (bottom-left) */
.hero__ring { position: absolute; z-index: 0; bottom: 6%; left: 4%; width: 84px; height: 84px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); opacity: .6; pointer-events: none; }

/* the portrait is an arch-topped niche on an accent gradient */
.portrait-swap { position: relative; z-index: 2; width: 100%; max-width: 400px; aspect-ratio: 4 / 5;
  border-radius: 200px 200px 26px 26px; overflow: hidden; cursor: pointer;
  background: linear-gradient(165deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #0b1428));
  box-shadow: 0 34px 70px rgba(20, 30, 60, .22); }
:root[data-theme="dark"] .portrait-swap { box-shadow: 0 34px 70px rgba(0,0,0,.5); }
.portrait-swap .ps-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-swap.no-photo { display: grid; place-items: center; }
.portrait-swap.no-photo::after { content: "Martha"; font-family: var(--display); color: #fff; font-size: 2rem; }
.portrait-swap.no-photo::after { content: "Add profile-bw.jpg + profile-color.jpg"; color: var(--accent);
  font-family: var(--display); font-size: 1rem; padding: 24px; text-align: center; }
.ps-img { display: block; width: 100%; height: auto; }
.ps-color { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity .55s ease; z-index: 1; }
.portrait-swap:hover .ps-color, .portrait-swap:focus-visible .ps-color, .portrait-swap.is-flipped .ps-color { opacity: 1; }
.ps-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 12px; padding: 30px 26px; text-align: left; color: #fff; opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
  background: linear-gradient(to top, rgba(8,12,24,.92) 0%, rgba(8,12,24,.45) 46%, transparent 80%); }
.portrait-swap:hover .ps-overlay, .portrait-swap:focus-visible .ps-overlay, .portrait-swap.is-flipped .ps-overlay { opacity: 1; transform: none; }
.ps-quote { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.4rem; line-height: 1.3; }
.ps-about { font-size: .88rem; line-height: 1.55; opacity: .92; }
.ps-name { font-size: .78rem; letter-spacing: .5px; opacity: .8; }
.ps-hint { position: absolute; top: 14px; right: 14px; z-index: 3; font-size: .7rem; font-weight: 600;
  color: #fff; background: rgba(0,0,0,.42); padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px);
  transition: opacity .4s; }
.portrait-swap:hover .ps-hint, .portrait-swap.is-flipped .ps-hint { opacity: 0; }

/* Hero portrait */
.hero__portrait { position: relative; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero__portrait.is-empty { display: grid; place-items: center;
  background: linear-gradient(160deg, var(--accent-soft), transparent); }
.hero__portrait-fallback { display: none; font-family: var(--display); font-size: 2rem; color: var(--accent); }
.hero__portrait.is-empty .hero__portrait-fallback { display: block; }

/* Highlights strip */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.hl { background: var(--bg); padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; }
.hl__k { font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--accent); line-height: 1.05; }
.hl__v { font-size: .85rem; color: var(--text-soft); line-height: 1.4; }
.hero__title { font-family: var(--display); font-weight: 600; line-height: 1.0; letter-spacing: -0.035em;
  font-size: clamp(2.8rem, 8vw, 7rem); margin-bottom: 34px; }
.hero__title span { display: block; }
.hero__text { max-width: 560px; font-size: 1.15rem; color: var(--text-soft); margin-bottom: 30px; }
.hero__roles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 38px; max-width: 640px; }
.hero__roles span { font-size: .82rem; font-weight: 500; color: var(--text-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero__socials a { font-size: .86rem; font-weight: 500; color: var(--text-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; transition: border-color .2s, color .2s; }
.hero__socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--text); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Ghost watermark headings ===== */
.page-head, .block { position: relative; }
.page-head[data-ghost]::before, .block[data-ghost]::before {
  content: attr(data-ghost); position: absolute; top: -.06em; left: -6px; z-index: 0;
  font-family: var(--display); font-weight: 700; line-height: .82; letter-spacing: -3px;
  text-transform: uppercase; white-space: nowrap; pointer-events: none;
  color: var(--text); opacity: .045;
  font-size: clamp(4.5rem, 17vw, 13rem);
}
.block[data-ghost]::before { top: 24px; }
.page-head > *, .block > * { position: relative; z-index: 1; }

/* ===== Page head (inner pages) ===== */
.page-head { padding: clamp(40px, 7vh, 76px) 0 12px; overflow: hidden; }
.page-head__eyebrow { text-transform: uppercase; letter-spacing: 1.4px; font-size: .75rem; color: var(--accent); margin-bottom: 16px; }
.page-head__title { font-family: var(--display); font-weight: 600; line-height: 1.0; letter-spacing: -0.035em;
  font-size: clamp(2.6rem, 7vw, 5.5rem); margin-bottom: 26px; }
.page-head__text { max-width: 560px; font-size: 1.12rem; color: var(--text-soft); }

/* ===== Blocks ===== */
.block { padding: clamp(44px, 6vh, 60px) 0; border-top: 1px solid var(--line); }
.block--flush { border-top: none; padding-top: 28px; }

/* ===== Hobbies ===== */
.hobbies { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.hobby { border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; transition: transform .2s, background .25s; }
.hobby:hover { transform: translateY(-4px); background: var(--surface); }
.hobby__ico { width: 44px; height: 44px; display: block; font-size: 1.8rem; }
.theme-toggle img { width: 20px; height: 20px; display: block; }
.hobby h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 600; margin: 12px 0 8px; }
.hobby p { color: var(--text-soft); font-size: .94rem; }

/* ===== Contact cards ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px;
  border: 1px solid var(--line); border-radius: 16px; transition: transform .2s, border-color .2s, background .25s; }
.contact-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.contact-card__label { text-transform: uppercase; letter-spacing: 1.5px; font-size: .72rem; color: var(--text-soft); }
.contact-card__value { font-family: var(--display); font-size: 1.4rem; font-weight: 600; line-height: 1.15; word-break: break-word; }
.contact-card__go { margin-top: auto; padding-top: 12px; color: var(--accent); font-weight: 600; font-size: .9rem; }
.contact-card__alt { font-size: .82rem; color: var(--text-soft); opacity: .9; }
.contact-card--primary { background: var(--accent); border-color: var(--accent); }
.contact-card--primary .contact-card__label,
.contact-card--primary .contact-card__value,
.contact-card--primary .contact-card__alt,
.contact-card--primary .contact-card__go { color: #fff; }
.contact-card--primary .contact-card__alt { opacity: .85; }
.contact-card--muted:hover { transform: none; border-color: var(--line); cursor: default; }
.contact-card--muted .contact-card__go { color: var(--text-soft); }

/* ===== Contact page — figure image backdrop (used as-is) ===== */

/* ===== Contact form ===== */
.form { display: grid; gap: 18px; max-width: 720px; margin-left: auto; margin-right: auto; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.field__input {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field__input::placeholder { color: var(--text-soft); opacity: .65; }
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field__input--area { resize: vertical; min-height: 160px; line-height: 1.6; }
.form__submit { justify-self: center; border: none; cursor: pointer; font: inherit; font-weight: 600; }
.form__submit[disabled] { opacity: .6; cursor: default; }
.form__gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-size: .9rem; margin: 0; min-height: 1.2em; text-align: center; }
.form__status.is-ok { color: var(--accent-2); font-weight: 600; }
.form__status.is-err { color: #d1483c; font-weight: 600; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.block__label { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 1.4px;
  font-size: .74rem; font-weight: 500; color: var(--text-soft); margin: 0 0 32px; }
.block__label span { font-family: var(--display); color: var(--accent); font-size: .9rem; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; }
.about__lead p { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; font-weight: 500; }
.about__body p { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 26px; }
.about__tools { display: flex; flex-wrap: wrap; gap: 10px; }
.about__tools span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .85rem; color: var(--text-soft); }

/* ===== Work ===== */
.work { display: flex; flex-direction: column; gap: 90px; }
.work__item { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.work__item--rev .work__media { order: 2; }
.work__media {
  position: relative; display: block; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .35s ease, box-shadow .35s ease;
}
.work__media:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.14); }
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work__media.is-empty { display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), transparent); }
.work__media.is-empty::after { content: attr(data-label); font-family: var(--display); font-size: 1.3rem; color: var(--accent); padding: 20px; text-align: center; }
.work__badge { display: inline-block; text-transform: uppercase; letter-spacing: 1.5px; font-size: .68rem; font-weight: 700;
  color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.work__cta { display: inline-block; margin-top: 20px; color: var(--accent); font-weight: 600; font-size: .95rem; }
.work__cta:hover { text-decoration: underline; }
.work__item--feature .work__media.is-empty, .work__item--feature .work__media { box-shadow: var(--shadow); }
.work__meta h3 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.1; margin-bottom: 10px; }
.work__org { color: var(--accent); font-size: .9rem; font-weight: 600; margin-bottom: 16px; }
.work__desc { color: var(--text-soft); margin-bottom: 20px; }
.work__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.work__tags li { font-size: .78rem; color: var(--text-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

/* ===== Skills ===== */
.skills { display: flex; flex-direction: column; }
.skills__row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.skills__row:first-child { border-top: 1px solid var(--line); }
.skills__row h3 { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 500; }
.skills__row p { color: var(--text-soft); }

/* ===== Expertise ===== */
.expertise { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.exp { background: var(--bg); padding: 26px 24px; transition: background .25s; }
.exp:hover { background: var(--surface); }
.exp__no { font-family: var(--display); font-size: .8rem; color: var(--accent); }
.exp h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 600; margin: 10px 0 12px; line-height: 1.1; }
.exp p { color: var(--text-soft); font-size: .96rem; }
.exp__tools { margin-top: 14px; font-size: .82rem !important; color: var(--text) !important; opacity: .75; }

/* ===== Case study ===== */
.back-link { display: inline-block; color: var(--text-soft); font-size: .9rem; font-weight: 500; margin-bottom: 22px; }
.back-link:hover { color: var(--accent); }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0 40px; border-bottom: 1px solid var(--line); }
.cs-meta div { display: flex; flex-direction: column; gap: 6px; font-size: .95rem; font-weight: 500; }
.cs-meta span { text-transform: uppercase; letter-spacing: 1.5px; font-size: .7rem; color: var(--text-soft); font-weight: 600; }
.cs-hero { margin: 40px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.cs-hero img { width: 100%; display: block; }
.cs-figure { margin: 20px 0 10px; }
.cs-figure img { width: 100%; border-radius: 16px; border: 1px solid var(--line); display: block; }
.cs-figure figcaption, .cs-gallery figcaption { margin-top: 12px; font-size: .85rem; color: var(--text-soft); }
.cs-two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.cs-two__lead h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
.cs-two__body p { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 18px; }
.cs-h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 600; margin: 8px 0 8px; }
.cs-note { color: var(--text-soft); max-width: 640px; margin-bottom: 26px; }

/* Swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 50px; }
.sw { display: flex; flex-direction: column; gap: 4px; }
.sw__chip { display: block; height: 90px; border-radius: 12px; margin-bottom: 8px; }
.sw__chip--bd { border: 1px solid var(--line); }
.sw b { font-size: .95rem; }
.sw small { color: var(--text-soft); font-size: .8rem; }

/* Type rows */
.type-rows { display: flex; flex-direction: column; }
.tr { display: grid; grid-template-columns: 90px 1fr; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tr:first-child { border-top: 1px solid var(--line); }
.tr__spec { font-size: 2.6rem; line-height: 1; }
.tr b { font-size: 1.1rem; }
.tr p { color: var(--text-soft); font-size: .92rem; margin-top: 4px; }

/* Galleries */
.cs-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cs-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.cs-gallery figure { margin: 0; }
.cs-gallery img { width: 100%; border-radius: 14px; border: 1px solid var(--line); display: block; }

/* Scents */
.cs-scents { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.scent { border-radius: 16px; padding: 40px 34px; color: #fff; }
.scent--earth { background: #A15A34; }
.scent--coast { background: #2C4A5E; }
.scent__tag { text-transform: uppercase; letter-spacing: 2px; font-size: .72rem; opacity: .85; }
.scent h3 { font-family: var(--display); font-style: normal; font-size: 2rem; font-weight: 600; letter-spacing: -.01em; margin: 10px 0 14px; }
.scent p { font-size: .98rem; opacity: .92; }

/* ===== Brand board (tiled) ===== */
.board-wrap { padding: 16px 0 10px; max-width: 1000px; margin: 0 auto; }
.brand-board { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 148px;
  gap: 12px; grid-auto-flow: dense; }
.tile { border-radius: 16px; overflow: hidden; position: relative; background: var(--surface); border: 1px solid var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t2c { grid-column: span 2; }
.t2r { grid-row: span 2; }
.tile--pad { padding: 26px; display: flex; flex-direction: column; }
.tile--pad.center { align-items: center; justify-content: center; text-align: center; }
.bg-char { background: #1C1B19; color: #EDE3D0; border-color: #1C1B19; }
.bg-beige { background: #EDE3D0; color: #1C1B19; border-color: #e2d6bf; }
.bg-white { background: #fff; color: #1C1B19; }
.muted { opacity: .6; }
.tile__title { font-family: var(--display); font-size: 1.15rem; font-weight: 600; margin-bottom: 16px; }

/* Wordmark */
.wordmark { font-family: 'Fredoka', var(--sans); font-weight: 600; font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1; letter-spacing: -1px; color: #fff; }
.wordmark span { color: #EDE3D0; }
.wordmark--sm { font-size: 1.6rem; color: #fff; }
.wordmark--sm span { color: inherit; }
.brand-tag { font-family: var(--display); font-style: italic; font-size: 1.05rem; margin-top: 8px; color: #EDE3D0; }
.brand-hero-foot { margin-top: auto; font-size: .9rem; }
.brand-hero-foot .muted { font-size: .82rem; }

/* Values */
.values3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: auto; }
.values3 b { display: block; font-size: 1rem; margin-bottom: 4px; }
.values3 small { font-size: .8rem; opacity: .8; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chip { flex: 1 1 auto; min-width: 74px; height: 54px; border-radius: 9px; display: flex; align-items: flex-end; padding: 6px; }
.chip i { font-family: monospace; font-size: .62rem; color: #fff; font-style: normal; opacity: .95; }
.chip--bd { border: 1px solid var(--line); }

/* Type tile */
.type-line { display: flex; gap: 20px; align-items: center; margin-top: auto; }
.aa--round { font-family: 'Fredoka', var(--sans); font-weight: 600; }
.aa { font-size: 3.4rem; line-height: 1; }
.type-names b { display: block; font-size: .92rem; }
.type-names small { font-size: .76rem; opacity: .7; }
.type-names .mt { margin-top: 8px; }

/* Usage */
.usage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.usage__box { border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border: 1px solid var(--line); }
.usage__box em { font-size: .72rem; font-style: normal; text-transform: uppercase; letter-spacing: 1px; opacity: .7; }

/* Scent tiles */
.scent__tag { text-transform: uppercase; letter-spacing: 2px; font-size: .68rem; opacity: .85; }
.scent-name { font-family: var(--display); font-style: normal; font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; margin: 8px 0 6px; }

/* Quote */
.brand-quote { font-family: var(--display); font-style: italic; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 600; color: #fff; margin-bottom: 10px; }

@media (max-width: 960px) {
  .brand-board { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .t2c { grid-column: span 2; }
}
@media (max-width: 560px) {
  .values3 { grid-template-columns: 1fr; gap: 10px; }
  .type-line { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ===== Cybersecurity toolkit ===== */
.toolkit { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.toolkit + .toolkit { margin-top: 28px; }
.tk { border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; }
.tk h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 600; margin-bottom: 16px; color: var(--accent); }
.tk ul { list-style: none; }
.tk li { position: relative; padding: 9px 0 9px 20px; color: var(--text-soft); font-size: .92rem; border-bottom: 1px solid var(--line); }
.tk li:last-child { border-bottom: none; }
.tk li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }

/* ===== Work page (iOS cards) ===== */
.pill-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .3px;
  color: var(--accent); background: var(--accent-soft); padding: 6px 13px; border-radius: 999px; }

.feature-card { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface);
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(0,0,0,.12); }
.feature-card:active { transform: scale(.99); }
.feature-card__media { background: var(--accent-soft); min-height: 300px; }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-card__media.is-empty { display: grid; place-items: center; text-align: center; padding: 20px;
  background: linear-gradient(150deg, var(--accent-soft), transparent 80%); color: var(--accent);
  font-family: var(--display); font-weight: 600; }
.feature-card__media.is-empty::after { content: attr(data-label); }
/* screenshot media: show the full screen (no crop) on a soft panel */
.feature-card__media--shot { display: grid; place-items: center; padding: 24px;
  background: linear-gradient(150deg, var(--accent-soft), transparent 85%); }
.feature-card__media--shot img { width: 100%; height: auto; max-height: 340px; object-fit: contain;
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.16); }
/* screenshot in a browser mockup frame inside a featured card */
.feature-card__media--mock { display: grid; place-items: center; padding: 24px;
  background: linear-gradient(150deg, var(--accent-soft), transparent 85%); }
.feature-card__media--mock .mock { width: 100%; box-shadow: 0 16px 42px rgba(0,0,0,.20); }
.feature-card__media--mock .mock:hover { transform: none; }
.feature-card--edtech { grid-template-columns: 0.9fr 1.1fr; }
/* branded colour panel for featured cards awaiting a photo */
.feature-card__media--brand { display: grid; place-items: center; padding: 30px; min-height: 260px;
  background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #0b1428)); }
.feature-card__media--brand.is-teal { background: linear-gradient(150deg, var(--accent-2), color-mix(in srgb, var(--accent-2) 55%, #06202a)); }
.brand-panel { font-family: var(--display); font-weight: 700; letter-spacing: -1px; line-height: 1.05;
  font-size: clamp(1.9rem, 4vw, 3rem); color: #fff; text-align: center; }
.feature-card__body { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.feature-card__body h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.08; letter-spacing: -.5px; }
.feature-card__body p { color: var(--text-soft); }
.feature-card__cta { margin-top: auto; color: var(--accent); font-weight: 600; }
.feature-card__org { color: var(--accent); font-size: .88rem; font-weight: 600; margin-top: -4px; }
.feature-stack { display: flex; flex-direction: column; gap: 26px; }
.feature-card--rev .feature-card__media { order: 2; }

/* "What I did" checklist */
.proj-did { list-style: none; display: flex; flex-direction: column; gap: 7px; margin: 2px 0; }
.proj-did li { position: relative; padding-left: 22px; color: var(--text-soft); font-size: .9rem; line-height: 1.45; }
.proj-did li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.proj-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.proj-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(0,0,0,.10); }
.proj-card:active { transform: scale(.98); }
.proj-card__media { aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 22px;
  background: linear-gradient(150deg, var(--accent-soft), transparent 80%);
  color: var(--accent); font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.proj-card__media--photo { padding: 0; background: var(--accent-soft); }
.proj-card__media--photo img { width: 100%; height: 100%; object-fit: cover; }
.proj-card__media.is-empty { padding: 22px; background: linear-gradient(150deg, var(--accent-soft), transparent 80%); }
.proj-card__media.is-empty::after { content: attr(data-label); }
.proj-card__body { padding: 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.proj-card__body h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.2px; }
.proj-card__org { color: var(--accent); font-size: .84rem; font-weight: 600; }
.proj-card__desc { color: var(--text-soft); font-size: .92rem; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.proj-tags span { font-size: .72rem; color: var(--text-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }

/* ===== In-progress mini cards ===== */
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
  max-width: 780px; margin: 0 auto 34px; }
.mini-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: var(--surface);
  display: flex; flex-direction: column; gap: 8px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini-card:active { transform: scale(.98); }
.mini-card__badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  font-size: .7rem; font-weight: 700; letter-spacing: .3px; color: #b07d12;
  background: rgba(244, 196, 48, .16); padding: 4px 11px; border-radius: 999px; }
.mini-card__badge i { width: 7px; height: 7px; border-radius: 50%; background: #e0a91b;
  box-shadow: 0 0 0 0 rgba(224,169,27,.6); animation: pulse 2s infinite; }
.mini-card__badge--vision { color: #0e7c85; background: rgba(28, 162, 171, .14); }
.mini-card__badge--vision i { background: #1ca2ab; box-shadow: 0 0 0 0 rgba(28,162,171,.6); }
.mini-card__badge--ceo { color: var(--accent); background: var(--accent-soft); }
.mini-card__badge--ceo i { background: var(--accent); box-shadow: 0 0 0 0 rgba(201,109,60,.6); }
.mini-card h4 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.2px; }
.mini-card p { color: var(--text-soft); font-size: .9rem; line-height: 1.5; }
.mini-card__meta { margin-top: auto; padding-top: 4px; color: var(--accent-2); font-size: .8rem; font-weight: 600; }

/* ===== Tier-3 work list (sentences, no cards) ===== */
.worklist { list-style: none; max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; }
.worklist li { position: relative; padding: 16px 0 16px 28px; color: var(--text-soft);
  font-size: .98rem; line-height: 1.6; border-bottom: 1px solid var(--line); }
.worklist li:first-child { border-top: 1px solid var(--line); }
.worklist li::before { content: "→"; position: absolute; left: 0; top: 16px; color: var(--accent); font-weight: 600; }
.worklist b { color: var(--text); font-weight: 600; }
.worklist__meta { display: block; margin-top: 2px; font-size: .8rem; color: var(--accent); font-weight: 600; }

/* ===== Browser-frame mockups ===== */
.mock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 22px; }
.mock { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--surface); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.mock:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(0,0,0,.12); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 9px 13px; background: var(--bg); border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .mock__bar { background: #111; }
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: #d5d5da; flex-shrink: 0; }
.mock__dot--r { background: #ff5f57; } .mock__dot--y { background: #febc2e; } .mock__dot--g { background: #28c840; }
.mock__url { margin-left: 10px; flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 7px;
  padding: 5px 12px; font-size: .72rem; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__img { display: block; width: 100%; height: auto; }
.mock.is-empty .mock__body { aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 20px;
  background: linear-gradient(150deg, var(--accent-soft), transparent 80%); color: var(--accent);
  font-family: var(--display); font-weight: 600; }
.mock.is-empty .mock__body::after { content: attr(data-label); }
.mock__body.is-empty-note { aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 20px;
  background: linear-gradient(150deg, var(--accent-soft), transparent 80%); color: var(--accent);
  font-family: var(--display); font-weight: 600; }
.mock__body.is-empty-note::after { content: attr(data-label); }
.mock__cap { margin-top: 10px; font-size: .84rem; color: var(--text-soft); }

/* ===== Cravins brand board (reuses the .brand-board / .tile system) ===== */
.cv-board { grid-auto-flow: dense; }
.cv-word { font-family: 'Montserrat', var(--sans); font-weight: 800; letter-spacing: -.02em; line-height: 1;
  font-size: clamp(2.1rem, 5.5vw, 3.3rem); }
.bg-cv { background: #F47920; color: #fff; border-color: #F47920; }
.bg-cvcream { background: #FDF8F3; color: #3D3D3D; border-color: #efe4d6; }
.bg-cvdark { background: #3D3D3D; color: #FDF8F3; border-color: #3D3D3D; }
.cv-tag { font-family: 'Montserrat', var(--sans); font-weight: 600; font-size: 1.02rem; margin-top: 10px; }
.cv-flavour .scent__tag { color: inherit; opacity: .85; }
.cv-flavour .scent-name { font-family: 'Montserrat', var(--sans); font-style: normal; font-weight: 800; font-size: 1.15rem; margin: 4px 0; }
.cv-flavour .scent__tag { font-size: .62rem; }
.cv-flavour small { font-size: .78rem; }
.tile--soon { display: grid; place-items: center; text-align: center; padding: 10px;
  background: linear-gradient(150deg, rgba(244,121,32,.12), transparent 82%); color: #D4611A;
  font-family: var(--display); font-weight: 700; font-size: .82rem; line-height: 1.2;
  border-style: dashed; border-color: rgba(244,121,32,.4); }
.tile--soon small { display: block; font-weight: 500; opacity: .7; margin-top: 3px; font-size: .66rem; }
:root[data-theme="dark"] .tile--soon { color: #e0865a; }
/* full-product tiles — show the whole pouch (no crop) on a matching backdrop */
.tile--fit img { object-fit: contain; }
.tile--prod { grid-column: span 2; grid-row: span 4; }
@media (max-width: 760px) { .tile--prod { grid-row: span 5; } }

/* ===== Certifications ===== */
.certs { display: flex; flex-direction: column; }
.cert { display: grid; grid-template-columns: 140px 1fr; gap: 30px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cert:first-child { border-top: 1px solid var(--line); }
.cert__yr { color: var(--accent); font-size: .85rem; font-weight: 600; padding-top: 4px; }
.cert h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 500; margin-bottom: 4px; }
.cert p { color: var(--text-soft); font-size: .92rem; }

/* ===== Education ===== */
.edu { display: flex; flex-direction: column; }
.edu__item { display: grid; grid-template-columns: 140px 1fr; gap: 30px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.edu__item:first-child { border-top: 1px solid var(--line); }
.edu__yr { color: var(--accent); font-size: .85rem; font-weight: 600; padding-top: 5px; }
.edu__item h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 500; margin-bottom: 4px; }
.edu__item p { color: var(--text-soft); font-size: .95rem; }
.edu__modules { margin-top: 6px; font-size: .82rem !important; color: var(--accent-2) !important; font-weight: 500; }

/* ===== Contact ===== */
.block--contact { padding-bottom: 60px; }
.contact__title { font-family: var(--display); font-weight: 600; line-height: 1.0; letter-spacing: -0.035em;
  font-size: clamp(2.6rem, 7vw, 5.5rem); margin-bottom: 26px; }
.contact__text { max-width: 440px; color: var(--text-soft); font-size: 1.1rem; margin-bottom: 30px; }
.contact__email { font-family: var(--display); font-size: clamp(1.3rem, 3vw, 2rem); color: var(--accent);
  border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.contact__row { display: flex; gap: 30px; margin-top: 40px; }
.contact__row a { color: var(--text-soft); font-weight: 500; }
.contact__row a:hover { color: var(--accent); }

/* ===== Footer ===== */
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 40px 0; border-top: 1px solid var(--line); color: var(--text-soft); font-size: .88rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
/* Phones: show content immediately. Fast scrolling outruns the reveal and
   catches cards half-faded/shifted, which reads as broken layout. */
@media (max-width: 760px) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Masked line reveal (hero headline) */
.anim-lines .line { display: block; overflow: hidden; padding-bottom: .06em; }
.anim-lines .line > * { display: block; transform: translateY(115%); transition: transform .9s cubic-bezier(.5,.08,0,1); }
.anim-lines.is-in .line:nth-child(1) > * { transition-delay: .05s; }
.anim-lines.is-in .line:nth-child(2) > * { transition-delay: .18s; }
.anim-lines.is-in .line:nth-child(3) > * { transition-delay: .31s; }
.anim-lines.is-in .line > * { transform: none; }

/* Hover zoom on media */
.work__media img, .tile img { transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.work__media:hover img, .tile:hover img { transform: scale(1.05); }

/* Button sheen on hover */
.btn { position: relative; overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25), transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease; }
.btn--primary:hover::after { transform: translateX(120%); }

/* ===== iOS component polish ===== */
/* Expertise: spaced squircle cards instead of the hairline grid */
.expertise { background: transparent; border: none; gap: 20px; overflow: visible; }
.exp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.exp:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(0,0,0,.10); }

/* Elevate the other cards */
.hobby, .tk, .contact-card { box-shadow: var(--shadow); border-radius: var(--radius); }
.hobby:hover, .tk:hover, .contact-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(0,0,0,.10); }

/* Rounder media, tiles & imagery */
.work__media, .tile, .cs-figure img, .cs-hero, .cs-gallery img, .cert, .about__tools span { border-radius: var(--radius); }

/* Springy tap feedback (iOS) */
.btn, .nav__cta, .exp, .hobby, .tk, .contact-card, .work__media, .tile, .theme-toggle, .nav__burger {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, opacity .25s, border-color .25s;
}
.btn:active, .nav__cta:active, .theme-toggle:active, .nav__burger:active,
.exp:active, .hobby:active, .tk:active, .contact-card:active, .work__media:active, .tile:active { transform: scale(.97); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal, .anim-lines .line > * { opacity: 1 !important; transform: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px clamp(24px, 5vw, 60px) 22px;
    transform: translateY(-150%); transition: transform .35s ease; z-index: -1;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 8px 0; font-size: 1.05rem; }
  .nav__burger { display: block; }
  .nav__cta { display: none; }
}
@media (max-width: 640px) {
  .main { padding: 0 20px; }
}
@media (max-width: 960px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 36px; padding: 40px 0; }
  .hero__portrait { order: -1; max-width: 280px; aspect-ratio: 1; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .about, .work__item, .work__item--rev .work__media,
  .skills__row, .edu__item, .cert { grid-template-columns: 1fr; }
  .cert__yr, .edu__yr { color: var(--accent); }
  .cs-meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cs-two, .cs-scents, .cs-gallery, .cs-gallery--2 { grid-template-columns: 1fr; }
  .feature-card, .feature-card--edtech { grid-template-columns: 1fr; }
  .feature-card--rev .feature-card__media { order: 0; }
  .feature-card__media { min-height: 220px; }
  .work__item--rev .work__media { order: 0; }
  .work { gap: 60px; }
}

/* ===== 3-colour system ===== */
/* terracotta = primary (buttons, links, emphasis) · teal = secondary (labels & metadata) · ink/neutrals elsewhere */
.eyebrow, .page-head__eyebrow,
.proj-card__org, .feature-card__org, .work__org,
.worklist__meta, .cert__yr, .edu__yr,
.block__label span { color: var(--accent-2); }

/* ===== CV page ===== */
.cv-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.cv-actions .btn { cursor: pointer; border: none; font: inherit; font-weight: 600; }
.cv { max-width: 820px; padding-bottom: 20px; }
.cv-contact { font-size: .9rem; color: var(--text-soft); padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.cv-contact a { color: var(--accent); }
.cv-sec { padding: 24px 0; border-bottom: 1px solid var(--line); }
.cv-sec:last-of-type { border-bottom: none; }
.cv-sec__title { font-family: var(--display); font-size: .76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.4px; color: var(--accent-2); margin-bottom: 16px; }
.cv-sec p { color: var(--text-soft); }
.cv-sec > ul { margin: 0; padding-left: 18px; color: var(--text-soft); }
.cv-sec > ul li { margin-bottom: 6px; }
.cv-item { margin-bottom: 20px; }
.cv-item:last-child { margin-bottom: 0; }
.cv-item__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.cv-item__head h3 { font-family: var(--display); font-size: 1.02rem; font-weight: 600; }
.cv-item__meta { font-size: .8rem; color: var(--accent-2); white-space: nowrap; }
.cv-item ul { margin: 0; padding-left: 18px; color: var(--text-soft); font-size: .94rem; }
.cv-item ul li { margin-bottom: 5px; }
.cv-note { font-size: .88rem; color: var(--text-soft); }
.cv-list2 { columns: 2; column-gap: 30px; margin: 0; padding-left: 18px; color: var(--text-soft); font-size: .94rem; }
.cv-list2 li { margin-bottom: 6px; break-inside: avoid; }
.cv-skills { display: grid; grid-template-columns: 185px 1fr; gap: 8px 20px; margin: 0; }
.cv-skills dt { font-weight: 600; font-size: .92rem; }
.cv-skills dd { margin: 0; color: var(--text-soft); font-size: .92rem; }
.cv-foot-note { font-size: .85rem; color: var(--text-soft); font-style: italic; padding-top: 4px; }
@media (max-width: 680px) {
  .cv-list2 { columns: 1; }
  .cv-skills { grid-template-columns: 1fr; gap: 2px 0; }
  .cv-skills dd { margin-bottom: 10px; }
  .cv-item__meta { white-space: normal; }
}

/* ===== Print / Save as PDF ===== */
@media print {
  .nav, .foot, .cv-actions, .nav__burger, .theme-toggle, .nav__cta { display: none !important; }
  .main::before, .page-head::before, .block::before { display: none !important; }
  .reveal, .anim-lines .line > * { opacity: 1 !important; transform: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .main { max-width: 100% !important; padding: 0 !important; }
  .page-head { padding: 0 0 6px !important; min-height: 0 !important; overflow: visible; }
  .page-head__title { font-size: 24pt !important; margin-bottom: 4px; }
  .page-head__eyebrow { font-size: 8pt !important; margin-bottom: 6px !important; color: #666 !important; }
  .page-head__text { font-size: 9.5pt !important; color: #333 !important; max-width: none; }
  .cv { max-width: none !important; font-size: 10pt; }
  .cv-contact { font-size: 9pt; color: #333 !important; padding: 8pt 0; }
  .cv-sec { padding: 9pt 0; break-inside: avoid; page-break-inside: avoid; }
  .cv-sec__title { font-size: 8.5pt !important; color: #000 !important; margin-bottom: 6pt; }
  .cv-item { break-inside: avoid; page-break-inside: avoid; margin-bottom: 9pt; }
  .cv-item__head h3 { font-size: 10.5pt !important; }
  .cv-item__meta { font-size: 8.5pt !important; color: #444 !important; }
  .cv-sec p, .cv-sec ul, .cv-item ul, .cv-skills dd, .cv-note, .cv-list2 { color: #222 !important; font-size: 9.5pt !important; }
  a { color: #000 !important; text-decoration: none !important; }
  @page { size: A4; margin: 14mm; }
}
