/* =========================================================
   Fan Yong Printing — fashionable manufacturer theme
   Structure: HF Rubber-style full-bleed industrial site
   Palette: ink / paper / process cyan / print magenta
   ========================================================= */

:root {
  --ink: #0a0c10;
  --ink-soft: #161a22;
  --paper: #f4f6f8;
  --paper-elevated: #ffffff;
  --line: rgba(10, 12, 16, 0.1);
  --muted: #5c6675;
  --cyan: #00b4e4;
  --cyan-deep: #0090b8;
  --magenta: #ff2d6f;
  --yellow: #ffe14a;
  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", "Noto Sans TC", system-ui, sans-serif;
  --font-body: "Figtree", "Noto Sans TC", system-ui, sans-serif;
  --shadow: 0 24px 60px rgba(10, 12, 16, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Header (HF Rubber-like over hero) ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-solid,
body:not(.home) .site-header {
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  min-width: 0;
}

.site-brand .custom-logo-link img,
.site-brand .custom-logo {
  max-height: 48px;
  width: auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), #0077a3 55%, var(--magenta));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand-mark--sm {
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-list a:hover {
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  padding: 0;
  cursor: pointer;
  place-items: center;
  gap: 6px;
  flex-direction: column;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: #fff;
  color: var(--ink);
}

.btn-accent {
  background: var(--cyan);
  color: var(--ink);
}

.btn-accent:hover {
  background: #4fd0f5;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  padding-inline: 0.1rem;
}

.btn-lg {
  padding: 1.05rem 1.6rem;
  font-size: 1.02rem;
}

.header-cta {
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
}

/* ---------- Language switcher ---------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.lang-link {
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-link:hover {
  color: #fff;
}

.lang-link.is-active {
  background: var(--cyan);
  color: var(--ink);
}

body.lang-zh {
  font-size: 1.02rem;
}

/* CJK: full-width titles, smaller type — no orphan 1-char lines */
body.lang-zh,
body.lang-vi {
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body.lang-zh .hero-title,
body.lang-vi .hero-title,
body.lang-zh .section-title,
body.lang-vi .section-title,
body.lang-zh .cta-title,
body.lang-vi .cta-title,
body.lang-zh .hero-lead,
body.lang-vi .hero-lead {
  max-width: none;
  width: 100%;
  letter-spacing: 0;
  text-wrap: pretty;
}

body.lang-zh .hero-title,
body.lang-vi .hero-title {
  font-size: clamp(1.75rem, 5.2vw, 3.25rem);
  line-height: 1.25;
}

body.lang-zh .section-title,
body.lang-vi .section-title {
  font-size: clamp(1.4rem, 3.2vw, 2.15rem);
  line-height: 1.3;
}

body.lang-zh .cta-title,
body.lang-vi .cta-title {
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  line-height: 1.3;
}

body.lang-zh .section-head,
body.lang-vi .section-head {
  max-width: none;
}

body.lang-zh .hero-lead,
body.lang-vi .hero-lead {
  max-width: 36em;
}

/* ---------- Hero (full-bleed like HF Rubber) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(10, 12, 16, 0.82) 18%, rgba(10, 12, 16, 0.45) 62%, rgba(0, 180, 228, 0.22)),
    var(--hero-image, linear-gradient(145deg, #0f141c, #1a2433 45%, #083647)) center / cover no-repeat;
  overflow: hidden;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(0, 180, 228, 0.18), transparent 60%),
    linear-gradient(to top, rgba(10, 12, 16, 0.75), transparent 45%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-left: max(calc((100% - 1180px) / 2), 1.25rem);
  margin-right: auto;
  width: min(820px, calc(100% - 2.5rem));
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow--light,
.eyebrow--on-dark {
  color: var(--cyan);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-bottom: 2.5rem;
}

.hero-badge {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-ink-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 6px;
  z-index: 2;
}

.ink-c { background: var(--cyan); }
.ink-m { background: var(--magenta); }
.ink-y { background: var(--yellow); }
.ink-k { background: #111; }

/* ---------- Stats ---------- */

.stats {
  background: var(--ink);
  color: #fff;
  padding: 2.25rem 0;
  border-bottom: 6px solid var(--cyan);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat:last-child {
  border-right: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cyan);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Sections ---------- */

.section {
  padding: 6rem 0;
}

.section--tint {
  background: #eef2f5;
}

.section--dark {
  background: var(--ink-soft);
  color: #fff;
}

.section-head {
  margin-bottom: 2.75rem;
  max-width: 36rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  max-width: none;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Products ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--paper-elevated);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #1a2330, #0d3a48);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-media.is-placeholder,
.media-placeholder,
.work-item.is-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.placeholder-label {
  opacity: 0.5;
}

.product-body {
  padding: 1.4rem 1.5rem 1.6rem;
  position: relative;
}

.product-index {
  position: absolute;
  top: 1.35rem;
  right: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan);
  font-size: 0.9rem;
}

.product-body h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Capability ---------- */

.capability-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.capability-media {
  min-height: 420px;
  background: var(--ink);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.capability-media img,
.media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.media-placeholder {
  padding: 2rem;
  text-align: center;
  font-size: 1rem;
  background: linear-gradient(145deg, #15202b, #0a3d4d);
}

.check-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
}

.check-list li {
  display: grid;
  gap: 0.25rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--cyan);
}

.check-list strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.check-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Lab ---------- */

.lab-side-image {
  width: min(280px, 40%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.lab-item {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  padding: 1.5rem 1.25rem;
  min-height: 140px;
}

.lab-num {
  display: block;
  color: var(--magenta);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.lab-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.why-card {
  padding: 1.75rem 1.4rem;
  background: var(--paper-elevated);
  border-top: 3px solid var(--cyan);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
}

.why-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.work-item {
  margin: 0;
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: linear-gradient(145deg, #1a2330, #102832);
  color: #fff;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.work-item:hover img {
  transform: scale(1.06);
}

.work-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.85), transparent);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Brands ---------- */

.brand-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  align-items: center;
}

.brand-logo,
.brand-name-only {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.brand-logo img {
  max-height: 42px;
  width: auto;
  filter: grayscale(1) brightness(1.4);
  opacity: 0.85;
}

.brand-name-only {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

/* ---------- Certs ---------- */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cert-card {
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.cert-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

.cert-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.cert-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- CTA ---------- */

.cta-band {
  background:
    linear-gradient(120deg, rgba(10, 12, 16, 0.94), rgba(0, 90, 120, 0.88)),
    radial-gradient(circle at 85% 20%, rgba(255, 45, 111, 0.25), transparent 40%);
  color: #fff;
  padding: 4.5rem 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #07080b;
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 0.8fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.footer-brand-name {
  margin: 0 0 0.35rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-brand-desc {
  margin: 0;
  font-size: 0.95rem;
}

.footer-contact {
  display: grid;
  gap: 0.4rem;
}

.footer-contact a:hover {
  color: var(--cyan);
}

.footer-heading {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-subdomain {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Inner pages ---------- */

.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 2.5rem;
  background: var(--ink);
  color: #fff;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
}

.content-wrap {
  max-width: 760px;
}

.content-wrap p {
  color: var(--muted);
}

.post-card {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.post-card h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

/* ---------- Motion ---------- */

/* Visible by default so page never goes blank if JS is delayed/blocked */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js-anim .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover,
  .product-card:hover,
  .product-card:hover .product-media img,
  .work-item:hover img { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .stats-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 1rem; }

  .nav-list { gap: 0.85rem; }
  .nav-list a { font-size: 0.86rem; }
  .primary-nav { gap: 1rem; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: grid; }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: rgba(10, 12, 16, 0.97);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.25rem 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  .primary-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .header-cta { width: fit-content; }

  .lang-switch { align-self: flex-start; }

  .capability-grid,
  .footer-grid,
  .cta-inner,
  .section-head--row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .lab-side-image { display: none; }
}

@media (max-width: 980px) {
  .lab-grid,
  .brand-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-grid,
  .cert-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section { padding: 4.5rem 0; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }

  .container { width: min(1180px, calc(100% - 1.5rem)); }

  .product-grid,
  .work-grid,
  .cert-grid,
  .stats-grid,
  .lab-grid,
  .why-grid,
  .brand-row {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
  }

  .stat:last-child { border-bottom: 0; }

  .hero {
    align-items: end;
    min-height: min(100vh, 900px);
    min-height: min(100dvh, 900px);
    padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
  }

  .hero-content {
    margin-inline: auto;
    width: calc(100% - 1.5rem);
  }

  .hero-title,
  body.lang-en .hero-title {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.12;
  }

  .hero-lead { max-width: none; font-size: 1rem; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .hero-actions .btn { justify-content: center; }

  .section-head { max-width: none; }

  .section-title { font-size: clamp(1.55rem, 6vw, 2rem); }

  .footer-bottom { flex-direction: column; }

  .brand-name { white-space: normal; }
}

@media (max-width: 480px) {
  .work-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .btn-lg { width: 100%; justify-content: center; }

  .cta-inner .btn-lg { width: auto; }
}