:root {
  --paper: #faf7f2;
  --tint: #f2ece3;
  --card: #fff;
  --ink: #14213d;
  --muted: #55607a;
  --coral: #c43d27;
  --coral-dark: #a8311e;
  --coral-soft: #f6a08f;
  --line: #e7dfd3;
  --radius: 18px;
  --shadow: 0 18px 45px -25px rgb(20 33 61 / 0.35);
  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--body); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.015em; }
h3 { font-size: 1.28rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: -60px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }
.eyebrow { margin-bottom: 14px; color: var(--coral); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; border: 1.5px solid var(--coral); border-radius: 999px; background: var(--coral); color: #fff; font-weight: 700; text-decoration: none; transition: background 0.2s, transform 0.2s, color 0.2s; }
.btn:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn--small { min-height: 42px; padding: 8px 20px; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--tint); }
.btn--outline-light { background: transparent; border-color: rgb(255 255 255 / 0.6); }
.btn--outline-light:hover { background: rgb(255 255 255 / 0.14); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgb(250 247 242 / 0.9); border-bottom: 1px solid transparent; backdrop-filter: blur(12px); transition: border-color 0.2s; }
.header.is-scrolled { border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo { font-family: var(--display); font-size: 1.7rem; font-weight: 600; text-decoration: none; }
.logo span { color: var(--coral); }
.nav { display: flex; align-items: center; gap: 30px; font-weight: 600; font-size: 0.95rem; }
.nav a:not(.btn) { text-decoration: none; }
.nav a:not(.btn):hover { color: var(--coral); }
.menu-btn { display: none; }

/* Hero */
.hero { overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 8vw, 100px); }
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.hero h1 em { color: var(--coral); font-weight: 500; }
.lead { max-width: 34em; margin: 24px 0 32px; color: var(--muted); font-size: 1.12rem; }
.stats { display: flex; gap: clamp(28px, 5vw, 52px); margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--muted); font-size: 0.85rem; }
.stats dd { margin: 0; font-family: var(--display); font-size: 2.3rem; font-weight: 600; line-height: 1.15; }
.hero__visual { position: relative; justify-self: center; width: min(430px, 100%); }
.hero__visual::before { content: ""; position: absolute; inset: 26px -22px -22px 26px; border: 1.5px solid var(--coral); border-radius: 999px 999px 28px 28px; }
.portrait { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 28px 28px; background: var(--tint); box-shadow: var(--shadow); }
.badge { position: absolute; bottom: 24px; left: -14px; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 0.88rem; font-weight: 700; }
.badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #1fa971; box-shadow: 0 0 0 4px rgb(31 169 113 / 0.18); }

/* Brand strip */
.brands { padding: 22px 0; border-block: 1px solid var(--line); background: var(--card); }
.brands ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px; color: var(--muted); font-family: var(--display); font-size: 1.12rem; font-weight: 500; }

/* Sections */
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .eyebrow { color: var(--coral-soft); }

