/* MEGALINK ENGINEERING LIMITED — official site
   Neo-brutalist structure, frosted glass, restrained motion.
   Colour taken from the official lockup. */

:root {
  --red: #C05040;
  --red-deep: #9E3E32;
  --red-soft: #D56A5A;
  --ink: #161616;
  --ink-2: #2A2A2A;
  --muted: #5E5B56;
  --paper: #F3F0EA;
  --paper-2: #E7E3DA;
  --paper-3: #DDD8CD;
  --white: #FBF9F6;
  --slate: #101418;
  --slate-2: #1A2128;
  --line: 3px;
  --line-heavy: 4px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 0;
  --header-h: 4.5rem;
  --gutter: clamp(1.1rem, 3vw, 2.25rem);
  --max: 72rem;
  --max-wide: 86rem;
  --font-display: "Roboto", "Noto Sans HK", "Source Han Sans HC", "Source Han Sans", "Noto Sans CJK HK", "PingFang HK", "Noto Sans TC", sans-serif;
  --font-body: "Roboto", "Noto Sans HK", "Source Han Sans HC", "Source Han Sans", "Noto Sans CJK HK", "PingFang HK", "Noto Sans TC", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans HK";
  src: url("../fonts/noto-sans-hk-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[lang="en"] { }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
video { background: var(--slate); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: 0;
  margin: 0 0 0.65em;
  text-wrap: pretty;
  line-break: strict;
  word-break: keep-all;
}
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] .display {
  letter-spacing: -0.03em;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }

.i18n-en { display: none; }
html[lang="en"] .i18n-zh { display: none; }
html[lang="en"] .i18n-en { display: inline; }
html[lang="en"] p .i18n-en,
html[lang="en"] h1 .i18n-en,
html[lang="en"] h2 .i18n-en,
html[lang="en"] h3 .i18n-en,
html[lang="en"] li .i18n-en,
html[lang="en"] figcaption .i18n-en,
html[lang="en"] label .i18n-en,
html[lang="en"] option.i18n-en,
html[lang="en"] .block-en { display: block; }
.block-en { display: none; }
html[lang="en"] .block-zh { display: none; }
.block-zh { display: block; }

/* When a parent uses display:flex on bilingual pairs, block is safer */
[data-pair] .i18n-en { display: none; }
html[lang="en"] [data-pair] .i18n-zh { display: none; }
html[lang="en"] [data-pair] .i18n-en { display: contents; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  border: var(--line) solid var(--ink);
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.6rem; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.hero :focus-visible,
.site-footer :focus-visible,
.band-ink :focus-visible {
  outline-color: var(--white);
}

/* Layout */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.wrap-wide {
  width: min(100% - 2 * var(--gutter), var(--max-wide));
  margin-inline: auto;
}
.section {
  padding: clamp(3.25rem, 7vw, 6.5rem) 0;
}
.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 42rem;
}
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); margin: 0; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.35rem;
}
html[lang="zh-Hant-HK"] .kicker,
html:not([lang="en"]) .kicker {
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border: var(--line) solid var(--ink);
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  font-weight: 650;
  line-height: 1.2;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: var(--red-deep);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-on-dark {
  background: var(--red);
  color: var(--white);
  border-color: var(--white);
  box-shadow: 4px 4px 0 #000;
}
.btn-on-dark:hover { background: var(--red-deep); }
.btn-ghost-on-dark {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  box-shadow: 4px 4px 0 #000;
}
.btn-ghost-on-dark:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 0.85rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: var(--line) solid transparent;
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  width: min(100% - 2 * var(--gutter), var(--max-wide));
  margin-inline: auto;
  padding: 0.4rem 0;
}
.site-header__glass {
  position: absolute;
  inset: 0;
  background: rgba(243, 240, 234, 0.62);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: var(--line) solid rgba(22, 22, 22, 0.18);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
  z-index: -1;
}
.site-header.is-scrolled .site-header__glass,
.page-inner .site-header .site-header__glass {
  background: rgba(243, 240, 234, 0.92);
  border-bottom-color: var(--ink);
}
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo img {
  height: 3.05rem;
  width: auto;
}
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.nav-desktop a {
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  font-weight: 550;
  font-size: 0.95rem;
  border: var(--line) solid transparent;
}
.nav-desktop a:hover { background: var(--paper-2); }
.nav-desktop a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  border: var(--line) solid var(--ink);
  background: var(--white);
}
.lang-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  min-width: 2.4rem;
  min-height: 2.2rem;
  padding: 0 0.55rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}
