/* ==========================================================
   VIRTUES — site styles
   Colors sampled from the original Base44 site.
   ========================================================== */

:root {
  --bg: #fbfaf9;
  --bg-alt: #f6f5f4;
  --surface: #ffffff;
  --ink: #161616;
  --ink-soft: #3a3a3a;
  --muted: #6e6e6b;
  --line: #e4e2de;
  --accent: #9a1e47;
  --accent-hover: #82173b;
  --olive: #5b6249;
  --dark: #141414;
  --forest: #49503b;
  --forest-input: #646957;
  --orange: #ef8b34;
  --orange-hover: #e07a22;

  --serif: "Times New Roman", Times, serif; /* all headings, titles, logo, names */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1024px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-lg: 28px;
  --radius-md: 20px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--serif); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

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

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 18px;
}

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}
.h-section { font-size: clamp(36px, 4.2vw, 60px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: #cfccc6; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-orange { background: var(--orange); color: #fff; font-weight: 600; }
.btn-orange:hover { background: var(--orange-hover); }
.btn-sm { padding: 11px 22px; font-size: 15px; }

/* ==========================================================
   Header / nav
   ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 26px var(--gutter) 0;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.logo {
  position: absolute;
  left: 50px;
  top: 46px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.nav-pill {
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: 10px 14px 10px 0;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .35s, box-shadow .35s, border-color .35s, max-width .45s ease, padding .35s;
  max-width: 100%;
}
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0 0 0 175px; transition: padding .35s; }
.nav-links a {
  display: block;
  padding: 8px 16px;
  font-size: 15.5px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; }

.site-header.is-scrolled .nav-pill {
  width: max-content;
  padding: 10px 14px 10px 14px;
  background: rgba(238, 237, 233, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.08);
}
.site-header.is-scrolled .nav-links { padding-left: 0; }
.site-header.is-scrolled .nav-cta { margin-left: 36px; }

.menu-toggle { display: none; }

@media (max-width: 900px) {
  .site-header { padding-top: 16px; }
  .logo { position: static; }
  .nav-pill,
  .site-header.is-scrolled .nav-pill {
    max-width: 100%;
    justify-content: space-between;
    padding: 10px 10px 10px 22px;
    background: rgba(238, 237, 233, 0.86);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(20, 20, 20, 0.06);
  }
  .nav-links, .nav-cta { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 999px; border: 0;
    background: var(--accent); color: #fff; cursor: pointer;
  }
  .menu-toggle svg { width: 20px; height: 20px; }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 60;
    background: var(--bg);
    display: flex; flex-direction: column; padding: 28px var(--gutter);
    transform: translateY(-100%); transition: transform .35s ease;
  }
  .mobile-menu.is-open { transform: none; }
  .mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; }
  .mobile-menu ul { list-style: none; padding: 0; margin: 48px 0 32px; }
  .mobile-menu li a {
    display: block; padding: 14px 0; font-family: var(--serif); font-size: 38px;
    text-decoration: none; border-bottom: 1px solid var(--line);
  }
}
@media (min-width: 901px) { .mobile-menu { display: none; } }

/* ==========================================================
   Intro (home page, once per visit)
   ========================================================== */
.intro { display: none; }
html.intro-play { overflow: hidden; }
.intro-play .intro {
  display: flex; align-items: center; justify-content: center; text-align: center;
  position: fixed; inset: 0; z-index: 100; padding: 0 var(--gutter);
  background: var(--bg); cursor: pointer;
  transition: opacity .7s ease, visibility .7s;
}
.intro.is-done { opacity: 0; visibility: hidden; }
.intro-word {
  margin: 0; font-family: var(--serif); font-size: clamp(64px, 14vw, 184px);
  line-height: 1; letter-spacing: -0.02em; color: var(--ink); opacity: 0;
}
.intro-line {
  display: block; width: 72px; height: 1px; margin: 30px auto 0;
  background: var(--accent); transform: scaleX(0);
}
.intro-tag {
  margin: 24px 0 0; font-size: clamp(11px, 1.4vw, 14px); font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--olive); opacity: 0;
}
.intro.is-go .intro-word { animation: intro-word 1.2s cubic-bezier(.2, .7, .2, 1) forwards; }
.intro.is-go .intro-line { animation: intro-line .8s ease .65s forwards; }
.intro.is-go .intro-tag { animation: intro-tag .8s ease .9s forwards; }
@keyframes intro-word {
  from { opacity: 0; transform: translateY(28px); letter-spacing: 0.18em; filter: blur(10px); }
  to { opacity: 1; transform: none; letter-spacing: -0.02em; filter: none; }
}
@keyframes intro-line { to { transform: scaleX(1); } }
@keyframes intro-tag {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================
   Scroll reveal (classes are added by js/layout.js only, so
   content stays visible if JavaScript doesn't load)
   ========================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================
   Hero
   ========================================================== */
.hero { padding: clamp(150px, 20vw, 250px) 0 0; text-align: center; }
.hero h1 { font-size: clamp(54px, 8.2vw, 124px); line-height: 1; letter-spacing: -0.025em; }
.hero-sub {
  max-width: 700px;
  margin: 38px auto 0;
  font-size: clamp(17px, 1.4vw, 19.5px);
  line-height: 1.55;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 56px; }
.hero-actions .btn { padding: 15px 30px; font-size: 16px; }
.hero-tagline {
  margin: 40px auto 0;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-media {
  margin-top: 80px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--ink);
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
  background: #e9e6df;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ---------- Platform strip ---------- */
.platforms { margin-top: 110px; border-block: 1px solid var(--line); padding: 40px 0; }
.platforms ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 64px;
  font-size: 15.5px; letter-spacing: 0.03em; color: var(--muted);
}

/* ==========================================================
   About
   ========================================================== */
.about { padding: clamp(100px, 13vw, 200px) 0 120px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about h2 { font-size: clamp(36px, 3.7vw, 54px); line-height: 1.12; }
.about-body p { margin: 4px 0 0; font-size: 18.5px; line-height: 1.75; color: var(--muted); }
.about-list { list-style: none; padding: 0; margin: 44px 0 0; }
.about-list li { position: relative; padding-left: 28px; font-size: 17.5px; margin-bottom: 14px; }
.about-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.7em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--olive);
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ==========================================================
   Team
   ========================================================== */
.team { padding: 140px 0 160px; }
.team h2 { margin-bottom: 64px; }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.team-card { text-decoration: none; color: inherit; display: block; }
.team-photo {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--ink);
  overflow: hidden;
  background: #d8d8d8;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-card h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 26px 0 2px; transition: color .2s; }
.team-card p { margin: 0; color: var(--muted); font-size: 15px; }
.team-card:hover h3, .team-card:focus-visible h3 { color: var(--accent); }
.team-card .view-link {
  display: inline-block; margin-top: 10px; font-size: 14px; color: var(--accent);
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s;
}
.team-card:hover .view-link, .team-card:focus-visible .view-link { opacity: 1; transform: none; }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .team-card h3 { font-size: 22px; margin-top: 18px; }
  .team-card p { font-size: 15px; }
  .team-card .view-link { opacity: 1; transform: none; }
}

/* ==========================================================
   What we do (accordion)
   ========================================================== */
.services { background: var(--bg-alt); padding: 140px 0 160px; }
.services .inner { width: min(900px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.services h2 { margin-bottom: 80px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0 26px;
  background: none; border: 0; text-align: left; cursor: pointer; color: inherit;
}
.acc-trigger .eyebrow { margin-bottom: 6px; font-size: 11.5px; }
.acc-trigger .title { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 31px); line-height: 1.15; display: block; }
.acc-trigger .chev { width: 24px; height: 24px; flex: none; transition: transform .3s; }
.acc-item.is-open .chev { transform: rotate(180deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { margin: 0 0 30px; max-width: 640px; color: var(--muted); font-size: 17px; }

/* ==========================================================
   Case studies / creative system
   ========================================================== */
.cases { background: var(--bg-alt); padding: 120px 0 180px; }
.cases h2 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.12; }
.cases .lede { font-size: 18px; color: var(--muted); margin: 22px 0 60px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 330px)); gap: 22px; }
.case-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px 30px 48px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.case-card:hover { transform: translateY(-10px); box-shadow: 0 26px 50px rgba(20, 20, 20, 0.09); border-color: #d8d5cf; }
.case-card .icon { width: 22px; height: 22px; color: var(--olive); transition: color .3s; }
.case-card:hover .icon { color: var(--accent); }
.case-card .client { margin: 22px 0 8px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.case-card h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.3; margin: 0; transition: color .3s; }
.case-card:hover h3 { color: var(--accent); }
.case-card p { margin: 18px 0 24px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tags li {
  font-size: 13px; padding: 4px 13px; border-radius: 999px;
  border: 1px solid #d9d6d0; color: var(--ink-soft); transition: border-color .3s, color .3s;
}
.case-card:hover .tags li { border-color: rgba(154, 30, 71, 0.35); color: var(--accent); }

/* ==========================================================
   Process
   ========================================================== */
.process { padding: 150px 0 140px; }
.process .inner { width: min(900px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.process h2 { margin-bottom: 60px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid; grid-template-columns: 80px 1fr;
  padding: 40px 0 38px; border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step .num { font-family: var(--serif); font-size: 26px; color: var(--olive); line-height: 1; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 14px; line-height: 1; }
.step p { margin: 0; max-width: 520px; color: var(--muted); font-size: 17px; line-height: 1.7; }
@media (max-width: 640px) { .step { grid-template-columns: 60px 1fr; } .step .num, .step h3 { font-size: 28px; } }

/* ==========================================================
   Results
   ========================================================== */
.results { background: var(--dark); color: #fff; padding: 160px 0 150px; }
.results .eyebrow { color: var(--accent); filter: brightness(1.35); }
.results h2 { margin-bottom: 70px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 50px; }
.stat { border-top: 1px solid #3b3b3b; padding: 26px 0 48px; }
.stat .value { font-family: var(--serif); font-size: clamp(36px, 3.2vw, 44px); line-height: 1; }
.stat h3 { font-weight: 400; font-size: 16.5px; margin: 16px 0 6px; }
.stat p { margin: 0; font-size: 13.5px; color: #9a9a96; line-height: 1.55; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* ==========================================================
   Contact
   ========================================================== */
.contact { background: var(--forest); color: #fff; padding: 150px 0 160px; }
.contact .inner { width: min(770px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.contact h2 { font-size: clamp(36px, 4.2vw, 56px); }
.contact .lede { font-size: 17.5px; margin: 14px 0 56px; color: #eef0e8; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 32px; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: block; margin-bottom: 11px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #e8eade;
}
.field label .opt { text-transform: none; letter-spacing: 0.12em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--forest-input);
  color: #fff;
  font: inherit; font-size: 16.5px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(255, 255, 255, 0.6); background: #6c715f;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='white' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 22px center;
}
.field select option { color: var(--ink); }
.field.has-error input, .field.has-error textarea { border-color: #ffb4a8; }
.field .err { display: block; margin-top: 8px; font-size: 14px; color: #ffcfc7; min-height: 0; }
.form-actions { margin-top: 50px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.form-actions .btn { padding: 15px 34px; font-size: 16px; }
.form-status { font-size: 17px; }
.form-status.ok { color: #dff3c9; }
.form-status.bad { color: #ffcfc7; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { padding: 110px 0 120px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2.2fr 0.8fr 1.4fr 1fr; gap: 40px; }
.footer-brand .logo-lg { color: var(--ink); font-family: var(--serif); font-size: 30px; margin: 0 0 26px; line-height: 1; }
.footer-brand p:not(.logo-lg) { margin: 0 0 26px; color: var(--muted); font-size: 15.5px; }
.socials { display: flex; gap: 22px; }
.socials a { color: var(--muted); display: inline-flex; }
.socials a:hover { color: var(--ink); }
.socials svg { width: 22px; height: 22px; }
.footer-col { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 18px; }
.footer-col a { text-decoration: none; color: var(--ink-soft); font-size: 15.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-end { text-align: right; }
.footer-end a { text-decoration: none; color: var(--ink-soft); font-size: 15.5px; }
.footer-end small { display: block; margin-top: 18px; color: var(--muted); font-size: 15px; letter-spacing: 0.05em; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-end { text-align: left; }
}

/* ==========================================================
   Profile page
   ========================================================== */
.profile { padding: 170px 0 120px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 56px;
  color: var(--muted); text-decoration: none; font-size: 16px;
}
.back-link:hover { color: var(--accent); }
.back-link svg { width: 16px; height: 16px; }
.profile-grid { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 64px; align-items: start; }
.profile-photo { position: sticky; top: 130px; }
.profile-photo .team-photo { border-radius: var(--radius-lg); }
.profile-head .eyebrow { color: var(--accent); }
.profile-head h1 { font-size: clamp(44px, 5.6vw, 76px); }
.profile-bio { margin: 28px 0 0; max-width: 620px; font-size: 18.5px; line-height: 1.75; color: var(--muted); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }
.profile-section { margin-top: 90px; padding-top: 40px; border-top: 1px solid var(--line); }
.profile-section h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 0 0 30px; }
.focus-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.focus-list h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.focus-list p { margin: 0; color: var(--muted); font-size: 17px; }
.work-list { display: grid; gap: 24px; }
.work-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 34px 36px;
}
.work-item .client { margin: 0 0 8px; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.work-item h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 12px; line-height: 1.25; }
.work-item p { margin: 0 0 22px; color: var(--muted); }
.tool-tags li { background: var(--surface); }
.more-team { margin-top: 110px; }
.more-team .team-grid { grid-template-columns: repeat(4, 1fr); }
.not-found { text-align: center; padding: 120px 0; }
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; gap: 40px; }
  .profile-photo { position: static; max-width: 360px; }
  .focus-list { grid-template-columns: 1fr; }
  .more-team .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CV viewer ---------- */
.cv-dialog {
  width: min(980px, 94vw); height: min(92vh, 1200px);
  padding: 0; border: 0; border-radius: 22px; overflow: hidden;
  background: var(--surface); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}
.cv-dialog::backdrop { background: rgba(20, 20, 20, 0.55); backdrop-filter: blur(4px); }
.cv-dialog[open] { display: flex; flex-direction: column; }
.cv-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px 14px 26px; border-bottom: 1px solid var(--line);
}
.cv-bar strong { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.cv-bar .bar-actions { display: flex; gap: 10px; align-items: center; }
.cv-bar a { font-size: 15px; color: var(--accent); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 18px; height: 18px; }
.cv-frame { flex: 1; width: 100%; border: 0; background: #e9e7e3; }

/* ==========================================================
   Creative page
   ========================================================== */
.nav-links a[aria-current="page"], .mobile-menu li a[aria-current="page"] { color: var(--accent); }

.creative { padding: 190px 0 140px; }
.creative .lede { margin: 26px 0 0; max-width: 760px; font-size: 18.5px; line-height: 1.7; color: var(--muted); }

.tabs { display: inline-flex; gap: 4px; margin-top: 56px; padding: 5px; border-radius: 999px; background: #edebe8; }
.tab {
  padding: 11px 26px; border: 0; border-radius: 999px; background: transparent;
  font-size: 16px; font-weight: 500; color: var(--muted); cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(20, 20, 20, 0.08); }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 32px; margin-top: 48px; }
.project-media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0;
  border-radius: var(--radius-md); border: 1.5px solid var(--ink); overflow: hidden; background: #d8d8d8;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
video.project-media { object-fit: cover; background: #000; }
button.project-media { cursor: pointer; }
button.project-media:hover img { transform: scale(1.03); }
.play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  display: flex; align-items: center; justify-content: center; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); transition: transform .3s ease;
}
.play svg { width: 28px; height: 28px; margin-left: 4px; }
button.project-media:hover .play { transform: scale(1.06); }
.project-card h3 { font-weight: 400; font-size: 28px; line-height: 1.25; margin: 24px 0 8px; }
.project-card p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.project-empty { color: var(--muted); }
@media (max-width: 720px) {
  .creative { padding-top: 150px; }
  .project-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- Simple legal pages ---------- */
.legal { padding: 180px 0 120px; }
.legal .inner { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.legal h1 { font-size: clamp(44px, 6vw, 72px); margin-bottom: 30px; }
.legal p { color: var(--muted); font-size: 19px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .intro { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
