:root {
  --night: #080809;
  --night-raised: #111112;
  --on-night: #f8f7f3;
  --night-mute: #c2c0ba;
  --night-line: #343436;
  --paper: #f4f4f0;
  --carbon: #181818;
  --carbon-mute: #444440;
  --paper-line: #c6c6be;
  --seam: #f2efdd;
  --frame: 1328px;
  --edge: clamp(24px, 5.75vw, 92px);
  --section-space: clamp(96px, 11.35vw, 176px);
  --sans: "Hiragino Sans", "Noto Sans CJK JP", "Yu Gothic", YuGothic, Meiryo, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font: 400 100%/1.72 var(--sans);
  color: var(--on-night);
  background: var(--night);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; height: auto; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
main:focus:not(:focus-visible) { outline: none; }
::selection { background: #d4d6bd; color: #161711; }
.frame { width: min(calc(100% - 2 * var(--edge)), var(--frame)); margin-inline: auto; }
.skip { position: fixed; z-index: 9; top: 12px; left: 12px; transform: translateY(-180%); background: var(--on-night); color: var(--night); padding: 9px 15px; }
.skip:focus { transform: none; }
.micro { font: 450 .8125rem/1.4 var(--mono); letter-spacing: .115em; }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid #252526; }
.header-layout { min-height: 76px; display: flex; justify-content: space-between; align-items: center; column-gap: 24px; }
.brand { width: 115px; min-height: 44px; margin-left: -4px; display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { filter: invert(1); }
.site-header nav { display: flex; align-items: center; gap: clamp(8px, 2.75vw, 44px); }
.site-header nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: .9375rem; white-space: nowrap; padding: 2px; color: #dedddb; text-underline-offset: .38em; }
.site-header nav a:hover, .back-link:hover { color: white; text-decoration: underline; }

.hero { position: relative; isolation: isolate; background: #080809; overflow: hidden; }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 75%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: right 50%; }
.hero-veil, .hero-veil::after { position: absolute; inset: 0; }
.hero-veil { background: linear-gradient(90deg, #080809 0%, #080809e0 12%, #08080950 33%, transparent 58%); }
.hero-veil::after { content: ""; background: linear-gradient(0deg, #080809 0%, #080809b0 11%, transparent 29%, transparent 94%, #08080955); }
.hero-layout { min-height: clamp(620px, calc(96svh - 77px), 816px); position: relative; display: grid; grid-template-rows: 1fr auto; padding-block: 76px 26px; }
.hero-copy { align-self: center; padding-bottom: 49px; }
.hero-kicker { display: flex; align-items: center; gap: 13px; font-size: clamp(1rem, 1.4vw, 1.1875rem); line-height: 1.4; font-weight: 580; letter-spacing: .04em; color: var(--seam); }
.hero-kicker::before { content: ""; height: 1px; width: 23px; background: currentColor; flex: 0 0 auto; }
.hero h1 { margin: .37em 0 .31em -.043em; max-width: 12em; font-size: clamp(2.375rem, 5.3vw, 5.4375rem); line-height: 1.26; font-weight: 650; letter-spacing: -.09em; }
.hero h1 span, .display span { display: block; }
.hero h1 span + span { color: #deddd6; }
.hero-deck { font-size: clamp(1rem, 1.45vw, 1.1875rem); color: var(--night-mute); line-height: 1.93; max-width: 33em; }
.action { min-height: 52px; margin-top: 30px; padding: 10px 20px; border: 1px solid #66645d; display: inline-flex; align-items: center; gap: 13px; font-size: .9375rem; background: #1b1b1bd6; color: var(--on-night); transition: background .17s ease, color .17s ease, border-color .17s ease; }
.action:hover { background: var(--on-night); color: var(--carbon); border-color: var(--on-night); }
.action-light { width: 21px; height: 1px; background: currentColor; }
.hero-edge { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; color: #ccc9c0; font: 450 .75rem/1.45 var(--mono); letter-spacing: .115em; }
.edge-line { display: block; position: relative; height: 1px; overflow: hidden; background: #53524d; }
.edge-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #fef6d9 53%, transparent 90%); transform-origin: right; animation: seam-open 1.35s cubic-bezier(.19, .77, .27, 1) both; }
@keyframes seam-open { from { transform: scaleX(.025); opacity: .15; } to { transform: scaleX(1); opacity: 1; } }

.light { color-scheme: light; color: var(--carbon); background: var(--paper); }
.services, .workflow, .method { padding-block: var(--section-space); }
.section-cap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 21px; color: var(--carbon-mute); font: 500 .8125rem/1.45 var(--mono); letter-spacing: .1em; }
.section-cap span + span { height: 1px; background: var(--paper-line); }
.display { font-size: clamp(2.6rem, 5.39vw, 5.4375rem); line-height: 1.17; font-weight: 630; letter-spacing: -.086em; margin: 0 0 0 -.04em; }
.services-intro { margin: clamp(35px, 5.6vw, 84px) 0 clamp(48px, 7.6vw, 115px); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: end; gap: clamp(22px, 4.65vw, 78px); }
.services-intro p { color: var(--carbon-mute); font-size: clamp(1rem, 1.48vw, 1.2375rem); line-height: 1.91; padding-bottom: 3px; max-width: 29em; justify-self: end; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--paper-line); }
.service { padding: 31px 36px 40px 0; }
.service + .service { padding: 31px 0 40px 36px; border-left: 1px solid var(--paper-line); }
.service header .micro { color: var(--carbon-mute); }
.service h3 { margin-top: 8px; font-size: clamp(1.575rem, 2.6vw, 2.65rem); font-weight: 610; line-height: 1.35; letter-spacing: -.057em; }
.service p { max-width: 32em; margin-top: 17px; color: var(--carbon-mute); font-size: clamp(1rem, 1.35vw, 1.125rem); line-height: 1.9; }
.service-break { display: none; }

.workflow { color: var(--on-night); background: #0c0c0d; }
.workflow .section-cap { color: var(--night-mute); }
.workflow .section-cap span + span { background: linear-gradient(90deg, #77766e, var(--night-line)); }
.workflow-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 30px; margin: clamp(34px, 5.2vw, 76px) 0 clamp(32px, 4.75vw, 66px); }
.workflow-intro p { font-size: clamp(1rem, 1.38vw, 1.1875rem); color: var(--night-mute); line-height: 1.9; justify-self: end; }
.workbench { background: var(--night-raised); border: 1px solid var(--night-line); }
.workbench-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 22px; padding: 19px 29px; border-bottom: 1px solid var(--night-line); font-size: .9375rem; font-weight: 570; }
.sample { display: flex; align-items: center; gap: 8px; color: var(--night-mute); font-size: .875rem; font-weight: 400; white-space: nowrap; }
.sample i { display: block; height: 7px; width: 7px; border: 1px solid currentColor; transform: rotate(45deg); margin-inline: 2px; }
.stage-controls { display: grid; grid-template-columns: repeat(4,minmax(0, 1fr)); border-bottom: 1px solid var(--night-line); }
.stage-controls button { position: relative; min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #111113; border: 0; border-right: 1px solid var(--night-line); color: var(--night-mute); border-radius: 0; cursor: pointer; font-size: .9375rem; }
.stage-controls button:last-child { border-right: 0; }
.stage-controls button:hover { background: #222223; color: var(--on-night); }
.stage-controls button[aria-selected="true"] { color: var(--on-night); background: #242422; font-weight: 650; }
.stage-controls button[aria-selected="true"]::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -1px; height: 2px; background: var(--seam); box-shadow: 0 -1px 11px #f5f0d84f; }
.stage-controls button:focus-visible { z-index: 1; outline-offset: -4px; }
.stage-num { font: 400 .75rem/1 var(--mono); color: #c7c4b4; }
.scene { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 312px; }
.scene:not(:last-child) { border-bottom: 1px solid var(--night-line); }
.enhanced .scene { border-bottom: 0; }
.scene:focus-visible { outline-offset: -5px; }
.scene-copy { padding: clamp(29px, 4.85vw, 68px) clamp(26px, 4.35vw, 58px); position: relative; z-index: 1; }
.scene-label { color: #d5cfba; font-size: .9375rem; }
.scene-copy h3 { margin: 12px 0 17px; font-size: clamp(1.75rem, 3.05vw, 3.0625rem); line-height: 1.32; font-weight: 610; letter-spacing: -.07em; }
.scene-copy > p:last-child { color: var(--night-mute); font-size: 1rem; line-height: 1.85; }
.scene-visual { display: grid; align-items: center; justify-items: center; min-width: 0; position: relative; isolation: isolate; border-left: 1px solid var(--night-line); background: radial-gradient(ellipse at 52% 51%, #333331 0%, #171719 51%, #121214 90%); padding: clamp(22px, 4.15vw, 55px); }
.scene-visual::before { content: ""; pointer-events: none; position: absolute; z-index: -1; width: 100%; height: 1px; inset: 50% 0 auto; background: linear-gradient(90deg, #4b4a43, #ece5c6 55%, #68665c); box-shadow: 0 0 14px #e7e0c63b; }
.record { width: min(100%, 425px); min-height: 145px; align-self: center; padding: 21px 23px 23px; border: 1px solid #626057; background: #19191a; box-shadow: 0 19px 35px #0005; }
.record-label { margin-bottom: 15px; color: #dad5c1; font-size: .875rem; }
.record blockquote { font-size: clamp(1.08rem, 1.8vw, 1.4rem); font-weight: 560; line-height: 1.75; }
.record dl, .record ul { font-size: 1rem; }
.record dl > div { padding-top: 8px; display: grid; grid-template-columns: minmax(6em, .7fr) minmax(0, 1.3fr); gap: 10px; border-top: 1px solid #494944; }
.record dl > div + div { margin-top: 7px; }
.record dt { color: var(--night-mute); font-size: .875rem; }
.record ul { margin: 0; padding: 0 0 0 1.1em; }
.record li + li { margin-top: 5px; }
.enhanced [data-current] .record { animation: arrive .27s ease-out both; }
@keyframes arrive { from { opacity: .62; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.method .display { margin-top: clamp(31px, 5.5vw, 80px); }
.method-path { margin: clamp(43px, 7vw, 92px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(22px, 5vw, 77px); list-style: none; counter-reset: path; position: relative; }
.method-path::before { content: ""; position: absolute; height: 1px; top: 5px; left: 5px; right: 0; background: var(--paper-line); }
.method-path li { position: relative; padding-top: 39px; counter-increment: path; }
.method-path li::before { content: ""; position: absolute; width: 11px; height: 11px; top: 0; left: 0; background: var(--paper); border-radius: 50%; border: 1px solid var(--carbon); box-shadow: 0 0 0 4px var(--paper); }
.method-path li:first-child::before { background: var(--carbon); }
.method-path h3 { font-size: clamp(1.28rem, 2.02vw, 2rem); line-height: 1.5; font-weight: 650; letter-spacing: -.043em; }
.method-path p { color: var(--carbon-mute); max-width: 24em; margin-top: 8px; font-size: 1rem; line-height: 1.88; }

.company { border-top: 1px solid var(--paper-line); padding-block: clamp(60px, 8.25vw, 129px); }
.company-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 36px; }
.company .micro { color: var(--carbon-mute); }
.company .display { font-size: clamp(2.6rem, 4.1vw, 4.5rem); margin-top: 13px; }
.company dl { border-top: 1px solid var(--paper-line); font-size: 1rem; }
.company dl > div { display: grid; grid-template-columns: minmax(75px, 24%) minmax(0,1fr); gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--paper-line); }
.company dt, .contact-note { color: var(--carbon-mute); }
.contact-note { margin-top: 18px; font-size: .9375rem; }
.site-footer { border-top: 1px solid #383837; }
.footer-layout { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 21px; min-height: 106px; }
.footer-emblem { display: grid; place-items: center; width: 48px; height: 48px; }
.footer-emblem img { width: 38px; height: 38px; filter: invert(1); }
.footer-layout p { font-size: .9375rem; color: var(--night-mute); }
.back-link { color: var(--night-mute); display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; text-underline-offset: .35em; }

@media (max-width: 1080px) {
  .hero-layout { min-height: clamp(568px, calc(92svh - 77px), 710px); }
  .hero-art { width: 79%; }
  .hero-veil { background: linear-gradient(90deg, #080809 0%, #080809df 23%, #08080936 57%, transparent 70%); }
  .service + .service { padding-left: 26px; }
  .service { padding-right: 26px; }
}
@media (max-width: 760px) {
  :root { --edge: clamp(20px, 5.75vw, 44px); --section-space: clamp(70px, 12vw, 98px); }
  .header-layout { min-height: 62px; column-gap: 12px; }
  .brand { width: 87px; margin-left: -3px; }
  .site-header nav { gap: clamp(6px, 2vw, 20px); }
  .site-header nav a { font-size: clamp(.8125rem, 2.4vw, .9375rem); }
  .hero-kicker { gap: 9px; }
  .hero-kicker::before { width: 17px; }
  .hero-layout { display: block; min-height: initial; padding-block: 49px clamp(215px, 53vw, 380px); }
  .hero-copy { position: relative; z-index: 1; padding: 0; }
  .hero h1 { font-size: clamp(2rem, 9.1vw, 4.375rem); margin-top: .42em; margin-bottom: .41em; line-height: 1.25; }
  .hero-deck { line-height: 1.85; }
  .hero .action { margin-top: 19px; min-height: 46px; padding-inline: 14px; }
  .wide-only { display: none; }
  .hero-art { inset: auto 0 0 auto; width: 100%; height: clamp(250px, 64vw, 477px); }
  .hero-art img { object-position: right 57%; }
  .hero-veil { background: linear-gradient(180deg, #080809 0%, #08080961 13%, transparent 27%); }
  .hero-veil::after { background: linear-gradient(0deg, #080809 0%, #080809c2 10%, transparent 29%); }
  .hero-edge { position: absolute; bottom: 16px; left: 0; right: 0; font-size: .6875rem; gap: 8px; letter-spacing: .06em; }

  .section-cap { gap: 13px; }
  .display { font-size: clamp(2.18rem, 8.35vw, 4.5rem); }
  .services-intro, .workflow-intro { grid-template-columns: 1fr; align-items: initial; gap: 19px; }
  .services-intro p, .workflow-intro p { justify-self: start; }
  .service-list { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 23px 0 28px; border-left: 0; }
  .service + .service { border-top: 1px solid var(--paper-line); }
  .service p { margin-top: 10px; }
  .workflow-intro { margin-bottom: 27px; }

  .workbench-head { padding: 13px 13px; font-size: .875rem; gap: 8px; }
  .sample { font-size: .8125rem; gap: 4px; }
  .stage-controls button { min-height: 55px; flex-direction: column; gap: 3px; font-size: .875rem; line-height: 1.25; padding: 4px 2px; }
  .scene { grid-template-columns: 1fr; }
  .scene-copy { padding: 24px 18px 27px; }
  .scene-copy h3 { margin: 9px 0 13px; }
  .scene-visual { padding: 20px 18px; border-left: 0; border-top: 1px solid var(--night-line); }
  .record { padding: 17px 16px 19px; min-height: 122px; }
  .record-label { margin-bottom: 10px; }
  .record dl > div { grid-template-columns: minmax(3.8em, .75fr) minmax(0, 1.25fr); gap: 6px; }

  .method-path { grid-template-columns: 1fr; gap: 24px; }
  .method-path::before { inset: 5px auto 17px 5px; width: 1px; height: auto; }
  .method-path li { padding: 0 0 0 25px; }
  .method-path li::before { top: 8px; }
  .method-path p { margin-top: 5px; }
  .company-layout { grid-template-columns: 1fr; gap: 23px; }
  .company .display { font-size: clamp(2.25rem, 8vw, 3.65rem); }
  .company dl > div { gap: 8px; grid-template-columns: minmax(60px, 22%) minmax(0,1fr); }
  .footer-layout { min-height: 78px; gap: 8px; }
  .footer-emblem { width: 44px; height: 44px; margin-left: -6px; }
  .footer-emblem img { width: 30px; height: 30px; }
}
@media (max-width: 360px) {
  .header-layout { column-gap: 8px; flex-wrap: wrap; }
  .brand { width: 80px; }
  .site-header nav { gap: 4px; }
  .hero h1 { font-size: clamp(1.8rem, 9.35vw, 2.04rem); }
  .services .display { font-size: clamp(1.72rem, 9.25vw, 2.15rem); }
  .workbench-head { align-items: flex-start; flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