.header-cta { display: none; }

.nav-toggle {
  appearance: none;
  width: 2.85rem;
  height: 2.85rem;
  border: var(--line) solid var(--ink);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.15rem;
  height: 3px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.nav-drawer {
  display: none;
  border-top: var(--line) solid var(--ink);
  background: rgba(243, 240, 234, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem var(--gutter) 1.25rem;
}
.site-header.is-open .nav-drawer { display: block; }
.nav-drawer a {
  display: block;
  text-decoration: none;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--paper-3);
  font-weight: 600;
  font-size: 1.15rem;
}
.nav-drawer .btn { width: 100%; margin-top: 1rem; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .nav-drawer { display: none !important; }
  .header-actions { margin-left: 0.85rem; }
  .logo img { height: 3.25rem; }
}

/* Hero: unobstructed 16:9 film, copy sits below */
.hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  isolation: isolate;
}
.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - var(--header-h));
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  background: #000;
}
.hero-media video.is-front { opacity: 1; z-index: 1; }
.hero-media video.is-fading { opacity: 0; z-index: 2; }
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  z-index: 0;
  background: #000;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--gutter), var(--max-wide));
  margin: 0 auto;
  padding: 1.75rem 0 2.25rem;
}
.hero-panel {
  overflow-wrap: break-word;
  max-width: 42rem;
}
.hero-panel .kicker { color: var(--red); text-wrap: balance; }
.hero h1 {
  font-size: clamp(1.7rem, 4.1vw, 3.05rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-weight: 750;
}
html[lang="en"] .hero h1 {
  font-size: clamp(1.85rem, 4.3vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero-lead {
  margin: 0 0 0.85rem;
  color: var(--ink-2);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 1.65;
  max-width: 36rem;
}
.hero-ask {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-play {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  min-width: 3.5rem;
  min-height: 3.5rem;
  padding: 0.8rem 1.2rem;
  background: var(--red);
  color: var(--white);
  border: var(--line) solid var(--white);
  box-shadow: 6px 6px 0 #000;
  font-weight: 700;
}
.hero.is-static .hero-play { display: inline-flex; }

/* Marquee */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-top: var(--line-heavy) solid var(--ink);
  border-bottom: var(--line-heavy) solid var(--ink);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: ticker 48s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 0;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border-right: 1px solid rgba(243, 240, 234, 0.16);
}
.marquee__dot {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--red);
  flex: 0 0 auto;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: var(--line) solid var(--ink);
  background: var(--ink);
  gap: var(--line);
  box-shadow: var(--shadow);
}
.service-card {
  background: var(--paper);
  padding: 1.35rem 1.3rem 1.4rem;
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 0.55rem;
  min-height: 100%;
  transition: background 0.2s var(--ease);
  position: relative;
}
.service-card:hover { background: var(--white); }
.service-card .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--red);
}
.service-card h3 {
  font-size: 1.3rem;
  margin: 0;
}
.service-card p { color: var(--muted); margin: 0; }
.service-card .more {
  font-weight: 650;
  margin-top: 0.4rem;
  color: var(--ink);
}
.service-card .more::after { content: " →"; }

@media (min-width: 720px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}