.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 6vw, 80px); }
.about__text > p + p { margin-top: 18px; color: var(--muted); }
.about__big { font-family: var(--display); font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-weight: 500; line-height: 1.35; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.roles li { padding: 7px 15px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-size: 0.86rem; font-weight: 700; }
.location { margin-top: 24px; font-weight: 700; }
.location span { margin-right: 8px; color: var(--muted); font-weight: 500; }
.about__subhead, .education { margin-top: clamp(16px, 3vw, 36px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.about__subhead h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.education { margin-bottom: 0; padding-inline: 0; list-style: none; }
.education li { position: relative; padding: 0 0 30px 30px; }
.education li:last-child { padding-bottom: 0; }
.education li::before { content: ""; position: absolute; top: 6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--coral); }
.education li:not(:last-child)::after { content: ""; position: absolute; top: 23px; bottom: 5px; left: 5px; width: 1px; background: var(--line); }
.education h4 { margin: 4px 0; font-family: var(--display); font-size: 1.18rem; font-weight: 600; line-height: 1.3; }
.education p { color: var(--muted); font-size: 0.95rem; }
.education .education__years { color: var(--coral); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.service { padding: 30px; border-radius: var(--radius); background: var(--card); transition: transform 0.25s, box-shadow 0.25s; }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service p { margin-top: 10px; color: var(--muted); font-size: 0.96rem; }
.service__icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 16px; background: linear-gradient(135deg, var(--a), var(--b)); }
.service__icon svg, .fab svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service--blue { --a: #3b5fe6; --b: #6a8bf7; }
.service--violet { --a: #7a4fe8; --b: #a98cf8; }
.service--rose { --a: #ea5a86; --b: #fa9d9f; }
.service--green { --a: #12ad7c; --b: #52d9a9; }
.service--amber { --a: #ee9a05; --b: #f8c52f; }
.service--teal { --a: #1597ad; --b: #4cc9d8; }

/* Work */
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin: 34px 0 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .brand-filter select { min-height: 44px; padding: 8px 20px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-size: 0.92rem; font-weight: 600; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.brand-filter select { cursor: pointer; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--card); text-align: left; transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__media { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--tint); }
.card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.45s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__text { display: block; padding: 14px 16px 17px; }
.card__title { display: block; font-size: 0.95rem; font-weight: 700; line-height: 1.35; }
.card__brand { display: block; margin-top: 3px; color: var(--muted); font-size: 0.82rem; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.video__frame { position: relative; overflow: hidden; aspect-ratio: 9 / 16; border-radius: var(--radius); background: #0a1124; }
.video__frame img, .video__frame video { width: 100%; height: 100%; object-fit: cover; }
.video__frame video { object-fit: contain; }
.video__play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; }
.video__play::before { content: ""; position: absolute; top: 50%; left: 50%; width: 66px; height: 66px; margin: -33px; border-radius: 50%; background: rgb(255 255 255 / 0.94); box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); transition: transform 0.2s; }
.video__play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -11px 0 0 -6px; border-block: 11px solid transparent; border-left: 18px solid var(--coral); }
.video__play:hover::before { transform: scale(1.1); }
.video__time { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgb(0 0 0 / 0.65); color: #fff; font-size: 0.78rem; font-weight: 600; pointer-events: none; }
.video h3 { margin-top: 14px; font-size: 1.1rem; }
.video p { color: rgb(255 255 255 / 0.68); font-size: 0.84rem; }

/* Contact & footer */
.contact { padding: clamp(40px, 7vw, 84px) clamp(22px, 5vw, 64px); border-radius: 32px; background: var(--coral); color: #fff; text-align: center; }
.contact .eyebrow { color: #ffe1da; }
.contact h2 { max-width: 16em; margin-inline: auto; }
.contact > p:not(.eyebrow) { margin: 18px 0 30px; font-size: 1.08rem; }
.contact .actions { justify-content: center; }
.contact :focus-visible { outline-color: #fff; }
.footer { padding: 28px 0 100px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

.fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 15; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #128c4a; box-shadow: 0 12px 28px rgb(0 0 0 / 0.28); transition: opacity 0.25s, visibility 0.25s; }
.fab svg { width: 31px; height: 31px; }
.fab.is-hidden { opacity: 0; visibility: hidden; }

/* Lightbox */
.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 64px 76px 24px; border: 0; background: rgb(8 13 28 / 0.96); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; touch-action: pan-y pinch-zoom; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 180px); max-height: calc(100dvh - 180px); width: auto; height: auto; border-radius: 10px; user-select: none; }
.lightbox figcaption { text-align: center; }
.lightbox figcaption strong { display: block; font-family: var(--display); font-size: 1.15rem; }
.lightbox figcaption span { color: rgb(255 255 255 / 0.68); font-size: 0.86rem; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0 0 4px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.14); color: #fff; font-size: 1.9rem; line-height: 1; }
.lightbox__btn:hover { background: rgb(255 255 255 / 0.28); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { top: 50%; left: 14px; translate: 0 -50%; }
.lightbox__next { top: 50%; right: 14px; translate: 0 -50%; }
body.is-locked { overflow: hidden; }

/* Scroll reveal (classes are added by JavaScript) */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.6s, transform 0.6s; }

@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .videos { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; }
}

@media (max-width: 820px) {
  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s; }
  .menu-btn__bars { position: relative; }
  .menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; }
  .menu-btn__bars::before { transform: translateY(-7px); }
  .menu-btn__bars::after { transform: translateY(7px); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: rotate(-45deg); }
  .header { background: var(--paper); backdrop-filter: none; }
  .nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 22px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .hero__inner, .about { grid-template-columns: 1fr; }
  .hero__visual { order: -1; width: min(330px, 82%); }
  .education { margin-top: 0; padding-top: 4px; border-top: 0; }
  .badge { left: -8px; }
}

@media (max-width: 640px) {
  .brands ul { gap: 2px 18px; font-size: 0.92rem; }
  .services { grid-template-columns: 1fr; }
  .service { padding: 24px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { border-radius: 12px; }
  .card__text { padding: 10px 11px 13px; }
  .card__title { font-size: 0.84rem; }
  .card__brand { font-size: 0.74rem; }
  .videos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .video h3 { font-size: 0.98rem; }
  .brand-filter, .brand-filter select { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .lightbox { padding: 70px 10px 84px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; translate: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .lightbox img { max-height: calc(100dvh - 240px); }
}

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