@font-face {
  font-family: "Yomogi Quuma Works";
  src: url("assets/fonts/yomogi-quuma-works.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --works-font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --works-night: #080b16;
  --works-navy: #102945;
  --works-ink: #14314a;
  --works-muted: #5b7182;
  --works-paper: #f8fbfd;
  --works-gold: #e5c681;
  --works-violet: #ac79e8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--works-ink); background: var(--works-paper); font-family: var(--works-font); font-synthesis: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #60aaff; outline-offset: 5px; }
.works-skip { position: fixed; z-index: 100; top: -70px; left: 20px; padding: 12px 20px; background: #fff; color: var(--works-night); text-decoration: none; }
.works-skip:focus { top: 15px; }

.works-header { position: fixed; z-index: 40; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; height: 76px; padding: 0 clamp(22px, 4.4vw, 82px); border-bottom: 1px solid #ffffff2a; background: #080b16c9; color: #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.works-brand { display: inline-flex; align-items: baseline; gap: 14px; font-size: 28px; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.works-brand span { font-size: 11px; letter-spacing: .03em; }
.works-header nav { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 52px); }
.works-header nav a { font-size: 13px; text-decoration: none; white-space: nowrap; }
.works-header nav a:not(.works-header-contact):hover, .works-header nav a[aria-current="page"] { color: var(--works-gold); }
.works-header-contact { display: inline-flex; justify-content: space-between; align-items: center; gap: 44px; min-width: 155px; padding: 11px 17px; border: 1px solid #e5c6819c; border-radius: 60px; }
.works-header-contact:hover { background: var(--works-gold); color: var(--works-night); }

.works-kicker { margin: 0; color: #2675ae; font-size: 12px; letter-spacing: .2em; }
.works-intro { position: relative; display: flex; align-items: center; min-height: 92svh; padding: 145px clamp(30px, 8vw, 145px) 100px; overflow: hidden; isolation: isolate; background: var(--works-night); color: #fff; }
.works-intro::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse 48% 70% at 88% 55%, #7445ae45, transparent 72%), radial-gradient(ellipse 50% 70% at 42% 105%, #c5a06024, transparent 75%), linear-gradient(130deg, #050812, #111221 70%, #0a0c17); }
.works-intro::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .24; background: linear-gradient(100deg, transparent 49.95%, #ffffff18 50%, transparent 50.05%) center / 120px 120px, linear-gradient(transparent 49.95%, #ffffff18 50%, transparent 50.05%) center / 120px 120px; mask-image: linear-gradient(90deg, transparent 15%, #000); }
.works-intro-glow { position: absolute; z-index: -1; right: 4%; top: 50%; width: min(43vw, 620px); aspect-ratio: 1; border: 1px solid #cfa6f77a; border-radius: 50%; box-shadow: 0 0 120px #8852b72b, inset 0 0 100px #e8bdff0d; transform: translateY(-50%) rotate(-25deg); animation: works-glow 12s ease-in-out infinite alternate; }
.works-intro-glow::before, .works-intro-glow::after { content: ""; position: absolute; inset: 11%; border: 1px solid #e2c58758; border-radius: 50%; transform: rotate(45deg) scaleY(.74); }
.works-intro-glow::after { inset: 22%; border-color: #bf9ff458; transform: rotate(-42deg) scaleY(1.15); }
@keyframes works-glow { from { opacity: .6; transform: translateY(-50%) rotate(-25deg) scale(.96); } to { opacity: 1; transform: translateY(-50%) rotate(-12deg) scale(1.03); } }
.works-intro-inner { position: relative; z-index: 2; width: min(100%, 1100px); }
.works-intro .works-kicker { display: flex; align-items: center; gap: 18px; color: var(--works-gold); }
.works-intro .works-kicker span { width: 42px; height: 1px; background: currentColor; }
.works-intro h1 { margin: 38px 0 26px; font-size: clamp(57px, 7.2vw, 118px); font-weight: 400; line-height: 1.24; letter-spacing: -.055em; }
.works-intro h1 em { color: #e4d2f4; font-style: normal; }
.works-intro-copy { max-width: 670px; margin: 0; color: #d0d1dd; font-size: clamp(16px, 1.35vw, 20px); line-height: 2; }
.works-intro-scroll { display: inline-flex; align-items: center; gap: 38px; margin-top: 55px; padding: 12px 0; border-bottom: 1px solid #e5c681a8; color: var(--works-gold); font-size: 13px; text-decoration: none; }
.works-intro-scroll span { font-size: 24px; line-height: 1; }
.works-intro-scroll:hover { gap: 54px; }
.works-intro-count { position: absolute; right: clamp(30px, 8vw, 145px); bottom: 65px; display: flex; align-items: baseline; gap: 18px; color: #ffffff90; }
.works-intro-count strong { color: #fff; font-size: clamp(62px, 6vw, 104px); font-weight: 400; line-height: 1; }
.works-intro-count span { font-size: 11px; letter-spacing: .16em; line-height: 1.8; }

.works-products, .works-other { padding: clamp(90px, 11vw, 170px) clamp(26px, 7vw, 120px); }
.works-products { background: #f8fbfd; }
.works-other { background: #e9f2f7; }
.works-web { padding: clamp(90px, 11vw, 150px) 0 clamp(90px, 11vw, 150px); overflow: hidden; background: #eef6fa; }
.works-web-shell > .works-section-heading,
.works-web-controls { width: calc(100% - 2 * clamp(26px, 7vw, 120px)); }
.works-web-shell > .works-section-heading { margin-bottom: 32px; }
.works-web-controls { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: 1360px; margin: 0 auto 28px; }
.works-web-controls p { margin: 0; color: #276e9e; font-size: 12px; letter-spacing: .13em; }
.works-web-position { display: inline-block; margin-left: 18px; color: var(--works-ink); font-size: 19px; letter-spacing: .04em; }
.works-web-controls > div { display: flex; gap: 9px; }
.works-web-controls button { width: 49px; height: 49px; border: 1px solid #91afc3; border-radius: 50%; background: #fff; color: #153957; font: 25px var(--works-font); cursor: pointer; transition: background-color .2s, color .2s; }
.works-web-controls .works-web-toggle { font-size: 19px; }
.works-web-controls button:hover:not(:disabled),
.works-web-controls button:focus-visible { background: #153957; color: #fff; }
.works-web-controls button:disabled { opacity: .35; cursor: default; }
.works-web-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(340px, 43vw, 680px); gap: clamp(16px, 2vw, 30px); overflow-x: auto; overscroll-behavior-inline: contain; scroll-padding-inline: max(clamp(26px, 7vw, 120px), calc((100vw - 1360px) / 2)); padding: 0 max(clamp(26px, 7vw, 120px), calc((100vw - 1360px) / 2)) 25px; scrollbar-color: #93aec1 transparent; scrollbar-width: thin; }
.works-web-item { min-width: 0; margin: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid #cadbe6; border-radius: 14px; background: #fff; box-shadow: 0 16px 40px #17395213; }
.works-web-item > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.works-web-item > a:focus-visible { outline: 3px solid #2775a7; outline-offset: -3px; }
.works-web-item img { display: block; width: 100%; aspect-ratio: 1280 / 860; object-fit: contain; background: #e1eaf0; }
.works-web-item:first-child img { background: #080a16; }
.works-web-item figcaption { display: flex; flex-direction: column; gap: 5px; min-height: 180px; padding: 22px 26px 26px; }
.works-web-item figcaption span { color: #2775a7; font-size: 11px; letter-spacing: .15em; }
.works-web-item figcaption strong { font-size: clamp(23px, 2vw, 31px); font-weight: 400; line-height: 1.4; }
.works-web-item figcaption small { color: var(--works-muted); font-size: 13px; }
.works-web-item figcaption b { align-self: flex-start; margin-top: auto; padding-top: 14px; border-bottom: 1px solid currentColor; color: #1d669a; font-size: 13px; font-weight: 700; }
.works-web-item figcaption b span { margin-left: 7px; color: inherit; font-size: 16px; letter-spacing: 0; }
.works-web-item > a:hover figcaption b { color: #0f3c5e; }
.works-web-hint { display: flex; justify-content: flex-end; gap: 15px; max-width: 1360px; width: calc(100% - 2 * clamp(26px, 7vw, 120px)); margin: 16px auto 0; color: #58768a; font-size: 12px; }
.works-web-hint span { color: #2775a7; font-size: 21px; line-height: .8; }
.works-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 14px 50px; max-width: 1360px; margin: 0 auto 67px; }
.works-section-heading .works-kicker { grid-column: 1 / -1; }
.works-section-heading h2 { margin: 10px 0 0; font-size: clamp(39px, 4.4vw, 72px); font-weight: 400; line-height: 1.3; letter-spacing: -.045em; }
.works-section-heading > p:last-child { align-self: end; margin: 0 0 10px; color: var(--works-muted); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.9; }
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 32px); max-width: 1360px; margin: 0 auto; }
.work-card { min-width: 0; overflow: hidden; border: 1px solid #d2e1eb; border-radius: 15px; background: #fff; box-shadow: 0 18px 55px #183c5711; }
.work-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.work-card a:hover .work-card-link span, .work-card a:focus-visible .work-card-link span { transform: translate(5px, -5px); }
.work-card a:hover .work-card-graphic strong, .work-card a:focus-visible .work-card-graphic strong { transform: scale(1.045); }
.work-card a:hover .work-card-image img, .work-card a:focus-visible .work-card-image img { transform: scale(1.045); }
.work-card-featured { grid-column: 1 / -1; min-height: 570px; border-color: #1b3760; background: #112a4a; color: #fff; }
.work-card-featured a { display: grid; grid-template-columns: 1fr 1fr; }
.work-card-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: clamp(30px, 3.6vw, 56px); }
.work-card-meta { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 0 0 32px; color: #3372aa; font-size: 11px; letter-spacing: .14em; }
.work-card-meta span { color: #7a90a0; letter-spacing: .02em; }
.work-card h3 { margin: 0 0 22px; font-size: clamp(32px, 3.3vw, 53px); font-weight: 400; line-height: 1.3; letter-spacing: -.045em; }
.work-card-copy > p:not(.work-card-meta) { max-width: 440px; margin: 0; color: #49697c; font-size: clamp(15px, 1.18vw, 18px); line-height: 1.85; }
.work-card-link { display: flex; justify-content: space-between; align-items: center; gap: 18px; width: 100%; margin-top: auto; padding-top: 28px; border-top: 1px solid #c8d8e2; color: #1a5d93; font-size: 13px; }
.work-card-link span { font-size: 28px; line-height: 1; transition: transform .35s ease; }
.work-card-featured .work-card-copy { padding: clamp(42px, 5vw, 78px); }
.work-card-featured .work-card-meta, .work-card-featured .work-card-meta span { color: #d8d6ee; }
.work-card-featured h3 { font-size: clamp(56px, 5vw, 82px); }
.work-card-featured .work-card-copy > p:not(.work-card-meta) { color: #e4ecf7; font-size: clamp(17px, 1.45vw, 21px); }
.work-card-featured .work-card-link { border-color: #ffffff50; color: #fff; }
.work-card-graphic, .work-card-image { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; height: clamp(265px, 27vw, 390px); overflow: hidden; background: #ecf4f9; }
.work-card-featured .work-card-graphic { height: 100%; min-height: 570px; }
.work-card-graphic::before { content: ""; position: absolute; inset: 0; opacity: .28; background: linear-gradient(90deg, transparent 49.9%, currentColor 50%, transparent 50.1%) center / 72px 72px, linear-gradient(transparent 49.9%, currentColor 50%, transparent 50.1%) center / 72px 72px; }
.work-card-graphic strong { position: relative; z-index: 1; font-size: clamp(52px, 6vw, 110px); font-weight: 400; line-height: 1.1; letter-spacing: -.07em; text-align: center; transition: transform .5s ease; }
.work-card-graphic small { position: absolute; z-index: 1; bottom: 24px; font-size: 10px; letter-spacing: .2em; }
.graphic-ryoiku { color: #adccf7; background: radial-gradient(circle at 65% 42%, #48699b 0, #234572 32%, #10243f 72%); }
.graphic-ryoiku strong { color: #fff; font-size: clamp(68px, 6.5vw, 118px); }
.graphic-ryoiku strong span { color: #c2b1fb; }
.graphic-orbit { position: absolute; width: min(62%, 420px); aspect-ratio: 1; border: 1px solid #b5d9ff8c; border-radius: 50%; box-shadow: 0 0 60px #b5d9ff44, inset 0 0 60px #b5d9ff2a; transform: rotate(-24deg) scaleY(.74); }
.graphic-145m { color: #9dd4db; background: radial-gradient(circle at 25% 10%, #5eb0bd55, transparent 50%), #114453; }
.graphic-145m strong { color: #fff; }
.graphic-145m strong span { color: #9de5de; }
.graphic-plus { color: #cad4fa; background: radial-gradient(circle at 75% 18%, #808de368, transparent 48%), #162b5b; }
.graphic-plus strong { color: #fff; font-size: clamp(54px, 5vw, 90px); }
.graphic-stamp { color: #f2d2bd; background: radial-gradient(circle at 65% 25%, #e0b9957a, transparent 45%), #733e43; }
.graphic-stamp strong { color: #fff; font-size: clamp(43px, 4.8vw, 80px); }
.graphic-order { color: #d1e0d3; background: radial-gradient(circle at 30% 15%, #88b49b6b, transparent 45%), #315445; }
.graphic-order strong { color: #fff; }
.work-card-image { background: #e5edf3; }
.work-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.work-card-attendance .work-card-image img { object-position: center 44%; }

.works-other-list { max-width: 1360px; margin: 0 auto; border-top: 1px solid #a7c1d0; }
.works-other-list a { display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(180px, .7fr) 38px; align-items: center; gap: 24px; min-height: 125px; padding: 20px 8px; border-bottom: 1px solid #a7c1d0; text-decoration: none; }
.works-other-list a:hover { background: #ffffff9c; }
.works-other-list a > span { color: #2870a7; font-size: 11px; letter-spacing: .16em; }
.works-other-list strong { font-size: clamp(22px, 2vw, 31px); font-weight: 400; }
.works-other-list small { color: var(--works-muted); font-size: 14px; }
.works-other-list i { color: #2870a7; font-size: 29px; font-style: normal; text-align: right; transition: transform .3s ease; }
.works-other-list a:hover i { transform: translate(5px, -5px); }
.works-contact { display: grid; justify-items: center; padding: clamp(95px, 10vw, 150px) 26px; background: #102a48; color: #fff; text-align: center; }
.works-contact .works-kicker { color: var(--works-gold); }
.works-contact h2 { margin: 24px 0 32px; font-size: clamp(42px, 5vw, 78px); font-weight: 400; line-height: 1.35; }
.works-contact > a { display: inline-flex; justify-content: space-between; align-items: center; gap: 50px; min-width: 245px; padding: 17px 22px; border-radius: 50px; background: #fff; color: var(--works-navy); font-size: 14px; text-decoration: none; }
.works-contact > a:hover { background: var(--works-gold); }
.works-contact > a span { font-size: 25px; }
.works-footer { display: flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 110px; padding: 24px clamp(26px, 7vw, 120px); background: #080b16; color: #fff; }
.works-footer span { font-size: 28px; }
.works-footer a { font-size: 13px; text-decoration: none; }
.works-footer a:hover { color: var(--works-gold); }

/* Each detail page uses the previous Quuma visual as a cinematic entrance. */
.case-journey { height: 270svh; min-height: 1400px; background: var(--works-night); }
.case-hero { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 50% 55%, #3c1a66, #080b16 72%); color: #fff; }
.case-hero-art { position: absolute; z-index: -2; inset: 0; display: block; transform: scale(var(--case-zoom, 1.03)); transform-origin: 50% 52%; will-change: transform; mask-image: radial-gradient(ellipse 53% 64% at 67% 53%, #000 35%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 53% 64% at 67% 53%, #000 35%, transparent 78%); }
.case-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.case-hero-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #070b18e8 0%, #070b18c1 29%, #080b164f 56%, #080b1612 78%), linear-gradient(0deg, #080b1699, transparent 28%, transparent 78%, #080b1666); opacity: var(--case-shade-opacity, 1); }
.case-hero-content { position: absolute; left: clamp(30px, 8vw, 145px); top: 50%; width: min(750px, 52vw); transform: translateY(calc(-50% + var(--case-copy-y, 0px))); opacity: var(--case-copy-opacity, 1); }
.case-kicker { display: flex; align-items: center; gap: 18px; margin: 0 0 33px; color: var(--works-gold); font-size: 12px; letter-spacing: .2em; }
.case-kicker::before { content: ""; width: 45px; height: 1px; background: currentColor; }
.case-hero h1 { margin: 0; font-size: clamp(58px, 6.4vw, 106px); font-weight: 400; line-height: 1.22; letter-spacing: -.055em; text-wrap: balance; }
.case-hero-message { position: absolute; left: 50%; top: 17%; width: min(900px, calc(100% - 80px)); transform: translate(-50%, var(--case-message-y, 24px)); opacity: var(--case-message-opacity, 0); text-align: center; }
.case-hero-message-label { margin: 0 0 20px; color: var(--works-gold); font-size: 12px; letter-spacing: .24em; }
.case-hero-lead { margin: 0; color: #fff; font-size: clamp(32px, 3.6vw, 58px); line-height: 1.5; text-wrap: balance; text-shadow: 0 4px 35px #080b16; }
.case-hero-content h1 { animation: case-title-enter 1.1s both; }
.case-kicker { animation: case-title-enter .9s .08s both; }
@keyframes case-title-enter { from { opacity: 0; filter: blur(8px); transform: translateY(24px); } to { opacity: 1; filter: blur(0); transform: none; } }
.case-hero-index { position: absolute; right: clamp(30px, 5vw, 85px); bottom: 50px; margin: 0; color: #ffffffb0; font-size: 12px; letter-spacing: .16em; }
.case-scroll-cue { position: absolute; left: 50%; bottom: 29px; display: flex; flex-direction: column; align-items: center; gap: 12px; transform: translateX(-50%); color: #ffffffc2; font-size: 10px; letter-spacing: .22em; white-space: nowrap; }
.case-scroll-cue i { display: block; width: 1px; height: 40px; background: linear-gradient(transparent, var(--works-gold)); animation: case-cue 2.2s ease-in-out infinite; }
@keyframes case-cue { 0%, 100% { opacity: .35; transform: scaleY(.58); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); transform-origin: top; } }
.case-story, .case-features, .case-preview { padding: clamp(95px, 10vw, 155px) clamp(26px, 8vw, 145px); }
.case-story { position: relative; z-index: 2; background: #f8fbfd; }
.case-story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 125px); max-width: 1370px; margin: 0 auto; }
.case-story-heading h2 { margin: 22px 0 0; font-size: clamp(43px, 4.6vw, 74px); font-weight: 400; line-height: 1.3; letter-spacing: -.05em; text-wrap: balance; }
.case-story-intro > p { margin: 0 0 42px; font-size: clamp(19px, 1.65vw, 25px); line-height: 1.95; }
.case-facts { display: grid; grid-template-columns: 120px 1fr; gap: 0 22px; margin: 0; border-top: 1px solid #b5cad8; }
.case-facts dt, .case-facts dd { margin: 0; padding: 21px 0; border-bottom: 1px solid #b5cad8; font-size: 15px; line-height: 1.65; }
.case-facts dt { color: #3179ae; }
.case-facts dd { color: #3a596d; }
.case-external { display: inline-flex; align-items: center; min-height: 50px; margin-top: 25px; padding: 10px 20px; border: 1px solid #3179ae; border-radius: 50px; color: #1d6093; font-size: 14px; text-decoration: none; }
.case-external:hover { background: #1d6093; color: #fff; }
.case-features { background: #e9f2f7; }
.case-section-head { max-width: 1370px; margin: 0 auto 60px; }
.case-section-head h2 { margin: 18px 0 0; font-size: clamp(42px, 4.5vw, 72px); font-weight: 400; line-height: 1.3; }
.case-features ol { max-width: 1370px; margin: 0 auto; padding: 0; list-style: none; border-top: 1px solid #a7c1d0; }
.case-features li { display: grid; grid-template-columns: 100px 1fr; gap: 25px; padding: 28px 0; border-bottom: 1px solid #a7c1d0; }
.case-features li span { color: #2b75a9; font-size: 25px; }
.case-features li p { max-width: 900px; margin: 0; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.75; }
.case-preview { background: #f8fbfd; }
.case-preview[hidden] { display: none; }
.case-preview figure { max-width: 1240px; margin: 0 auto; }
.case-preview img { display: block; width: 100%; height: auto; border: 1px solid #d0dce4; border-radius: 12px; box-shadow: 0 28px 60px #24445c25; }
.case-preview figcaption { margin-top: 17px; color: var(--works-muted); font-size: 13px; line-height: 1.7; }
.case-next { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding: clamp(80px, 9vw, 130px) clamp(26px, 8vw, 145px); background: #112a4a; color: #fff; }
.case-next .works-kicker { color: var(--works-gold); }
.case-next h2 { margin: 22px 0 0; font-size: clamp(42px, 4.5vw, 70px); font-weight: 400; }
.case-next a { display: flex; justify-content: space-between; align-items: center; gap: 55px; min-width: min(100%, 380px); padding: 16px 2px; border-bottom: 1px solid #ffffffaa; font-size: clamp(17px, 1.5vw, 22px); text-decoration: none; }
.case-next a:hover { color: var(--works-gold); }
.case-next a span:last-child { font-size: 30px; }
.case-not-found { min-height: 100svh; padding: 25svh 8vw 12svh; background: #102a48; color: #fff; }
.case-not-found h1 { font-size: clamp(38px, 5vw, 70px); font-weight: 400; }
.case-not-found a { color: var(--works-gold); }

@media (max-width: 900px) {
  .works-section-heading { grid-template-columns: 1fr; }
  .works-section-heading > p:last-child { max-width: 550px; }
  .work-card-featured { min-height: 500px; }
  .work-card-featured .work-card-graphic { min-height: 500px; }
  .works-other-list a { grid-template-columns: 82px 1fr 28px; }
  .works-other-list small { grid-column: 2; grid-row: 2; margin-top: -8px; }
  .works-other-list i { grid-column: 3; grid-row: 1 / span 2; }
  .case-story-inner { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .works-header { height: 69px; padding: 0 20px; }
  .works-brand { font-size: 24px; }
  .works-brand span, .works-header nav a:first-child, .works-header-contact { display: none; }
  .works-header nav { gap: 16px; }
  .works-header nav a { font-size: 12px; }
  .works-intro { min-height: 100svh; padding: 125px 24px 100px; }
  .works-intro-glow { right: -42%; top: 55%; width: 95vw; opacity: .45; }
  .works-intro h1 { margin-top: 30px; font-size: clamp(47px, 10vw, 70px); }
  .works-intro-copy { font-size: 15px; }
  .works-intro-copy br { display: none; }
  .works-intro-scroll { margin-top: 38px; }
  .works-intro-count { right: 24px; bottom: 28px; }
  .works-intro-count strong { font-size: 54px; }
  .works-intro-count span { font-size: 8px; }
  .works-products, .works-other { padding: 85px 18px; }
  .works-web { padding: 85px 0; }
  .works-web-shell > .works-section-heading,
  .works-web-controls,
  .works-web-hint { width: calc(100% - 36px); }
  .works-web-controls { margin-bottom: 20px; }
  .works-web-controls button { width: 43px; height: 43px; }
  .works-web-position { display: block; margin: 4px 0 0; }
  .works-web-rail { grid-auto-columns: min(78vw, 340px); gap: 14px; scroll-padding-inline: 18px; padding: 0 18px 20px; }
  .works-web-item figcaption { min-height: 177px; padding: 17px 18px 20px; }
  .works-web-item figcaption strong { font-size: 21px; }
  .works-web-item figcaption small { font-size: 12px; }
  .works-web-hint { justify-content: flex-start; line-height: 1.6; }
  .works-section-heading { margin-bottom: 44px; }
  .works-section-heading h2 { font-size: clamp(37px, 9vw, 57px); }
  .works-grid { grid-template-columns: 1fr; gap: 18px; }
  .work-card-featured { grid-column: auto; min-height: 0; }
  .work-card-featured a { display: flex; flex-direction: column-reverse; }
  .work-card-featured .work-card-graphic { height: 300px; min-height: 0; }
  .work-card-featured .work-card-copy { min-height: 310px; padding: 28px; }
  .work-card-featured h3 { font-size: 48px; }
  .work-card-graphic, .work-card-image { height: 250px; }
  .work-card-copy { min-height: 260px; padding: 26px; }
  .work-card-meta { margin-bottom: 18px; }
  .work-card h3 { font-size: 35px; }
  .work-card-copy > p:not(.work-card-meta) { font-size: 15px; }
  .works-other-list a { grid-template-columns: 1fr 28px; gap: 5px 12px; min-height: 112px; }
  .works-other-list a > span { grid-column: 1; }
  .works-other-list strong { grid-column: 1; font-size: 22px; }
  .works-other-list small { grid-column: 1; grid-row: auto; margin-top: 0; font-size: 12px; }
  .works-other-list i { grid-column: 2; grid-row: 1 / span 3; }
  .works-footer { min-height: 90px; }
  .case-journey { height: 230svh; min-height: 1100px; }
  .case-hero { min-height: 0; }
  .case-hero-art { transform-origin: 50% 70%; mask-image: radial-gradient(ellipse 58% 60% at 50% 52%, #000 35%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 58% 60% at 50% 52%, #000 35%, transparent 78%); }
  .case-hero-art img { object-position: center; }
  .case-hero-shade { background: linear-gradient(180deg, #080b16dd 0%, #080b1699 30%, #080b1629 58%, #080b1673 100%); }
  .case-hero-content { top: 23%; left: 24px; width: calc(100% - 48px); transform: translateY(var(--case-copy-y, 0px)); }
  .case-kicker { margin-bottom: 20px; font-size: 10px; }
  .case-kicker::before { width: 28px; }
  .case-hero h1 { max-width: 10em; font-size: clamp(43px, 10vw, 62px); line-height: 1.3; }
  .case-hero-message { top: 15%; width: calc(100% - 36px); }
  .case-hero-message-label { margin-bottom: 10px; font-size: 10px; }
  .case-hero-lead { font-size: clamp(26px, 6.7vw, 38px); line-height: 1.5; }
  .case-hero-index { right: 20px; bottom: 22px; font-size: 10px; }
  .case-scroll-cue { display: none; }
  .case-story, .case-features, .case-preview { padding: 88px 24px; }
  .case-story-heading h2, .case-section-head h2 { font-size: clamp(38px, 9vw, 56px); }
  .case-story-intro > p { font-size: 18px; }
  .case-facts { grid-template-columns: 90px 1fr; gap: 0 15px; }
  .case-facts dt, .case-facts dd { font-size: 13px; }
  .case-features li { grid-template-columns: 43px 1fr; gap: 10px; padding: 21px 0; }
  .case-features li span { font-size: 19px; }
  .case-features li p { font-size: 18px; }
  .case-next { display: block; padding: 90px 24px; }
  .case-next h2 { font-size: 42px; }
  .case-next a { margin-top: 38px; }
}

@media (max-width: 400px) {
  .works-intro h1 { font-size: 42px; }
  .case-hero h1 { font-size: 39px; }
  .case-hero-lead { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .case-journey { height: 100svh; min-height: 560px; }
  .case-hero { position: relative; }
  .case-hero-art { transform: none; will-change: auto; }
  .case-hero-content { opacity: 1; }
  .case-hero-message { top: auto; bottom: 11%; transform: translateX(-50%); opacity: 1; }
  .case-hero-lead { font-size: clamp(18px, 2vw, 26px); }
}

/* Product pages begin with the work itself. The Q cinematic remains on the old-site case only. */
.case-hero-art[hidden], .case-product-visual[hidden] { display: none; }
.case-product-visual { position: absolute; z-index: -2; inset: 0; display: flex; justify-content: flex-end; align-items: center; overflow: hidden; background: radial-gradient(circle at 74% 50%, #315f8d, #153b61 42%, #0b203b 78%); }
.case-product-visual strong { display: block; margin-right: 5%; color: #d0e4ff1b; font-size: clamp(270px, 32vw, 590px); font-weight: 400; line-height: 1; letter-spacing: -.12em; }
.case-static-product .case-journey { height: 100svh; min-height: 650px; }
.case-static-product .case-hero { position: relative; min-height: 0; background: #102c4e; }
.case-static-product .case-hero-shade { background: linear-gradient(90deg, #0a203ad9, #0a203a66 64%, transparent); opacity: 1; }
.case-static-product .case-hero-content { top: 43%; left: clamp(30px, 8vw, 145px); width: min(900px, 70vw); transform: translateY(-50%); opacity: 1; }
.case-static-product .case-hero h1 { font-size: clamp(58px, 6vw, 102px); }
.case-static-product .case-hero-message { top: auto; bottom: 15%; left: clamp(30px, 8vw, 145px); width: min(850px, 70vw); transform: none; opacity: 1; text-align: left; }
.case-static-product .case-hero-lead { font-size: clamp(28px, 2.5vw, 43px); }
.case-static-product .case-scroll-cue { display: none; }
@media (max-width: 700px) {
  .case-product-visual { background: radial-gradient(circle at 56% 58%, #346ea0, #153b61 56%, #0b203b 90%); }
  .case-product-visual strong { margin-right: 7%; font-size: clamp(230px, 70vw, 360px); }
  .case-static-product .case-journey { min-height: 560px; }
  .case-static-product .case-hero-shade { background: linear-gradient(180deg, #0a203ac4, #0a203a41 50%, #0a203ad8); }
  .case-static-product .case-hero-content { top: 30%; left: 24px; width: calc(100% - 48px); transform: translateY(-50%); }
  .case-static-product .case-hero h1 { font-size: clamp(40px, 10vw, 58px); }
  .case-static-product .case-hero-message { right: 24px; bottom: 14%; left: 24px; width: auto; }
  .case-static-product .case-hero-lead { font-size: clamp(25px, 6vw, 34px); }
}
@media (max-width: 400px) {
  .case-static-product .case-hero h1 { font-size: 39px; }
  .case-static-product .case-hero-lead { font-size: 25px; }
}

/* The works entrance uses the original four-second Q film before this view. */
html.works-opening-active { overflow: hidden; }
.works-opening { display: none; }
.works-opening-active .works-opening { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; overflow: hidden; background: #000; }
.works-opening.is-done { opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.works-opening-video { display: block; width: calc(100% - clamp(24px, 7vmin, 96px)); height: calc(100svh - clamp(24px, 7vmin, 96px)); object-fit: contain; background: #000; }
.works-opening-skip { position: absolute; right: clamp(20px, 3vw, 52px); bottom: clamp(20px, 3vw, 52px); padding: 12px 16px; border: 1px solid #ffffff70; border-radius: 3px; background: #080b168c; color: #fff; font: 13px var(--works-font); letter-spacing: .07em; cursor: pointer; }
.works-opening-skip:hover, .works-opening-skip:focus-visible { border-color: #e5c681; background: #181521; }

.works-page .works-header { right: auto; left: 50%; width: min(100%, 1500px); height: 78px; padding: 0 24px; transform: translateX(-50%); border: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.works-page .works-header.is-scrolled { border-bottom: 1px solid #ffffff27; border-radius: 0 0 16px 16px; background: #080b16e9; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.works-page .works-brand { align-items: center; gap: 10px; font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; font-size: 20px; font-weight: 700; letter-spacing: .09em; }
.works-page .works-brand img { display: block; width: 29px; height: 29px; }
.works-page .works-brand span { margin-left: 7px; padding-left: 13px; border-left: 1px solid #ffffff55; color: #e5c681; font-size: 9px; font-weight: 400; letter-spacing: .17em; }
.works-page .works-header nav { gap: 0; }
.works-page .works-header nav a:not(.works-header-contact) { display: flex; align-items: center; min-height: 43px; padding: 0 18px; border-top: 1px solid #ffffff15; border-bottom: 1px solid #ffffff15; background: #151824bf; }
.works-page .works-header nav a:first-child { border-left: 1px solid #ffffff15; border-radius: 24px 0 0 24px; }
.works-page .works-header nav a:nth-child(2) { border-right: 1px solid #ffffff15; border-radius: 0 24px 24px 0; }
.works-page .works-header-contact { min-width: 177px; min-height: 43px; margin-left: 14px; padding: 10px 20px; background: #080b16a8; }

.works-page .works-intro { min-height: 100svh; padding: 125px max(30px, calc((100vw - 1190px) / 2)) 88px; background: #080b16; color: #fff; }
.works-intro-art { position: absolute; z-index: -2; inset: 0; display: block; overflow: hidden; }
.works-intro-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.works-intro-art img { transform-origin: 68% 52%; animation: works-q-enter 1.8s cubic-bezier(.16,.8,.22,1) both, works-list-q-float 8s ease-in-out 1.8s infinite alternate; }
.works-intro-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 77% 29%, #fff8dc8c, transparent 3%), radial-gradient(circle at 65% 72%, #caa5ff66, transparent 4%); mix-blend-mode: screen; animation: works-list-q-glow 5s ease-in-out infinite alternate; }
@keyframes works-q-enter { from { opacity: .35; transform: scale(1.13); filter: brightness(.55) saturate(.75); } to { opacity: 1; transform: scale(1.02); filter: brightness(1) saturate(1.03); } }
@keyframes works-list-q-float {
  from { transform: translate3d(0, 0, 0) scale(1.02); filter: brightness(1); }
  to { transform: translate3d(-1.2%, .8%, 0) scale(1.05); filter: brightness(1.13); }
}
@keyframes works-list-q-glow { from { opacity: .2; transform: translate3d(0, 0, 0); } to { opacity: .9; transform: translate3d(-2%, 3%, 0); } }
.works-intro-lights { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.works-intro-lights span { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fffbea; box-shadow: 0 0 10px 4px #fff3cf, 0 0 32px 13px #e4bffd9c, 0 0 78px 25px #a971ed6b; opacity: 0; will-change: transform, opacity; }
.works-intro-lights span:nth-child(1) { top: 25%; left: 68%; animation: works-q-spark-one 6.5s 1.2s ease-in-out infinite; }
.works-intro-lights span:nth-child(2) { top: 70%; left: 77%; animation: works-q-spark-two 8s 2.3s ease-in-out infinite; }
.works-intro-lights span:nth-child(3) { top: 43%; left: 91%; animation: works-q-spark-three 7.4s 3s ease-in-out infinite; }
@keyframes works-q-spark-one { 0%, 100% { opacity: 0; transform: translate3d(-45px, 36px, 0) scale(.3); } 28% { opacity: .95; } 58% { opacity: .75; transform: translate3d(48px, -42px, 0) scale(1.1); } 78% { opacity: 0; transform: translate3d(90px, -75px, 0) scale(.3); } }
@keyframes works-q-spark-two { 0%, 100% { opacity: 0; transform: translate3d(-65px, 14px, 0) scale(.3); } 24% { opacity: .9; } 55% { opacity: .72; transform: translate3d(65px, -28px, 0) scale(1); } 78% { opacity: 0; transform: translate3d(118px, -55px, 0) scale(.3); } }
@keyframes works-q-spark-three { 0%, 100% { opacity: 0; transform: translate3d(35px, -30px, 0) scale(.3); } 25% { opacity: .85; } 56% { opacity: .65; transform: translate3d(-40px, 42px, 0) scale(1); } 78% { opacity: 0; transform: translate3d(-90px, 90px, 0) scale(.3); } }
.works-page .works-intro::before { display: block; background: linear-gradient(90deg, #070a16e8 0%, #070a1694 30%, #070a162a 56%, transparent 76%), linear-gradient(0deg, #070a164d, transparent 30%); }
.works-page .works-intro::after { display: none; }
.works-page .works-intro-inner { width: min(630px, 49vw); }
.works-page .works-intro-inner { animation: works-q-copy-enter 1s .38s ease-out both; }
.works-opening-active .works-intro-art img, .works-opening-active .works-intro-inner { animation-play-state: paused; }
.works-opening-reveal .works-intro-art img, .works-opening-reveal .works-intro-inner { animation-play-state: running; }
@keyframes works-q-copy-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.works-page .works-intro .works-kicker { color: #e5c681; }
.works-page .works-intro h1 { margin: 31px 0 22px; font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; font-size: clamp(52px, 4.7vw, 79px); font-weight: 800; line-height: 1.23; letter-spacing: -.045em; white-space: nowrap; }
.works-page .works-intro h1 span, .works-page .works-intro h1 em { display: inline-block; background: linear-gradient(100deg, #66a2ff 0%, #a66ae6 48%, #d4a5bd 72%, #e4c480 100%); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-style: normal; filter: drop-shadow(0 0 9px #9561d355); }
.works-page .works-intro h1 span { background: linear-gradient(100deg, #66a2ff 0%, #e4c480 34%, #a66ae6 76%, #d4a5bd 100%); background-clip: text; -webkit-background-clip: text; }
.works-intro-sub { margin: 0 0 36px; color: #e5c681; font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; font-size: clamp(17px, 1.25vw, 21px); font-weight: 700; letter-spacing: .04em; line-height: 1.5; }
.works-page .works-intro-copy { color: #b7bac7; font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; font-size: clamp(14px, 1vw, 16px); line-height: 2; }
.works-intro-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 48px; }
.works-intro-actions a { display: inline-flex; justify-content: center; align-items: center; min-width: 165px; min-height: 48px; padding: 10px 22px; border-radius: 2px; font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
.works-intro-actions a:hover { transform: translateY(-2px); }
.works-intro-action-primary { gap: 22px; background: #e5c681; color: #080b16; }
.works-intro-action-primary:hover { background: #f2d698; }
.works-intro-action-secondary { border: 1px solid #ffffff30; background: #080b162e; color: #fff; }
.works-intro-action-secondary:hover { border-color: #e5c681; background: #080b16a8; }
@media (max-width: 700px) {
  .works-page .works-header { height: 69px; padding: 0 20px; }
  .works-page .works-brand { gap: 7px; font-size: 21px; }
  .works-page .works-brand img { width: 24px; height: 24px; }
  .works-page .works-header nav a:nth-child(2) { padding: 0 14px; border-left: 1px solid #ffffff15; border-radius: 24px; }
  .works-opening-video { width: calc(100% - 24px); height: calc(100svh - 24px); }
  .works-page .works-intro { align-items: flex-start; min-height: 100svh; padding: 116px 24px 58px; }
  .works-intro-art img { object-position: center; }
  .works-intro-lights span:nth-child(1) { left: 39%; top: 49%; }
  .works-intro-lights span:nth-child(2) { left: 72%; top: 67%; }
  .works-intro-lights span:nth-child(3) { left: 80%; top: 38%; }
  .works-page .works-intro::before { background: linear-gradient(180deg, #070a16e5 0%, #070a16c9 30%, #070a168f 49%, #070a1617 69%, #070a1659 100%); }
  .works-page .works-intro-inner { width: 100%; }
  .works-page .works-intro h1 { margin: 23px 0 14px; font-size: clamp(39px, 10vw, 52px); }
  .works-intro-sub { margin-bottom: 16px; font-size: clamp(16px, 4.5vw, 21px); }
  .works-page .works-intro-copy { max-width: 340px; font-size: 13px; line-height: 1.65; text-wrap: balance; }
  .works-page .works-intro-copy br { display: none; }
  .works-intro-actions { gap: 10px; margin-top: 27px; }
  .works-intro-actions a { min-width: 0; min-height: 43px; padding: 9px 14px; font-size: 12px; }
  .case-static-product.case-long-title .case-hero h1 { max-width: none; font-size: clamp(29px, 8vw, 34px); }
}
@media (max-width: 359px) {
  .works-page .works-intro h1 { font-size: 36px; }
  .works-intro-actions { flex-direction: column; align-items: flex-start; }
  .works-intro-actions a { min-width: 182px; }
}
@media (prefers-reduced-motion: reduce) {
  .works-opening { display: none !important; }
  .works-intro-art img, .works-intro-art::after { animation: none; filter: none; }
  .works-intro-art::after { display: none; }
  .works-intro-lights { display: none; }
  .works-page .works-intro-inner { animation: none; }
  .works-web-rail { scroll-behavior: auto; scroll-snap-type: x mandatory; }
  .works-web-item { scroll-snap-align: start; }
  .works-web-item.is-duplicate { display: none; }
  .works-web-toggle { display: none !important; }
}

.work-card-app-screen { height: auto; aspect-ratio: 16 / 9; background: #eef1f4; }
.work-card-app-screen img { object-fit: contain; }
.work-card-featured .work-card-app-screen { height: 100%; aspect-ratio: auto; }
@media (max-width: 800px) {
  .work-card-featured .work-card-app-screen { height: auto; aspect-ratio: 16 / 9; }
}