/* Figures */
.figures-section {
  background: var(--white);
  border-top: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
}
.figures-layout {
  display: grid;
  gap: 2.5rem;
}
.figures-copy { max-width: 36rem; }
.figures-copy h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); margin-bottom: 0.7rem; }
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: var(--line) solid var(--ink);
  background: var(--ink);
  gap: var(--line);
}
.stat {
  background: var(--paper);
  padding: 1.15rem 1.15rem 1.2rem;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.stat-value .unit { font-size: 0.45em; letter-spacing: 0; margin-left: 0.1em; }
.stat-label { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
@media (min-width: 720px) {
  .stat-grid { grid-template-columns: repeat(6, 1fr); }
  .stat:nth-child(1) { grid-column: span 2; }
  .stat:nth-child(2) { grid-column: span 2; }
  .stat:nth-child(3) { grid-column: span 2; }
  .stat:nth-child(4) { grid-column: span 3; }
  .stat:nth-child(5) { grid-column: span 3; }
}
@media (min-width: 1024px) {
  .figures-layout { grid-template-columns: 0.9fr 1.2fr; align-items: end; gap: 3rem; }
}

/* Carousel */
.carousel {
  position: relative;
}
.carousel__viewport {
  overflow: hidden;
  border: var(--line) solid var(--ink);
  background: var(--ink);
  box-shadow: var(--shadow);
}
.carousel__track {
  display: flex;
  list-style: none;
  transition: transform 0.55s var(--ease);
}
.carousel__slide {
  min-width: 100%;
  background: var(--slate);
  position: relative;
}
.carousel__slide img {
  width: 100%;
  height: min(62vw, 32rem);
  object-fit: contain;
  background: #1A2128;
}
.carousel__caption {
  background: var(--paper);
  border-top: var(--line) solid var(--ink);
  padding: 1rem 1.15rem;
}
.carousel__caption strong { display: block; font-size: 1.1rem; margin-bottom: 0.2rem; }
.carousel__caption p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.carousel__controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}
.carousel__btn {
  width: 2.85rem;
  height: 2.85rem;
  border: var(--line) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 1.2rem;
  line-height: 1;
}
.carousel__btn:hover { background: var(--paper-2); }
.carousel__btn:disabled { opacity: 0.35; box-shadow: none; cursor: not-allowed; }
.carousel__dots {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}
.carousel__dots button {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 2px solid var(--ink);
  background: transparent;
}
.carousel__dots button[aria-current="true"] { background: var(--red); border-color: var(--ink); }

/* Credentials band */
.band-ink {
  background: var(--slate);
  color: var(--paper);
  border-top: var(--line-heavy) solid var(--ink);
  border-bottom: var(--line-heavy) solid var(--ink);
}
.band-ink .kicker { color: var(--red-soft); }
.band-ink h2 { color: var(--white); font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.band-ink p { color: rgba(243, 240, 234, 0.82); max-width: 40rem; }
.cred-row {
  display: grid;
  gap: var(--line);
  margin-top: 2rem;
  background: rgba(255,255,255,0.12);
  border: var(--line) solid rgba(255,255,255,0.3);
}
@media (min-width: 800px) {
  .cred-row { grid-template-columns: repeat(3, 1fr); }
}
.cred-pill {
  background: rgba(16, 20, 24, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.1rem 1.15rem;
}
.cred-pill strong { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; color: var(--white); }
.cred-pill span { color: rgba(243, 240, 234, 0.75); font-size: 0.92rem; }

/* Contact teaser / forms */
.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
}
.contact-card, .form-card {
  border: var(--line) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
}
.contact-list { list-style: none; display: grid; gap: 1rem; }
.contact-list a { font-weight: 650; text-decoration: underline; text-underline-offset: 0.18em; }
.contact-list a:hover { color: var(--red); }
.dt { display: block; font-size: 0.8rem; font-weight: 650; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.15rem; }

.form-card h2, .form-card h3 { margin-top: 0; }
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-weight: 650; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: var(--line) solid var(--ink);
  background: var(--paper);
  padding: 0.7rem 0.75rem;
  border-radius: 0;
  box-shadow: 3px 3px 0 transparent;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--red);
  outline-offset: 0;
  background: var(--white);
}
.field textarea { min-height: 8rem; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.92rem; margin: 0 0 1rem; }
.form-status {
  margin-top: 0.85rem;
  font-weight: 600;
  min-height: 1.3em;
}

