/*
Theme Name: Fairy Dental Lab
Description: Lightweight English B2B dental manufacturing site with editable WordPress pages.
Version: 1.4.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: fairy-dental-lab
*/
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --font-body: "DM Sans", sans-serif;
  --font-display: "Manrope", var(--font-body);
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;
  --size-action: .9375rem;
  --blue: #0645ce;
  --navy: #081e52;
  --text: #293a57;
  --muted: #495d7a;
  --line: #d8e3f2;
  --ice: #eff5ff;
  --orange: #ff6b18;
  --canvas: #fff;
  --radius: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  background: var(--canvas);
  color: var(--text);
  line-height: 1.63;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .21em; }
button, input, select, textarea { font-family: var(--font-body); }
b, strong { font-weight: var(--weight-bold); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #1658ea; outline-offset: 4px; }
[hidden] { display: none !important; }
p, ul, ol, figure { margin: 0 0 1.15rem; }
h1, h2, h3, h4, h5, h6 { color: var(--navy); margin: 0 0 .7em; font-family: var(--font-display); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: var(--weight-bold); }
h2 { font-size: clamp(1.72rem, 3.2vw, 2.76rem); font-weight: var(--weight-bold); }
h3 { font-size: 1.24rem; font-weight: var(--weight-bold); letter-spacing: -.025em; }
.shell { width: min(100% - 72px, 1260px); margin-inline: auto; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 10; background: white; padding: 12px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .72rem;
  min-height: 48px;
  padding: .73rem 1.18rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-family: var(--font-body);
  font-size: var(--size-action);
  font-weight: var(--weight-bold);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.25;
}

.button-primary { background: var(--orange); color: #14203a; }
.button-primary:hover { background: #f85c07; color: #111c34; }
.button-outline { background: #fff; border-color: #a8bfe4; color: var(--navy); }
.button-outline:hover { background: var(--ice); border-color: var(--blue); }
.text-link { color: var(--blue); font-family: var(--font-body); font-weight: var(--weight-semibold); }
.text-link-action {
  display: inline-flex;
  align-items: center;
  gap: .42em;
  font-size: var(--size-action);
  line-height: 1.45;
  text-decoration: none;
}
.text-link-action:hover { text-decoration: underline; }
.action-arrow {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -.14em;
}
.related-services .action-arrow { margin-inline-start: .3em; }
.eyebrow { color: var(--blue); font-size: .73rem; font-weight: var(--weight-bold); letter-spacing: .13em; line-height: 1.45; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin: 0 10px 1px 0; }
.site-header { position: relative; z-index: 2; background: white; border-bottom: 1px solid var(--line); }
.masthead { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { flex: 0 0 auto; display: inline-block; }
.brand img { width: 192px; }
.nav-list { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav-list a { display: flex; align-items: center; min-height: 44px; color: var(--navy); font-size: .89rem; font-weight: var(--weight-semibold); text-decoration: none; }
.nav-list a:hover, .nav-list [aria-current="page"] { color: var(--blue); text-decoration: underline; }
.menu-toggle, .mobile-nav-quote { display: none; }
.header-quote { white-space: nowrap; }
.hero { background: #f3f7ff; border-bottom: 1px solid var(--line); }
.hero-home {
  background: radial-gradient(ellipse at 95% 0%, #dceaff 0, transparent 64%), linear-gradient(125deg,#f9fbff,#eaf2ff);
  padding-block: clamp(45px, 5.4vw, 80px);
}
.hero-grid { display: grid; gap: clamp(24px, 5vw, 78px); align-items: center; }
.hero-illustrated .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .99fr); }
.hero h1 { margin: .25em 0 .29em; }
.hero-home h1 span { display: block; color: var(--blue); }
.hero-home h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
.hero-intro { max-width: 640px; color: var(--muted); font-size: clamp(1.03rem, 1.5vw, 1.19rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .62rem; margin-top: 1.6rem; }
.hero-photo { position: relative; margin: 0; min-width: 0; }
.hero-photo-frame { overflow: hidden; border-radius: var(--radius); background: #e2eaf7; }
.hero-photo img { width: 100%; aspect-ratio: 1.58; object-fit: cover; }
.hero-home .hero-photo img { aspect-ratio: 1.27; object-position: center 53%; }
.hero-photo figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: auto;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: .4rem .68rem;
  border-radius: 6px;
  color: var(--navy);
  background: white;
  font-size: .75rem;
  font-weight: var(--weight-bold);
}
.hero-photo figcaption span { display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--orange); }
.hero-inner { padding: 22px 0 clamp(36px, 4vw, 66px); }
.hero-inner h1 { font-size: clamp(2.35rem, 4.4vw, 4.25rem); }
.hero-inner .hero-copy { max-width: 800px; }
.hero-inner .hero-intro { margin-bottom: 0; }
.hero-inner .hero-photo { max-width: 560px; justify-self: end; width: 100%; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; list-style: none; margin: 0 0 24px; padding: 0; color: var(--muted); font-size: .81rem; }
.breadcrumbs li + li::before { content: '/'; padding-right: 10px; color: #6a7a98; }
.breadcrumbs a { color: var(--blue); }
.page-body { padding-block: clamp(36px, 5.5vw, 76px); overflow-wrap: anywhere; }
.page-body > p, .page-body > ul, .page-body > ol, .service-specs p, .service-specs ul { max-width: 76ch; }
.page-body :is(p,ul,ol,figure) + h2, .page-body > .info-grid + h2 { margin-top: 1.45em; }
.page-body li + li { margin-top: .35em; }
.page-body .eyebrow + h2 { margin-top: .35rem; }
.service-section > .wp-block-group__inner-container > p { max-width: 66ch; }
.page-body > .wp-block-group + .wp-block-group,
.page-body > .wp-block-group + .related-services { margin-top: clamp(46px, 6vw, 90px); }
.service-section > p, .split-copy > p { max-width: 66ch; }
.service-grid, .photo-grid, .info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-grid { margin-top: 1.8rem; }
.service-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.service-card a { display: flex; height: 100%; flex-direction: column; text-decoration: none; color: var(--text); border-radius: inherit; overflow: hidden; }
.service-card a:hover .card-arrow { background: var(--blue); color: white; }
.service-card a:hover h3 { color: var(--blue); }
.card-image { background: #e2eaf7; }
.card-image img, .photo-grid img { width: 100%; aspect-ratio: 1.62; object-fit: cover; }
.card-copy { position: relative; padding: 1.12rem 3rem 1.18rem 1.08rem; }
.card-copy h3 { margin-bottom: .5rem; text-wrap: pretty; }
.card-copy p { margin: 0; font-size: .93rem; color: var(--muted); }
.card-index, .tile-number { display: inline-block; color: var(--blue); font-weight: var(--weight-bold); font-size: .75rem; letter-spacing: .09em; margin-bottom: .54rem; }
.card-arrow { position: absolute; right: 12px; top: 16px; width: 32px; height: 32px; display: grid; place-items: center; background: var(--ice); border-radius: 50%; color: var(--blue); }
.photo-grid figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.photo-grid figcaption { margin: 0; padding: .7rem .83rem; color: var(--muted); font-size: .84rem; font-weight: var(--weight-semibold); }
.photo-grid:has(figure:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(18px, 5vw, 70px); }
.split-section > .wp-block-group__inner-container,
.quote-layout > .wp-block-group__inner-container { display: contents; }
.split-section .photo-grid { display: block; }
.split-section .photo-grid img { aspect-ratio: 1.53; }
.info-grid article { background: var(--ice); border-top: 3px solid var(--blue); border-radius: 0 0 12px 12px; padding: 1.2rem 1.28rem; }
.info-grid article p { margin-bottom: 0; }
.audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.process-section .info-grid { margin-bottom: 1.15rem; }
.closing-band {
  background: radial-gradient(ellipse at 100% 0%, #2058cf, transparent 72%), #0d318e;
  padding: clamp(24px, 4.7vw, 56px);
  border-radius: var(--radius);
  color: #e8f0ff;
}
.closing-band h2 { color: white; text-wrap: pretty; margin-bottom: .35em; }
.closing-band p { max-width: 68ch; }
.closing-band :focus-visible, .site-footer :focus-visible { outline-color: #ffbf9b; }
.faq { max-width: 920px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { color: var(--navy); font-weight: var(--weight-bold); cursor: pointer; padding: .86rem 0; }
.faq details p { margin: 0 0 1rem; }
.related-services { border-top: 1px solid var(--line); padding-top: 1.45rem; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.related-services h2 { flex-basis: 100%; font-size: 1.3rem; margin-bottom: .3rem; }
.related-services a { font-size: .9rem; font-weight: var(--weight-semibold); }
.wp-block-table { max-width: 1120px; margin-bottom: 1.7rem; }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table :is(th,td) { text-align: left; vertical-align: top; padding: .7rem .85rem; border: 1px solid var(--line); }
.wp-block-table th { color: var(--navy); background: var(--ice); }
.wp-block-table :is(th,td):first-child { width: 32%; }
.factory-address { margin-bottom: 1.6rem; padding: 1rem 1.15rem; border-left: 4px solid var(--orange); background: var(--ice); max-width: 1120px; }
.factory-address address { font-style: normal; }
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, .9fr); gap: clamp(16px, 3vw, 36px); align-items: start; }
.quote-card, .quote-aside { border: 1px solid var(--line); border-radius: 16px; padding: clamp(16px, 3.5vw, 34px); }
.quote-card h2, .quote-aside h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: .3em 0 .5em; }
.quote-aside { background: var(--ice); }
.quote-aside ul { padding-left: 1.3rem; }
.quote-aside a { margin-right: 1rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 16px; }
.field-grid label { min-width: 0; color: var(--navy); font-size: .91rem; font-weight: var(--weight-bold); }
.field-grid :is(input,select,textarea) {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: .65rem .74rem;
  min-height: 46px;
  border: 1px solid #9caecc;
  border-radius: 7px;
  font: inherit;
  font-size: 1rem;
  font-weight: var(--weight-regular);
  color: #14203a;
  background: #fff;
}
.field-grid textarea { resize: vertical; }
.full-field { grid-column: 1 / -1; }
.field-note, .optional { color: var(--muted); font-size: .86rem; font-weight: var(--weight-regular); }
.field-grid + .button { margin-top: 1rem; }
.form-error { color: #8c1d19; background: #fff1ed; border-left: 4px solid #b42d27; padding: .62rem .8rem; font-weight: var(--weight-semibold); }
.form-success { background: var(--ice); padding: 1rem; border-radius: 10px; }
.site-footer { padding: 3.1rem 0 1.1rem; background: #071c4d; color: #dbe6fb; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 22px 48px; padding-bottom: 2.25rem; }
.footer-brand p { margin-top: .82rem; max-width: 30ch; }
.footer-location { color: #a9c0ed; font-size: .73rem; font-weight: var(--weight-bold); letter-spacing: .13em; }
.site-footer nav h2 { font-size: 1rem; color: white; margin: 0 0 .42rem; letter-spacing: 0; }
.site-footer nav a { display: block; width: fit-content; min-height: 32px; color: #dbe6fb; padding: .2rem 0; text-decoration: none; font-size: .91rem; }
.site-footer a:hover { text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; padding-top: .9rem; border-top: 1px solid #3e5279; }

@media (max-width: 1210px) {
  .shell { width: min(100% - 48px, 1260px); }
  .masthead { gap: 14px; }
  .brand img { width: 163px; }
  .nav-list { gap: 12px; }
  .nav-list a { font-size: .81rem; }
}
@media (max-width: 1120px) {
  .masthead { min-height: 66px; flex-wrap: wrap; position: relative; gap: 0 10px; }
  .masthead > .brand { padding-block: 12px; }
  .header-quote { display: none; }
  .site-nav { width: 100%; order: 3; }
  .menu-ready .site-nav { display: none; }
  .menu-ready .menu-toggle[aria-expanded="true"] + .site-nav { display: block; }
  .mobile-nav-quote { display: inline-flex; margin-bottom: 12px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--navy); font: inherit; font-weight: var(--weight-bold); font-size: .88rem; cursor: pointer; }
  .menu-icon { display: inline-block; width: 15px; height: 10px; border-block: 2px solid var(--blue); }
  .nav-list { display: grid; gap: 0; padding-bottom: 8px; border-top: 1px solid var(--line); }
  .nav-list a { font-size: .94rem; }
  .hero-illustrated .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-inner .hero-photo { justify-self: start; }
  .hero-home .hero-photo img { aspect-ratio: 1.68; }
  .hero-home h1 { max-width: 17ch; }
  .service-grid, .photo-grid, .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .footer-grid { gap: 20px; }
}
@media (max-width: 580px) {
  .shell { width: calc(100% - 32px); }
  .hero-home { padding-block: 34px 26px; }
  .hero h1 { text-wrap: pretty; }
  .hero-home h1 { font-size: clamp(2.18rem, 8.9vw, 3.4rem); }
  .hero-inner h1 { font-size: clamp(2.04rem, 8vw, 3.1rem); }
  .hero-actions { margin-top: 1.17rem; }
  .hero-photo-frame { border-radius: 14px; }
  .hero-home .hero-photo img { aspect-ratio: 1.45; }
  .hero-grid { gap: 20px; }
  .service-grid, .photo-grid, .photo-grid:has(figure:nth-child(2):last-child), .info-grid, .split-section, .quote-layout, .field-grid { grid-template-columns: minmax(0, 1fr); }
  .card-image img { aspect-ratio: 1.78; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer nav a { min-height: 44px; }
  .wp-block-table :is(th,td) { padding: .52rem; font-size: .88rem; }
}


/* Photography-led homepage */
.site-header-home {
  border-color: #d9e6ff37;
  background: linear-gradient(180deg, #071630e3, #0716308f);
}
.site-header-home .nav-list > li > a,
.site-header-home .product-menu-toggle { color: #f6f9ff; }
.site-header-home .nav-list > li > a:hover,
.site-header-home .nav-list > li > a[aria-current="page"] { color: #a9caff; }
.site-header-home :focus-visible { outline-color: #ffbc91; }
.hero-home {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(760px, 90svh);
  margin-top: -82px;
  padding: clamp(145px, 16vw, 225px) 0 clamp(80px, 12vw, 150px);
  background: #0b1e43;
  border: 0;
}
.hero-home > .shell { position: static; }
.hero-home.hero-illustrated .hero-grid { grid-template-columns: minmax(0, 690px); }
.hero-home .hero-copy { z-index: 1; }
.hero-home .eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 8px 13px;
  border: 1px solid #dce8ff70;
  border-radius: 100px;
  background: #102c5e85;
  color: #f5f8ff;
}
.hero-home .status-dot { flex: none; }
.hero-home h1 { margin-top: 0; color: #fff; text-wrap: pretty; }
.hero-home h1 span { color: #c8dcff; }
.hero-home .hero-intro { color: #f4f7fe; max-width: 51ch; }
.hero-home .button-outline { color: #fff; background: #0a214b99; border-color: #b8cae9; }
.hero-home .button-outline:hover { background: #1c4391; }
.hero-home .hero-photo { position: absolute; inset: 0 0 0 27%; z-index: -1; }
.hero-home .hero-photo-frame { position: absolute; inset: 0; border-radius: 0; background: #102342; }
.hero-home .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.hero-home .hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b1e43, #0b1e43e3 12%, #0b1e4366 48%, #08152a24 80%),
    linear-gradient(0deg, #06152d80, transparent 32%);
}
.hero-home .hero-photo figcaption {
  right: max(24px, calc((100vw - 1260px) / 2));
  left: auto;
  bottom: 24px;
  color: #fff;
  background: #102449e0;
  border: 1px solid #e2edff66;
}
.hero-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  visibility: hidden;
}
.hero-film-ready { visibility: visible; }
.hero-film-toggle {
  position: absolute;
  z-index: 1;
  right: max(24px, calc((100vw - 1260px) / 2));
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e2edff8a;
  border-radius: 9px;
  background: #102449e8;
  color: #fff;
  font-size: .78rem;
  font-weight: var(--weight-bold);
  cursor: pointer;
}
.hero-film-toggle:hover { background: #1f4486; }
.hero-film-toggle:focus-visible, .factory-film :focus-visible, .product-film-card :focus-visible { outline-color: #ffbe94; }
.hero-film-toggle .hero-film-pause, .hero-film-toggle[data-playing="true"] .hero-film-play { display: none; }
.hero-film-toggle[data-playing="true"] .hero-film-pause { display: block; }

.factory-film {
  padding-block: clamp(44px, 7vw, 104px);
  color: #e4edff;
  background: radial-gradient(ellipse at 100% 10%, #214784, transparent 66%), #0b1e43;
}
.factory-film-layout { display: grid; grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); gap: clamp(24px, 5vw, 78px); align-items: center; }
.factory-film .eyebrow, .factory-film a, .product-film-card a { color: #c8ddff; }
.factory-film h2, .product-film-card h3 { color: #fff; }
.factory-film-copy > p:not(.eyebrow) { max-width: 41ch; }
.factory-film-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid #708ab2;
  border-radius: var(--radius);
  background: #142f5c;
}
.film-player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #071429; }
.film-stage { position: relative; min-width: 0; background: #071429; }
.film-stage[data-film-pending] .film-player { visibility: hidden; }
.film-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: #132d55;
  color: white;
  cursor: pointer;
}
.film-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-start span {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(48px, 5vw, 64px);
  aspect-ratio: 1;
  border: 1px solid #e9f1ffb0;
  border-radius: 50%;
  background: #0d2556eb;
  box-shadow: 0 4px 16px #0714296b;
}
.film-start:hover span { background: var(--orange); color: #14203a; }
.film-start:focus-visible { outline-offset: -4px; }
.factory-film-frame figcaption, .film-label { font-size: .76rem; font-weight: var(--weight-bold); color: #c8ddff; }
.factory-film-frame figcaption { padding: .62rem 1rem; }
.product-films { padding-block: clamp(40px, 6vw, 88px); background: #f1f5fc; border-bottom: 1px solid var(--line); }
.product-films-intro { display: flex; justify-content: space-between; align-items: end; gap: 16px 30px; margin-bottom: clamp(20px, 4vw, 42px); }
.product-films-intro .eyebrow { margin-bottom: .55rem; }
.product-films-intro h2 { margin-bottom: 0; }
.product-films-intro > p { max-width: 46ch; margin: 0; color: var(--muted); }
.product-films-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.product-film-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  color: #e6edfc;
  background: linear-gradient(155deg, #254f92, #0b1d42 84%);
}
.product-film-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: clamp(16px, 2vw, 26px); }
.film-label { margin-bottom: .64rem; }
.product-film-copy > p { flex: 1; }
.product-film-copy > a { min-height: 36px; }
.product-films-single .product-films-grid { grid-template-columns: minmax(0, 1fr); }
.product-films-single .product-film-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; max-width: 960px; }
.product-films-single .product-film-copy > p { margin-bottom: 0; }
@media (max-width: 767px) {
  .hero-film-toggle { right: 16px; bottom: 14px; }
  .factory-film-layout, .product-films-grid, .product-films-single .product-film-card { grid-template-columns: minmax(0, 1fr); }
  .product-films-intro { display: block; }
  .product-films-intro > p { margin-top: .65rem; }
}
.button { border-radius: 99px; padding-inline: 1.34rem; }
.factory-facts { background: #f1f5fc; border-bottom: 1px solid var(--line); }
.factory-facts-grid {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin-block: 0;
  padding: clamp(22px, 4vw, 50px) 0;
}
.factory-facts-grid li {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  padding-inline: clamp(10px, 4vw, 48px);
  color: var(--muted);
  font-weight: var(--weight-semibold);
  line-height: 1.34;
}
.factory-facts-grid li:first-child { padding-left: 0; }
.factory-facts-grid li + li { border-left: 1px solid #ccd9ec; }
.fact-number {
  display: block;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(1.95rem, 5vw, 4rem);
  letter-spacing: -.055em;
  line-height: 1.05;
  margin-bottom: .42rem;
}
.advantage-section > .wp-block-group__inner-container > p,
.home-work-section > .wp-block-group__inner-container > p { max-width: 70ch; }
.advantage-section .info-grid, .home-work-section .photo-grid, .work-example .photo-grid { margin: 1.4rem 0 1rem; }
.advantage-section .info-grid article {
  background: #f3f7ff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: clamp(16px, 2.5vw, 28px);
}
.work-example { max-width: 1080px; }
.work-example > .wp-block-group__inner-container > p { max-width: 76ch; }
.work-example .photo-grid:has(figure:only-child) { grid-template-columns: minmax(0, 520px); }
.workflow-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; gap: 12px; padding: 0; }
.workflow-grid li {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 10px;
  background: #f6f9ff;
  padding: 1rem;
}
.page-body .workflow-grid li + li { margin: 0; }
.workflow-grid li p { margin: 0; font-size: .93rem; }

/* Social profile icons */
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-social-title { color: #e7efff; font-size: .8rem; font-weight: var(--weight-bold); margin-inline-end: .4rem; }
.social-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #7188b1;
  border-radius: 50%;
  background: #193766;
}
.social-icon img { width: 20px; height: 20px; object-fit: contain; filter: brightness(0) invert(1); }
a.social-icon:hover { background: var(--blue); border-color: #c2d6ff; }
.footer-base { align-items: center; }
.back-to-top {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid #b9cef7;
  border-radius: 50%;
  color: #fff;
  background: #123979;
  text-decoration: none;
  box-shadow: 0 6px 22px #081e5240;
}
.back-to-top:hover { background: var(--orange); border-color: #ffb68a; color: #14203a; }
.back-to-top[data-floating] {
  position: fixed;
  z-index: 6;
  bottom: calc(var(--top-desktop-bottom, 24px) + env(safe-area-inset-bottom, 0px));
  right: calc(var(--top-desktop-inset, 24px) + env(safe-area-inset-right, 0px));
}
.back-to-top[data-floating][data-desktop-side="left"] { right: auto; left: calc(var(--top-desktop-inset, 24px) + env(safe-area-inset-left, 0px)); }
@media (max-width: 767px) {
  .back-to-top[data-floating][data-mobile-side] {
    bottom: calc(var(--top-mobile-bottom, 16px) + env(safe-area-inset-bottom, 0px));
    right: calc(var(--top-mobile-inset, 14px) + env(safe-area-inset-right, 0px));
    left: auto;
  }
  .back-to-top[data-floating][data-mobile-side="left"] { right: auto; left: calc(var(--top-mobile-inset, 14px) + env(safe-area-inset-left, 0px)); }
  .site-footer:has(.back-to-top[data-floating]) .footer-base { padding-inline-end: 54px; }
  .site-footer:has(.back-to-top[data-floating][data-mobile-side="left"]) .footer-base { padding-inline: 54px 0; }
}
@media (max-width: 580px) {
  .footer-base .footer-social { flex-basis: 100%; }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}

/* Desktop navigation panels */
.product-menu, .product-menu-toggle { display: none; }
@media (min-width: 1121px) {
  .masthead { position: relative; }
  .nav-list { gap: clamp(8px, 1.12vw, 20px); }
  .nav-list > li:has(> .product-menu) { display: flex; align-items: center; min-height: 82px; }
  .nav-list > li > a { white-space: nowrap; }
  .product-menu-toggle {
    display: grid;
    place-items: center;
    width: 30px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
  }
  .product-menu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .product-menu {
    position: absolute;
    z-index: 2;
    inset: calc(100% - 1px) 0 auto;
    padding: clamp(16px, 2vw, 25px);
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 42px #09244d36;
  }
  .product-menu-ready > .product-menu-toggle[aria-expanded="true"] + .product-menu,
  .nav-list > li:not(.product-menu-ready):is(:hover, :focus-within) > .product-menu { display: block; }
  .product-menu-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
  }
  .product-menu-heading .eyebrow { margin: 0 0 .12rem; }
  .product-menu-heading strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: var(--weight-bold); }
  .product-menu-heading .text-link { color: var(--blue); font-size: var(--size-action); font-weight: var(--weight-semibold); }
  .product-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .product-menu-grid:has(li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-menu-grid .product-menu-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
  }
  .product-menu-image { background: #e8effc; }
  .product-menu-image img { width: 100%; aspect-ratio: 2.1; object-fit: cover; }
  .product-menu-name { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; padding: .58rem .72rem; }
  .product-menu-name .action-arrow { color: var(--blue); }
  .product-menu-card:hover { background: var(--ice); border-color: #8baef3; }
}
@media (min-width: 1121px) and (max-width: 1210px) {
  .product-menu-toggle { width: 24px; }
  .header-quote { padding-inline: 12px; }
}
@media (max-width: 1120px) {
  .site-header-home { background: #0b1e43; }
  .site-header-home .nav-list { border-color: #52678d; }
  .hero-home {
    min-height: 540px;
    margin-top: 0;
    padding: clamp(62px, 12vw, 110px) 0 106px;
  }
  .hero-home .hero-photo { inset: 0; }
  .hero-home .hero-photo-frame::after { background: linear-gradient(90deg,#0b1e43f4, #0b1e436b), linear-gradient(0deg,#08162d8c, transparent 38%); }
  .workflow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .hero-home {
    min-height: 0;
    padding-block: 40px 176px;
  }
  .hero-home .hero-photo { inset: 24% 0 0; }
  .hero-home .hero-photo img { object-position: center 65%; }
  .hero-home .hero-photo-frame::after {
    background: linear-gradient(180deg, #0b1e43 1%, #0b1e43e8 18%, #0b1e438a 59%, #0b1e4326 88%);
  }
  .hero-home .hero-photo figcaption { right: 16px; bottom: 14px; }
  .factory-facts-grid li { font-size: .76rem; }
  .factory-facts-grid li:last-child { padding-right: 0; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* One entrance per heading or figure, without changing the underlying values. */
.motion-figures { font-variant-numeric: tabular-nums; white-space: nowrap; }
.motion-digit-window { display: inline-block; overflow: hidden; vertical-align: bottom; }
.motion-digit { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-intro, .text-arrived { animation: fairy-text-in 540ms cubic-bezier(.18,.7,.25,1) both; }
  .hero-intro { animation-delay: 75ms; }
  .motion-digit { animation: fairy-digit-in 580ms cubic-bezier(.18,.7,.25,1) var(--digit-delay) both; }
}
@keyframes fairy-text-in {
  from { transform: translateY(10px); opacity: .68; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fairy-digit-in {
  from { transform: translateY(70%); opacity: .45; }
  to { transform: translateY(0); opacity: 1; }
}




.case-transfer { margin-bottom: clamp(36px, 5vw, 64px); }
.case-transfer > p { max-width: 70ch; }
.case-transfer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case-transfer-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6f9ff;
  overflow-wrap: anywhere;
}
.case-transfer-recipient { margin: 0 0 16px; }
.case-transfer-recipient dt { font-weight: var(--weight-semibold); }
.case-transfer-recipient dd { margin: 0; }
.case-transfer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: auto; }
.case-transfer-guide { color: var(--blue); font-weight: var(--weight-semibold); }
@media (max-width: 640px) {
  .case-transfer-grid { grid-template-columns: 1fr; }
}

.header-actions { display: flex; align-items: center; flex: none; gap: 12px; }
.site-language { position: relative; }
.site-language summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--navy);
  font-size: .85rem;
  font-weight: var(--weight-bold);
  list-style: none;
  cursor: pointer;
}
.site-language summary::-webkit-details-marker { display: none; }
.site-language summary:hover, .site-language[open] summary { background: var(--ice); }
.site-language[open] summary svg { transform: rotate(180deg); }
.site-language .language-options {
  position: absolute;
  z-index: 3;
  inset: calc(100% + 6px) 0 auto auto;
  min-width: 132px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  box-shadow: 0 8px 24px #09244d36;
  list-style: none;
}
.site-language .language-options a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  border-radius: 5px;
  color: var(--navy);
  text-decoration: none;
  font-size: .88rem;
  font-weight: var(--weight-semibold);
}
.site-language .language-options a[aria-current="true"],
.site-language .language-options a:hover { color: var(--blue); background: var(--ice); }
.site-header-home .site-language summary { border-color: #a4bbde83; color: white; }
.site-header-home .site-language summary:hover,
.site-header-home .site-language[open] summary { background: #30568e; }
@media (max-width: 1120px) {
  .masthead > .menu-toggle { order: 2; }
  .header-actions { order: 1; margin-inline-start: auto; }
}
@media (max-width: 420px) {
  .masthead > .brand img { width: clamp(112px, 36vw, 145px); }
  .masthead > .menu-toggle { width: 44px; justify-content: center; padding: 0; }
  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

