/* Nguyễn Tấn Phát — studio portfolio visual system */
:root {
  --paper: #f5f4ef;
  --paper-deep: #eae9e2;
  --surface: #fffef9;
  --ink: #151715;
  --ink-soft: #535a54;
  --line: #d9dbd2;
  --accent: #b3d53e;
  --accent-ink: #121510;
  --accent-soft: #e7f2c1;
  --dark: #10130f;
  --dark-soft: #1b2119;
  --light: #f5f4ef;
  --font-display: "Open Sans", Arial, sans-serif;
  --font: "Open Sans", Arial, sans-serif;
  --wrap: 1400px;
  --gutter: clamp(1.1rem, 4.5vw, 4.4rem);
  --section: clamp(5.5rem, 10vw, 10rem);
  --header-h: 76px;
  --radius: 2px;
  --step-hero: clamp(4.2rem, 8.7vw, 10rem);
}

html { scroll-padding-top: calc(var(--header-h) + 12px); }
body { background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.56; }
button, input, select, textarea { font-family: var(--font); }
body.lightbox-open { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.045em; }
a { color: #335000; }
.wrap { max-width: var(--wrap); }
:focus-visible { outline-color: #8aab25; outline-offset: 4px; }

.scroll-progress {
  position: fixed; inset: 0 auto auto 0; z-index: 200;
  width: 100%; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}

.site-header {
  background: rgb(16 19 15 / 0.96);
  border-color: rgb(255 255 255 / 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 12px 40px rgb(0 0 0 / 0.18); }
.header-inner { min-height: var(--header-h); }
.brand { color: var(--light); gap: .8rem; letter-spacing: -.02em; }
.brand-name { font-size: .98rem; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--dark); background: var(--accent);
  font-weight: 900; letter-spacing: -.06em;
}
.site-nav a { color: #d5d9cf; font-size: .82rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.site-nav a:hover { color: var(--accent); background: rgb(255 255 255 / .08); }
.site-nav a[aria-current="true"] { color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.site-nav .nav-cta { color: var(--dark); background: var(--accent); padding-inline: 1.35rem; border-radius: 999px; }
.site-nav .nav-cta:hover { color: var(--dark); background: #d5f063; }
.site-nav .nav-cta[aria-current="true"] { color: var(--dark); }
.nav-toggle { border-color: rgb(255 255 255 / .25); background: transparent; border-radius: 50%; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { background: var(--light); }

.btn {
  min-height: 52px; padding: .8rem 1.5rem;
  border-radius: 999px; border-width: 1px;
  font-size: .84rem; font-weight: 750;
  letter-spacing: .035em;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgb(0 0 0 / .11); }
.btn-primary { color: var(--dark); background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { color: var(--dark); background: #d5f063; border-color: #d5f063; }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--light); }
.btn span[aria-hidden="true"] { margin-left: .5rem; font-size: 1.1rem; line-height: 1; }

.hero {
  position: relative; overflow: clip;
  color: var(--light); background: var(--dark);
  padding-block: clamp(4rem, 7vw, 7.5rem) clamp(3rem, 5vw, 5rem);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: min(70vw, 1050px); aspect-ratio: 1;
  top: -38%; right: -20%; pointer-events: none;
  background: radial-gradient(circle, rgb(166 215 64 / .12), transparent 62%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: .14;
  pointer-events: none;
  background-image: linear-gradient(90deg, transparent calc(100% - 1px), #bbc8ad 0);
  background-size: 25% 100%;
}
.hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .72fr); align-items: center; gap: clamp(2.5rem, 5vw, 6rem); }
.hero-copy { position: relative; z-index: 1; }
.hero-eyebrow, .section-kicker {
  margin: 0 0 clamp(1.3rem, 3vw, 3rem);
  font-size: .73rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
}
.hero-eyebrow { color: var(--accent); display: flex; align-items: center; gap: .7rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgb(179 213 62 / .16); }
.hero-name { max-width: none; font-size: var(--step-hero); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
.hero-name > span { display: block; white-space: nowrap; }
.name-dot { color: var(--accent); }
.hero-tagline { max-width: 16ch; margin: clamp(1.4rem, 3vw, 2.5rem) 0 0; font-size: clamp(1.3rem, 2.4vw, 2.7rem); line-height: 1.12; font-weight: 650; letter-spacing: -.05em; }
.hero-roles { max-width: 700px; margin: clamp(1.4rem, 2.6vw, 2.5rem) 0 1.4rem; gap: .45rem; }
.hero-roles li, .hero-roles li:last-child { border: 1px solid rgb(255 255 255 / .23); border-radius: 999px; padding: .43rem .85rem; margin: 0; font-size: .72rem; font-weight: 600; line-height: 1.2; color: #dfe4d9; }
.hero-intro { max-width: 58ch; color: #bfc6b9; font-size: clamp(.98rem, 1.1vw, 1.12rem); line-height: 1.7; }
.hero-actions { gap: .75rem; margin-top: 2.3rem; }
.hero-actions .btn-ghost { color: var(--light); }
.hero-actions .btn-ghost:hover { color: var(--dark); background: var(--light); }
.hero-portrait { position: relative; justify-self: center; width: min(100%, 440px); margin: 0; transform: rotate(2deg); }
.portrait-frame { overflow: hidden; border: 8px solid #fff; border-bottom-width: 0; border-radius: 12px 12px 0 0; background: #fff; box-shadow: 24px 26px 0 rgb(179 213 62 / .14), 0 36px 70px rgb(0 0 0 / .25); }
.hero-portrait img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: #fff; }
.portrait-caption { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1.05rem; border-radius: 0 0 12px 12px; background: #fff; color: var(--dark); font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.hero-orbit { position: absolute; z-index: 2; top: -2rem; right: -2rem; display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; color: var(--dark); background: var(--accent); font-size: 3rem; transform: rotate(-2deg); box-shadow: 0 18px 35px rgb(0 0 0 / .25); animation: orbit 16s linear infinite; }
@keyframes orbit { to { transform: rotate(358deg); } }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(3rem, 6vw, 6rem); padding-top: 1.4rem; border-top: 1px solid rgb(255 255 255 / .18); }
.hero-note { margin: 0; color: #aeb6a6; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.scroll-cue { color: var(--accent); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; }
.scroll-cue span { margin-left: .6rem; font-size: 1.1rem; }
.facts { margin-top: clamp(3rem, 6vw, 6rem); border-top: 1px solid rgb(255 255 255 / .22); }
.facts > div + div { border-color: rgb(255 255 255 / .16); }
.facts dt { color: var(--accent); font-size: clamp(1.5rem, 2.3vw, 2.5rem); letter-spacing: -.07em; }
.facts dd { color: #adb5a9; }

.section { border-color: var(--line); }
.section-kicker { margin-bottom: 1.4rem; color: #5b751d; }
.section-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 2rem; }
.section-head h2 { font-size: clamp(2.6rem, 5.2vw, 5.5rem); line-height: 1.02; letter-spacing: -.07em; }
.lead { font-size: clamp(1.02rem, 1.35vw, 1.32rem); line-height: 1.57; }
.skills { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top-color: var(--ink); gap: 0 1.4rem; }
.skills li { padding: 2rem 1rem 2rem 0; border-color: var(--line); transition: color .25s ease, transform .25s ease; }
.skills li:hover { color: #577518; transform: translateY(-3px); }
.skills h3 { font-size: clamp(1.1rem, 1.35vw, 1.45rem); }
.skills p { max-width: 39ch; }

.section-projects { padding-bottom: 0; }
.project-index { margin: 0 0 1.5rem; }
.project-index ol { gap: .55rem; }
.project-index a { border-color: var(--line); background: transparent; padding: .65rem 1rem; font-size: .8rem; font-weight: 650; transition: background-color .2s, color .2s, border-color .2s; }
.project-index a:hover { background: var(--ink); border-color: var(--ink); color: var(--light); }
.case { padding-block: clamp(4.5rem, 8vw, 8.5rem); scroll-margin-top: var(--header-h); }
.case:nth-of-type(even) { background: #ededE7; }
.case + .case { border-color: var(--line); }
.case-head { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); column-gap: clamp(.8rem, 2vw, 2rem); row-gap: 1.2rem; align-items: start; margin-bottom: clamp(2rem, 5vw, 4rem); }
.case-num { grid-row: 1 / span 2; padding-top: .3rem; border-top: 2px solid var(--ink); font-size: .9rem; font-weight: 800; letter-spacing: -.04em; }
.case-client { grid-column: 2; justify-self: start; margin: 0; border-radius: 999px; padding: .34rem .75rem; background: var(--ink); color: var(--light); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.case-head h3 { grid-column: 2; font-size: clamp(2.5rem, 5.2vw, 5.8rem); line-height: 1.02; letter-spacing: -.07em; max-width: 17ch; }
.slate { grid-column: 2; margin: .4rem 0 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.slate > div { padding: .85rem 1.5rem .85rem 0; border: 0; }
.slate dt { text-transform: uppercase; letter-spacing: .1em; font-size: .65rem; }
.slate dd { font-size: .89rem; }
.case-body { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 6rem); }
.case-text > p { font-size: clamp(1rem, 1.2vw, 1.18rem); color: #404840; }
.subproject { margin-top: 1.6rem; padding-left: 1.1rem; border-color: var(--accent); }
.subproject h4 { font-size: 1.2rem; letter-spacing: -.035em; }
.scope { border-top-color: var(--ink); }
.scope li { border-color: var(--line); font-size: .92rem; }
.scope li::before { background: #668b22; }
.project-links { margin-top: 1.5rem; gap: .6rem; }
.project-links .btn { color: var(--ink); border-color: #a4a99a; background: transparent; font-size: .74rem; min-height: 42px; }
.project-links .btn:hover { color: var(--light); background: var(--ink); border-color: var(--ink); }

.videos { gap: 1rem; }
.video { border-radius: 12px; box-shadow: 0 14px 36px rgb(0 0 0 / .15); }
.video-play img { object-fit: contain; opacity: .9; }
.video-play:hover img { opacity: .62; }
.play-icon { background: var(--accent); box-shadow: 0 0 0 7px rgb(255 255 255 / .13); }
.play-icon::after { border-left-color: var(--dark); }
.video-label { bottom: 1rem; left: 1rem; right: 1rem; }

/* Each project remains grouped, while columns fill open space without cropping. */
.gallery { display: block; margin-top: clamp(3rem, 6vw, 6rem); }
.gallery:empty { display: none; }
.gallery-group { margin: 0 0 clamp(2.7rem, 5vw, 5rem); }
.gallery-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; padding-top: .9rem; border-top: 1px solid #aeb4a6; }
.gallery-group-head h4 { font-size: clamp(1.1rem, 2vw, 1.8rem); font-weight: 750; letter-spacing: -.045em; }
.gallery-group-head span { color: #677163; font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .11em; white-space: nowrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.3rem); width: 100%; margin: 0; padding: 0; }
.gallery-column { min-width: 0; display: flex; flex-direction: column; gap: clamp(.75rem, 1.5vw, 1.3rem); align-items: stretch; }
.gallery-grid .gallery-item { display: block; min-width: 0; width: 100%; margin: 0; }
.gallery-group.is-wide-group .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-group.is-single-group .gallery-grid { grid-template-columns: minmax(0, 1fr); }
.shot { position: relative; display: block; width: 100%; height: auto; border: 1px solid #d8dbd2; border-radius: 12px; background: #e6e8df; box-shadow: 0 8px 22px rgb(0 0 0 / .045); overflow: hidden; cursor: zoom-in; transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease; }
.shot img, .gallery-grid .shot img, .gallery-grid .gallery-item.is-long .shot img { display: block; width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: auto; object-fit: contain; border-radius: 0; transform: none; transition: none; }
.shot:hover { transform: translateY(-4px); border-color: #a9bd74; box-shadow: 0 20px 34px rgb(0 0 0 / .12); }
.shot:hover img { transform: none; }
.shot-open { position: absolute; right: .65rem; bottom: .65rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; color: var(--dark); background: var(--accent); font-size: 1.2rem; opacity: 0; transform: translateY(5px); transition: opacity .22s, transform .22s; }
.shot:hover .shot-open, .shot:focus-visible .shot-open { opacity: 1; transform: translateY(0); }
.gallery-more { margin: 1rem auto 0; border-color: #929e83; font-size: .73rem; }
.gallery-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .6rem; padding: .95rem 1.1rem; border: 1px solid #a5b595; border-radius: 12px; background: #e9efd9; color: var(--ink); font-size: .85rem; font-weight: 750; text-decoration: none; transition: background-color .2s, transform .2s; }
.gallery-cta:hover, .gallery-cta:focus-visible { background: var(--accent); transform: translateY(-2px); }
.gallery-cta--youtube { margin-top: 1rem; padding: 1.2rem 1.4rem; border-color: var(--accent); background: var(--accent); color: var(--dark); font-size: clamp(.95rem, 1.6vw, 1.2rem); font-weight: 850; }
.gallery-cta--youtube:hover, .gallery-cta--youtube:focus-visible { border-color: var(--dark); background: var(--dark); color: var(--light); }
.gallery-group-description { max-width: 74ch; margin: -.2rem 0 1.4rem; color: #4f5c4d; font-size: .94rem; line-height: 1.6; }
.gallery[data-gallery="di-xem-nha"] .is-single-group .gallery-grid { max-width: 900px; }
.gallery-group.is-compact-pair .gallery-grid { max-width: 890px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-group.is-carousel .gallery-grid { display: flex; align-items: flex-start; gap: 1rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: .2rem; overscroll-behavior-inline: contain; padding: .3rem .2rem 1.2rem; scrollbar-width: thin; scrollbar-color: #91a27b #e0e4d7; }
.gallery-group.is-carousel .gallery-item { flex: 0 0 min(56%, 620px); scroll-snap-align: start; }
.gallery-group.is-carousel .shot { height: clamp(190px, 25vw, 350px); background: #f1f2eb; }
.gallery-group.is-carousel .shot img { height: 100%; object-fit: contain; }
.gallery-carousel-controls { display: flex; align-items: center; gap: .55rem; margin-top: .7rem; }
.gallery-carousel-controls p { margin: 0 auto 0 0; color: #667260; font-size: .76rem; }
.carousel-arrow { width: 2.65rem; height: 2.65rem; border: 1px solid #809173; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.3rem; cursor: pointer; transition: background-color .2s, color .2s; }
.carousel-arrow:hover:not(:disabled) { background: var(--dark); color: var(--light); }
.carousel-arrow:disabled { opacity: .35; cursor: default; }
.gallery-group.is-editorial { padding: clamp(1.2rem, 3vw, 2.5rem); border-radius: 22px; background: #1c251b; color: var(--light); }
.gallery-group.is-editorial .gallery-group-head { border-color: #5b6b54; }
.gallery-group.is-editorial .gallery-group-head h4 { color: var(--light); }
.gallery-group.is-editorial .gallery-group-head span { color: var(--accent); }
.gallery-editorial-intro { max-width: 58ch; margin: -.2rem 0 1.3rem; color: #c5d0bf; font-size: .9rem; line-height: 1.55; }
.gallery-group.is-editorial .gallery-item { position: relative; }
.gallery-group.is-editorial .gallery-item::after { content: attr(data-number); position: absolute; z-index: 1; left: .8rem; top: .8rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: var(--dark); font-size: .68rem; font-weight: 800; pointer-events: none; }
.gallery-group.is-editorial .shot { border-color: #60705b; background: #31402c; }
.gallery-group.is-editorial .gallery-more { display: block; margin-top: 1.65rem; color: var(--light); border-color: #8ea483; }
.gallery-group.is-editorial .gallery-more:hover { color: var(--dark); background: var(--accent); border-color: var(--accent); }
.image-unavailable { min-height: 90px; }
.image-unavailable::after { content: "Ảnh chưa tải được"; position: absolute; inset: 0; display: grid; place-items: center; background: #e3e5db; font-size: .75rem; }

.section-process { background: var(--dark); color: var(--light); }
.section-process .section-kicker { color: var(--accent); }
.section-process .lead { color: #bbc5b6; }
.process { border-color: #4a5744; }
.process li, .process li + li { border-color: #455141; }
.process li::before { color: var(--accent); }
.process h3 { font-size: 1.15rem; }
.process p { color: #b5bfb0; }

.resume h3 { font-size: 1.35rem; border-color: var(--ink); }
.timeline li { border-color: var(--line); }
.tl-role { font-size: 1.04rem; }
.section-contact { background: var(--dark); color: var(--light); border: 0; }
.section-contact .section-kicker { color: var(--accent); }
.contact-grid h2 { font-size: clamp(3.2rem, 6vw, 6.5rem); line-height: 1; letter-spacing: -.075em; }
.contact-grid h2 span { color: var(--accent); font-size: .6em; vertical-align: top; }
.section-contact .lead { color: #b8c4b3; }
.contact-link { color: var(--light); background: #1d241b; border: 1px solid #40503b; border-radius: 3px; padding: 1.25rem 1.35rem; transition: border-color .25s, transform .25s, background-color .25s; }
.contact-link:hover { color: var(--light); background: #263020; border-color: var(--accent); transform: translateX(5px); }
.contact-kind { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.site-footer { background: var(--dark); border-color: #3e493b; color: #a8b3a4; }
.site-footer a { color: var(--accent); }
.back-to-top { position: fixed; z-index: 40; right: 1.25rem; bottom: 1.25rem; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--dark); font-size: 1.4rem; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.lightbox-btn:hover { background: var(--accent); color: var(--dark); border-color: var(--accent); }
.lightbox-img { object-fit: contain; border-radius: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
  .motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .hero-name { font-size: clamp(3.9rem, 7.5vw, 6.8rem); }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .site-nav { background: var(--dark); border-color: #3e493b; }
  .site-nav a { color: var(--light); }
  .site-nav a[aria-current="true"] { color: var(--accent); }
  .site-nav .nav-cta { color: var(--dark); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .58fr); gap: 2rem; }
  .hero-portrait { order: 0; max-width: 100%; }
  .hero-name { font-size: clamp(3.3rem, 7.5vw, 5rem); }
  .hero-orbit { width: 54px; height: 54px; top: -1rem; right: -1rem; font-size: 2rem; }
  .section-head, .case-body, .resume, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .case-body > .videos { grid-column: auto; grid-row: auto; }
  .case-head h3 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { --gutter: 1.15rem; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; }
  .hero-name { font-size: clamp(3.55rem, 13vw, 6rem); }
  .hero-portrait { order: 0; width: min(67%, 360px); margin: 1.4rem auto 0; }
  .hero-orbit { right: -1rem; }
  .hero-bottom { margin-top: 3.5rem; }
  .section-head h2 { font-size: clamp(2.65rem, 11vw, 4.2rem); }
  .skills { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid, .gallery-group.is-wide-group .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-group.is-single-group .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid .gallery-item { display: block; }
  .gallery-group.is-compact-pair .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-group.is-carousel .gallery-item { flex-basis: 85%; }
  .gallery-group.is-editorial { padding: 1.1rem; border-radius: 16px; }
  .case-head { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .case-head h3 { font-size: clamp(2.35rem, 10vw, 3.7rem); }
  .slate { grid-column: 1 / -1; }
  .hero-note { display: none; }
  .hero-roles li, .hero-roles li:last-child { border: 1px solid rgb(255 255 255 / .23); padding: .42rem .78rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .portrait-caption { font-size: .56rem; }
  .site-footer .wrap { flex-direction: column; }
}
@media (max-width: 390px) {
  .hero-name { font-size: 12.4vw; }
  .hero-portrait { width: 76%; }
  .facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .facts > div, .facts > div + div { padding-left: 0; border-left: 0; }
  .portrait-caption { letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .scroll-progress, .back-to-top, .hero-orbit, .video, .gallery-more { display: none !important; }
  .hero, .section-process, .section-contact { background: #fff; color: #000; }
  .hero-intro, .hero-tagline, .hero-roles li, .facts dd, .section-process .lead, .section-contact .lead { color: #222; }
  .hero::before, .hero::after { display: none; }
  .case, .gallery-group { break-inside: avoid; }
}