/* Footer */
.site-footer {
  background: var(--slate);
  color: var(--paper);
  border-top: var(--line-heavy) solid var(--ink);
  padding: 2.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
.site-footer .logo img { height: 4rem; width: auto; }
.site-footer a { color: var(--paper); text-decoration: underline; text-underline-offset: 0.18em; }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: rgba(243, 240, 234, 0.75); max-width: 26rem; }
.footer-nav, .footer-contact { list-style: none; display: grid; gap: 0.4rem; }
.footer-nav a { text-decoration: none; font-weight: 600; }
.footer-meta {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(243, 240, 234, 0.18);
  color: rgba(243, 240, 234, 0.6);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  justify-content: space-between;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 1fr; }
}

/* Inner pages */
.page-hero {
  padding: calc(var(--header-h) + 2.2rem) 0 2.4rem;
  border-bottom: var(--line) solid var(--ink);
  background:
    linear-gradient(180deg, rgba(243,240,234,0.2), var(--paper));
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 0.7rem;
  max-width: 20ch;
}
html[lang="en"] .page-hero h1 { max-width: 18ch; }
.page-hero .lead { max-width: 40rem; color: var(--muted); font-size: 1.1rem; }

.prose { max-width: 42rem; }
.prose h2 { font-size: 1.55rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin: 0.3rem 0; }

.split-list { list-style: none; display: grid; gap: var(--line); border: var(--line) solid var(--ink); background: var(--ink); }
.split-list li {
  background: var(--paper);
  padding: 1.15rem 1.2rem;
  display: grid;
  gap: 0.3rem;
}
.split-list strong { font-size: 1.15rem; }

/* Services page blocks */
.service-block {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0;
  border-top: var(--line) solid var(--ink);
}
.service-block:last-child { border-bottom: var(--line) solid var(--ink); }
.service-block h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 0.5rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.tag {
  border: 2px solid var(--ink);
  padding: 0.2rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--white);
}
@media (min-width: 880px) {
  .service-block {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.6rem 0;
  }
  .service-block:nth-child(even) .service-block__media { order: -1; }
}
.service-block__media {
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--paper-2);
}
.service-block__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--paper-2);
}

/* Projects editorial + parallax */
.project-group { padding: 0 0 3.5rem; }
.project-group h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 0.5rem; }
.photo-band {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.8rem;
}
@media (min-width: 800px) {
  .photo-band.cols-3 { grid-template-columns: 1.2fr 0.8fr 1fr; }
  .photo-band.cols-2 { grid-template-columns: 1.1fr 0.9fr; }
  .photo-band:has(> :only-child) { grid-template-columns: minmax(16rem, 28rem); }
}
.photo-frame {
  border: var(--line) solid var(--ink);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 25%;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.08);
  will-change: transform;
}
.photo-frame figcaption {
  border-top: var(--line) solid var(--ink);
  background: var(--paper);
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
}

/* Credentials facts */
.fact-stack { display: grid; gap: var(--line); border: var(--line) solid var(--ink); background: var(--ink); }
.fact-row {
  display: grid;
  gap: 0.4rem;
  background: var(--paper);
  padding: 1.2rem 1.25rem;
}
@media (min-width: 720px) {
  .fact-row {
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 1.5rem;
  }
}
.fact-row .fact-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--red);
  line-height: 1;
}
.fact-row h2, .fact-row h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }

.year-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--ink);
  margin: 0 0 1rem;
}
.year-mark span { color: var(--red); }

/* Utilities */
.link-arrow { font-weight: 650; text-decoration: none; border-bottom: 2px solid var(--red); }
.link-arrow:hover { color: var(--red); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 389.98px) {
  .hero-panel { overflow-wrap: break-word; }
  .hero h1 { font-size: 1.5rem; }
  .hero-inner { padding: 1.35rem 0 1.75rem; }
  .btn { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; flex-wrap: wrap; width: 100%; }
  .photo-frame img { transform: none; will-change: auto; }
  .hero-media video { transition: none; }
}
