:root {
  color-scheme: light;
  --bg: #f5f7f8; --surface: #eaf0f4; --text: #293d50; --muted: #657c8f;
  --line: #cbd6df; --accent: #4c6e89; --header: 84px;
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text); background: var(--bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, canvas { display: block; max-width: 100%; }
p, h1, h2, h3, ul, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[id] { scroll-margin-top: var(--header); }
.shell { width: min(88%, 1360px); margin-inline: auto; }
.skip { position: fixed; z-index: 10; background: var(--accent); color: #fff; top: 8px; left: 8px; padding: 12px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.header { position: fixed; z-index: 5; width: 100%; top: 0; height: var(--header); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.header.scrolled, .header:has(.menu[aria-expanded="true"]) { background: #f7f9fae8; backdrop-filter: blur(18px); border-color: #cbd6df80; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 120px; height: auto; }
.header nav, .footer nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 43px); }
nav a { font-size: .875rem; letter-spacing: .02em; transition: color .2s; }
nav a:hover { color: #7497b1; }
@media (min-width: 960px) {
  .header:not(.scrolled) nav { border-radius: 100px; padding: 5px 6px 5px 24px; background: #f7f9faed; }
}
.nav-contact { border: 1px solid #9fb2c2; border-radius: 100px; padding: 11px 22px; }
.menu { display: none; }
.hero { position: relative; height: 225svh; background: #e7edf3; }
.hero-stage { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 80% 46%, #dae5ed, #eef3f6 48%, #fbfaf8 83%); }
.hero-art { position: absolute; inset: 0; pointer-events: none; overflow: hidden; container-type: size; mask-image: linear-gradient(90deg, transparent 40%, #000 48%); }
.hero-art canvas { width: 100%; height: 100%; opacity: 0; }
.hero-art.ready canvas { opacity: 1; }
#hero-poster { position: absolute; width: auto; height: 168cqh; max-width: none; top: 43.8%; left: 83.1%; transform: translate(-50%, -50%); object-fit: contain; }
.hero-art.ready #hero-poster { opacity: 0; }
.hero-inner { position: relative; height: 100%; display: flex; align-items: center; padding-block: calc(var(--header) + 20px) 110px; pointer-events: none; }
.hero-copy { width: 43%; pointer-events: auto; }
.eyebrow { color: var(--accent); font-size: .875rem; letter-spacing: .10em; line-height: 1.5; }
.hero-label { margin-bottom: 25px; }
h1 { font-size: clamp(2.3rem, 3.65vw, 3.8rem); font-weight: 500; line-height: 1.6; letter-spacing: -.07em; white-space: nowrap; }
.hero-description { color: var(--muted); font-size: 1rem; line-height: 1.9; margin-block: 21px 30px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 16px 24px; min-height: 52px; border: 1px solid; border-radius: 100px; font-size: .875rem; transition: background .2s, border-color .2s, color .2s; }
.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.primary:hover { background: #385b77; border-color: #385b77; }
.secondary { background: #f7f9fa80; border-color: #9fb2c2; }
.secondary:hover { background: #fff; border-color: var(--accent); }
.hero-foot { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: flex-start; gap: 18px; align-items: center; padding-block: 23px; color: var(--muted); font-size: .75rem; }
.hero-foot a { pointer-events: auto; display: flex; gap: 12px; align-items: center; letter-spacing: .08em; padding: 8px 12px; border-radius: 100px; background: #f7f9fae8; }
.hero-foot p { font-size: .75rem; }
.section { padding-block: clamp(80px, 11vw, 160px); }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 56px; }
h2 { font-size: clamp(2.6rem, 5.7vw, 5.6rem); font-weight: 500; line-height: 1.05; letter-spacing: -.055em; }
.section .eyebrow { margin-bottom: 17px; }
.section-top > p, .service-grid p, .strength div > p + p, .contact p:not(.eyebrow), address { font-size: 1rem; line-height: 1.9; color: var(--muted); }
.service-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 34px; }
.service-grid li { min-height: 180px; border-top: 1px solid var(--line); padding-block: 29px; display: grid; align-content: start; gap: 14px; }
.service-grid h3 { font-size: 1.18rem; font-weight: 500; line-height: 1.6; }
.service-grid p { font-size: .9375rem; }
.works { background: #e8eef3; }
.works-panel { min-height: 300px; border: 1px solid #b9cbd8; display: grid; place-content: center; text-align: center; padding: 35px; border-radius: 3px; background: radial-gradient(ellipse at 50% 110%, #cddce8, #edf2f6 75%); }
.work-categories { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 0; }
.work-categories li { padding: 9px 15px; border: 1px solid #b2c5d4; border-radius: 100px; font-size: .875rem; color: #5d788e; }
.work-categories img { width: 100%; height: auto; margin-bottom: 10px; }
.strength, .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.stat { color: #587d99; font-size: clamp(6rem, 15vw, 13rem); font-weight: 400; line-height: .9; letter-spacing: -.085em; margin-bottom: 22px; }
.stat span { font-size: clamp(1.2rem, 2.2vw, 1.9rem); letter-spacing: -.03em; margin-left: .5em; }
.strength ul { list-style: none; padding: 0; }
.strength li { padding-block: 21px; border-bottom: 1px solid var(--line); line-height: 1.7; }
.about { background: #edf2f5; border-block: 1px solid #d5dfe7; }
dl > div { display: grid; grid-template-columns: 105px 1fr; gap: 18px; font-size: .9375rem; line-height: 1.9; padding-block: 20px; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); }
.related { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 54px; border-bottom: 1px solid var(--line); }
.related-name { font-size: clamp(1.7rem, 4vw, 3rem); letter-spacing: -.035em; margin-top: 13px; }
#related-status, .related-link { font-size: .875rem; color: var(--muted); }
.contact { background: radial-gradient(ellipse at 50% 100%, #dbe6ef, #f6f8f9 72%); text-align: center; }
.contact p:not(.eyebrow) { margin: 29px auto; }
.contact small { display: block; color: var(--muted); font-size: .8125rem; margin-top: 14px; }
.footer { border-top: 1px solid var(--line); padding-block: 50px 25px; }
.footer-top { display: flex; justify-content: space-between; align-items: start; gap: 30px; }
.footer nav { flex-wrap: wrap; }
address { font-style: normal; margin-top: 20px; font-size: .875rem; }
address a:hover { color: #3b6281; }
.copyright { font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 35px; padding-top: 23px; }
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.motion .reveal.visible, .motion .reveal:focus-within { opacity: 1; transform: none; }
@media (max-width: 959px) {
  :root { --header: 68px; }
  .hero { height: 240svh; }
  .hero-stage { min-height: 620px; }
  .hero-inner { align-items: start; padding-block: calc(var(--header) + 48px) 70px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(1.85rem, 5.6vw, 3.3rem); line-height: 1.5; letter-spacing: -.06em; }
  .hero-label { margin-bottom: 15px; }
  .hero-description { font-size: .9375rem; margin-block: 15px 20px; }
  .button { padding: 13px 20px; min-height: 48px; }
  .hero-art { top: 400px; mask-image: none; }
  #hero-poster { height: 165cqh; top: 60%; left: 73%; }
  .hero-foot { padding-block: 17px; }
  .hero-foot p { display: none; }
  .menu { display: flex; gap: 10px; align-items: center; color: var(--text); background: #f7f9fa; border: 1px solid #b6c6d3; border-radius: 30px; padding: 9px 14px; font-size: .875rem; }
  .menu span { width: 14px; height: 9px; border-block: 1px solid #69849a; }
  .header nav { display: none; position: absolute; top: var(--header); left: 0; right: 0; background: #f4f7f9; padding: 12px 6% 22px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }
  .header nav a { padding: 16px 0; }
  .header nav .nav-contact { border: 0; }
  .menu[aria-expanded="true"] + nav { display: flex; }
  .section-top { display: grid; margin-bottom: 34px; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 0 25px; }
  .strength, .about-grid { grid-template-columns: 1fr; gap: 37px; }
  .footer-top { display: grid; }
}
@media (max-width: 480px) {
  .shell { width: 89%; }
  .brand img { width: 108px; }
  .hero-inner { padding-top: calc(var(--header) + 26px); }
  .hero-art { top: 330px; }
  #hero-poster { height: 159cqh; top: 59%; left: 66%; }
  h1 { font-size: clamp(1.65rem, 6.3vw, 2rem); }
  .hero-label { font-size: .8125rem; }
  .hero-description { font-size: .875rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid li { min-height: 130px; }
  dl > div { grid-template-columns: 90px 1fr; gap: 12px; }
  .contact h2 { font-size: 2.8rem; }
  .contact .button { padding-inline: 17px; font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero-stage { position: relative; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .motion .reveal { opacity: 1; transform: none; }
}

/* Image slots reserve their full size before an asset loads. */
.media-frame { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: #dce6ee; border-radius: 4px; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { display: grid; place-items: center; padding: 26px; background: radial-gradient(ellipse at 30% 20%, #f4f7fa 0%, #dae5ef 65%, #c4d4e2 100%); color: #617c92; }
.media-placeholder::before { content: ""; position: absolute; inset: 9%; border: 1px solid #9db3c75e; border-radius: 50%; transform: rotate(-18deg) scaleX(1.22); }
.media-placeholder::after { content: ""; position: absolute; inset: 17%; border: 1px solid #a7bbcc5c; border-radius: 50%; transform: rotate(15deg) scaleX(.9); }
.media-placeholder span { position: relative; z-index: 1; font-size: .875rem; text-align: center; line-height: 1.8; background: #f6f9fbce; padding: 10px 17px; border-radius: 30px; }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 32px; margin-bottom: 70px; }
.process-grid article h3 { font-size: 1.4rem; font-weight: 500; margin-block: 23px 11px; letter-spacing: -.025em; }
.process-grid article p { color: var(--muted); line-height: 1.9; font-size: .9375rem; max-width: 34em; }
.service-grid { grid-template-columns: repeat(2, 1fr); }
.service-grid li { min-height: 145px; }
.work-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.work-filters button { border: 1px solid #adc1d2; background: #f5f8fa80; color: #526f86; border-radius: 30px; padding: 11px 17px; font: inherit; font-size: .875rem; cursor: pointer; transition: background .2s, color .2s; }
.work-filters button:hover { background: #d4e0e9; }
.work-filters button[aria-pressed="true"] { background: #4c6e89; color: #fff; border-color: #4c6e89; }
.gallery-status { color: var(--muted); font-size: .875rem; line-height: 1.8; margin-bottom: 28px; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 45px 32px; }
.work-grid .media-frame { aspect-ratio: 16 / 10; }
.work-empty { grid-column: 1 / -1; }
.work-preview-slots { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; }
.work-preview-slots .media-frame:last-child { margin-top: 70px; }
.work-empty > .eyebrow { margin-top: 23px; text-align: center; }
.work-play { display: block; position: relative; width: 100%; padding: 0; border: 0; background: transparent; color: #fff; border-radius: 4px; cursor: pointer; overflow: hidden; }
.work-card .media-frame img { transition: transform .65s ease; }
.work-play:hover .media-frame img, .work-play:focus-visible .media-frame img { transform: scale(1.035); }
.play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; display: grid; place-items: center; padding-left: 3px; background: #263f548c; border: 1px solid #ffffff8a; border-radius: 50%; backdrop-filter: blur(8px); font-size: 19px; transition: background .2s; }
.work-play:hover .play-icon { background: #345a79d9; }
.work-category { color: var(--muted); font-size: .875rem; margin-block: 22px 9px; }
.work-card h3 { font-size: 1.4rem; font-weight: 500; line-height: 1.5; }
.work-description { color: var(--muted); font-size: .9375rem; line-height: 1.9; margin-top: 10px; }
.strength-photo { margin-bottom: 65px; }
.strength-photo .media-frame { aspect-ratio: 21 / 9; }
.strength-photo .media-placeholder { background: radial-gradient(ellipse at 70% 80%, #cad9e6, #e6edf3 60%, #d3dfe9); }
.about-visual { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: center; margin-bottom: 110px; }
.about-visual h2 { font-size: clamp(2.4rem, 4.7vw, 4.5rem); line-height: 1.5; }
.about-visual > div:first-child > p:last-child { margin-top: 25px; color: var(--muted); font-size: 1rem; line-height: 2; }
.about-visual .media-frame { aspect-ratio: 4 / 5; }
.video-dialog { padding: 26px; width: min(1060px, 94%); max-height: 92svh; overflow-y: auto; border: 1px solid #c6d3de; border-radius: 14px; color: var(--text); background: #f4f7fa; }
.video-dialog::backdrop { background: #0c2032c9; backdrop-filter: blur(8px); }
.video-close { display: block; margin-left: auto; padding: 9px 17px; border-radius: 25px; border: 1px solid #aebfce; background: transparent; color: var(--text); font: inherit; font-size: .875rem; cursor: pointer; }
.video-dialog h3 { font-size: 1.2rem; font-weight: 500; line-height: 1.7; margin: 16px 0; }
.video-player { width: 100%; aspect-ratio: 16 / 9; background: #182936; border-radius: 5px; overflow: hidden; }
.video-player video, .video-player iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.video-error { font-size: .9375rem; line-height: 1.8; color: #75513c; margin-top: 14px; }
@media (max-width: 959px) {
  .process-grid { gap: 32px 23px; }
  .about-visual { gap: 35px; margin-bottom: 70px; }
  .about-visual h2 { font-size: 2.4rem; }
  .strength-photo .media-frame { aspect-ratio: 16 / 10; }
  .strength-photo { margin-bottom: 40px; }
}
@media (max-width: 600px) {
  .process-grid, .work-grid, .about-visual, .service-grid { grid-template-columns: 1fr; }
  .process-grid { gap: 36px; margin-bottom: 50px; }
  .process-grid article h3 { margin-top: 18px; font-size: 1.25rem; }
  .work-filters { gap: 7px; }
  .work-filters button { font-size: .8125rem; padding: 10px 13px; }
  .work-preview-slots { grid-template-columns: 1fr; gap: 20px; }
  .work-preview-slots .media-frame:last-child { margin-top: 0; }
  .about-visual .media-frame { aspect-ratio: 4 / 3; }
  .video-dialog { padding: 16px; }
  .play-icon { width: 53px; height: 53px; }
}

/* Local comparison of the four heading accents. */
.balloon-preview [data-balloon] {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 1.85rem;
}
.balloon-preview [data-balloon]::after {
  content: "";
  flex: none;
  width: var(--balloon-width, 1.9rem);
  height: var(--balloon-height, 1.2rem);
  border-radius: var(--balloon-shape, 50%);
  transform: rotate(var(--balloon-angle, 0deg));
  background:
    radial-gradient(ellipse at 33% 22%, #fffffff2, #ffffff20 32%, transparent 49%),
    linear-gradient(145deg, var(--balloon-light), var(--balloon-body) 63%, var(--balloon-edge));
  box-shadow: inset 0 -2px 4px #38465f25, inset 1px 1px 2px #ffffffa0, 0 3px 6px #34476520;
}
.balloon-preview [data-balloon="service"] {
  --balloon-light: #e5f2ff; --balloon-body: #a8cce9; --balloon-edge: #6f9ebf;
  --balloon-shape: 58% 42% 48% 52% / 55% 44% 56% 45%;
  --balloon-angle: -19deg;
}
.balloon-preview [data-balloon="works"] {
  --balloon-light: #e4f5e9; --balloon-body: #aad9c2; --balloon-edge: #78ae96;
  --balloon-shape: 55% 45% 52% 48% / 66% 55% 45% 34%;
  --balloon-angle: 13deg;
  --balloon-width: 1.7rem; --balloon-height: 1.42rem;
}
.balloon-preview [data-balloon="about"] {
  --balloon-light: #f1e8ff; --balloon-body: #cfb9e8; --balloon-edge: #a289bf;
  --balloon-shape: 48% 52% 47% 53% / 51% 48% 52% 49%;
  --balloon-angle: -29deg;
  --balloon-width: 1.82rem; --balloon-height: 1rem;
}
.balloon-preview [data-balloon="contact"] {
  justify-content: center;
  --balloon-light: #ffe8db; --balloon-body: #efb39d; --balloon-edge: #cc8e7d;
  --balloon-shape: 62% 38% 50% 50% / 49% 60% 40% 51%;
  --balloon-angle: 18deg;
  --balloon-width: 1.5rem; --balloon-height: 1.36rem;
}


/* Keep the smartphone copy in the same vertical field as the 3D symbol. */
@media (max-width: 600px) {
  .hero-inner {
    z-index: 2;
    align-items: flex-start;
    padding-top: 29svh;
  }
  .hero-copy {
    position: relative;
    isolation: isolate;
    width: 100%;
  }
  .hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -20px -18px -22px -22px;
    pointer-events: none;
    background: linear-gradient(90deg, #f5f8faed 0%, #f5f8fac9 58%, #f5f8fa80 82%, transparent 100%);
    filter: blur(12px);
  }
  .hero-copy .secondary {
    background: #f7f9faf2;
  }
}


/* Match the static fallback to the independently tuned Hero cameras. */
@media (min-width: 960px) {
  #hero-poster { height: 140cqh; }
}
@media (max-width: 600px) {
  .hero-art { top: 210px; bottom: 0; }
  #hero-poster { height: calc(125cqh - 150px); top: calc(59% - 70.8px); left: 72%; }
}


/* Supplied balloon typography: reserved space and readable text fallback. */
.balloon-heading {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 4.6 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-size: clamp(2rem, 4vw, 4rem);
}
.section-top > div, .about-grid > div, .strength > div { min-width: 0; }
.section-top > div { flex: 1; }
.balloon-heading img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(-50%);
  opacity: 0;
  mix-blend-mode: normal;
}
.balloon-heading.image-ready img { opacity: 1; }
.balloon-heading.image-ready > .heading-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.balloon-stat { aspect-ratio: 3 / 1; max-width: 490px; }
.balloon-stat > .heading-text { font-size: inherit; letter-spacing: inherit; margin: 0; }
@media (max-width: 600px) {
  .balloon-heading { width: 100%; font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .balloon-stat { max-width: 350px; }
}

@media (max-width: 959px) {
  .section-top { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .section-top > div { width: 100%; }
}

/* Genuine alpha assets: no blend-mode or image-wide opacity simulation. */
.balloon-heading { overflow: visible; }
.balloon-heading img { mix-blend-mode: normal; }
#contact { position: relative; overflow: clip; isolation: isolate; }
#contact::before {
  content: ""; position: absolute; z-index: -1; inset: 12% -15% -50%;
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(ellipse, #adcadd30, #d8c6e317 45%, transparent 70%);
}
#contact .button { transition: transform .25s ease, box-shadow .25s ease, background .2s; }
#contact .button:hover { transform: translateY(-2px); box-shadow: 0 8px 22px #2b4c671c; }
@media (prefers-reduced-motion: reduce) {
  [data-scroll-effect], .balloon-stat, .work-grid .media-frame img { transform: none !important; translate: none !important; scale: none !important; opacity: 1 !important; }
  #contact .button:hover { transform: none; box-shadow: none; }
}

.balloon-stat { aspect-ratio: 1832 / 676; }

/* Images and text remain available even if the enhancement script never runs. */
.balloon-heading img { opacity: 1; }
.balloon-heading > .heading-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.balloon-heading.image-error img { display: none; }
.balloon-heading.image-error > .heading-text {
  position: static; width: auto; height: auto; margin: 0;
  overflow: visible; clip-path: none; white-space: normal;
}

/* Organic transparent illustrations stay outside rectangular photo treatments. */
.media-frame.media-illustration {
  aspect-ratio: 1 / 1;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.media-frame.media-illustration img {
  width: 100%; height: 100%; object-fit: contain;
}
.strength-photo .media-illustration {
  max-width: 900px; margin-inline: auto; aspect-ratio: 3 / 2;
}
.about-visual .media-illustration { aspect-ratio: 1 / 1; }
.process-grid article h3 { margin-top: 12px; }
@media (max-width: 600px) {
  .process-grid { gap: 34px; }
  .strength-photo .media-illustration { aspect-ratio: 1 / 1; }
  .contact .button { max-width: 100%; overflow-wrap: anywhere; }
}

/* CMS gallery only: category-only cards, progressive batches and safe controls. */
.work-more, .works-retry { display: flex; margin: 36px auto 0; cursor: pointer; }
.work-more[hidden], .works-retry[hidden], .video-external[hidden] { display: none; }
.work-youtube-thumbnail { aspect-ratio: 16 / 9 !important; }
.work-youtube-thumbnail img { object-fit: cover; }
.video-loading { font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.video-loading:empty { display: none; }
.video-external { display: inline-block; padding: 14px 0; text-decoration: underline; font-size: .875rem; }
.video-player { min-height: 200px; }
.work-card:has(.work-youtube-thumbnail) .work-category { margin-top: 18px; font-size: .9375rem; }

.work-filters button { max-width: 100%; overflow-wrap: anywhere; }
.work-category { overflow-wrap: anywhere; }

/* Horizontal works rail: native touch scrolling with a deliberate next-card peek. */
.work-grid.work-track {
  display: flex; gap: 24px; width: 100%; min-width: 0;
  overflow-x: auto; overflow-y: hidden; padding: 12px 2px 18px;
  scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #9fb3c4 transparent;
}
.work-track > .work-card {
  flex: 0 0 calc((100% - 48px) / 2.75); min-width: 0;
  scroll-snap-align: start; border-radius: 14px;
}
.work-track .work-play, .work-track .media-frame { border-radius: 14px; }
.work-grid.work-track.is-empty { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; }
.work-rail-controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.work-rail-controls[hidden] { display: none; }
.work-rail-position { margin-right: 10px; color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.work-arrow { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #a9bdcd; border-radius: 50%; background: #f7f9fa; color: var(--text); font-size: 1.2rem; cursor: pointer; transition: background .2s; }
.work-arrow:hover:not(:disabled) { background: #d7e3eb; }
.work-arrow:disabled { opacity: .35; cursor: default; }
@media (max-width: 600px) {
  .work-grid.work-track { gap: 16px; }
  .work-track > .work-card { flex-basis: calc((100% - 16px) / 1.18); }
  .work-rail-controls { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .work-track { scroll-behavior: auto; } }

.related-description { max-width: 42em; margin-top: 12px; color: var(--muted); font-size: .875rem; line-height: 1.8; }
