:root {
  color-scheme: dark;
  --ink: #0b0b0d;
  --white: #fff;
  --blue: #55c7e8;
  --panel: #242429;
  --muted: #ffffff;
  --line: #343b41;
  --gutter: clamp(22px, 5.3vw, 88px);
  --sans: "Inter", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 1rem/1.8 var(--sans); }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible, main:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 1328px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 12px; left: 12px; padding: 8px 16px; background: var(--ink); color: var(--blue); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header { background: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 98px; gap: 24px; }
.header-nav, .site-footer nav { display: flex; gap: clamp(20px, 3vw, 49px); }
.header-nav a, .site-footer nav a { font-size: .88rem; font-weight: 600; }
.header-nav a { display: flex; align-items: center; position: relative; min-height: 44px; }
.header-nav a[aria-current="page"] { color: var(--blue); }
.header-nav a[aria-current="page"]::after { position: absolute; inset: auto 0 3px; height: 1px; background: var(--blue); content: ""; }
.header-nav a:hover, .site-footer a:hover, .text-link:hover, .services a:hover, .facts a:hover { color: var(--blue); }
.brand { position: relative; display: block; width: 224px; aspect-ratio: 4.06; overflow: hidden; flex: none; }
.brand img { position: absolute; width: 233.4%; height: auto; max-width: none; top: -202%; left: -109.8%; mix-blend-mode: screen; }
.brand-fallback { display: grid; place-items: center start; height: 100%; font-weight: 700; }
.menu-toggle { min-height: 44px; padding: 6px 0; border: 0; background: transparent; color: var(--white); display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .76rem; }
.menu-icon { position: relative; width: 17px; height: 12px; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: currentColor; }
.menu-icon::after { top: auto; bottom: 0; }
.menu-toggle[aria-expanded="true"] { color: var(--blue); }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 50%; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { bottom: auto; top: 50%; transform: rotate(-45deg); }

.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: clamp(560px, 72vh, 805px); background: #11191e url("/assets/images/tokyo-skyline.jpg") 65% center / cover no-repeat; }
.hero-video, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { z-index: -2; object-fit: cover; object-position: 65% center; }
.hero::after { z-index: -1; content: ""; background: linear-gradient(90deg, #0b0b0def 0%, #0b0b0dce 27%, #0b0b0d38 73%, #0b0b0d12 100%), linear-gradient(0deg, #0b0b0d80, transparent 37%); }
.hero-content { padding-block: 106px 120px; }
.hero-brand { display: flex; align-items: center; gap: 14px; color: var(--blue); letter-spacing: .16em; font-size: .83rem; }
.hero-brand::before { content: ""; width: 34px; height: 1px; background: var(--blue); }
.hero h1 { margin-block: 27px 25px; font: 700 clamp(2.25rem, 5.15vw, 5.55rem)/1.28 var(--sans); letter-spacing: .025em; }
.hero h1 span { color: var(--blue); }
.hero p { color: var(--white); font-size: clamp(.92rem, 1.15vw, 1.1rem); line-height: 2; letter-spacing: .045em; }

.section { padding-block: clamp(58px, 7.6vw, 112px); }
.section-title h2, .contact h2 { font-weight: 600; font-size: clamp(1.45rem, 2.65vw, 2.5rem); line-height: 1.04; letter-spacing: -.028em; }
.section-title p { margin-top: 10px; color: var(--blue); font-size: .84rem; letter-spacing: .14em; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); margin-top: 35px; }
.card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); min-width: 0; border: 1px solid var(--line); background: #121216; }
.card-body { padding: clamp(16px, 1.7vw, 24px); display: flex; flex-direction: column; align-items: flex-start; }
.index { color: var(--blue); font-size: .85rem; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.card h3 { margin-block: 9px 10px; font-size: clamp(1.02rem, 1.4vw, 1.3rem); line-height: 1.45; }
.card p, .work-copy > p, .about-inner p:not(.statement), .contact p { color: var(--muted); }
.card p { font-size: .88rem; margin-bottom: 22px; }
.card .text-link { margin-top: auto; }
.text-link { display: inline-flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); padding-block: 8px; font-size: .88rem; font-weight: 600; }
.text-link span, .button span { color: var(--blue); }
.business-photo { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.card .business-photo { aspect-ratio: 153 / 186; }
.work-visual .business-photo { aspect-ratio: 1.15; border: 1px solid var(--line); }

@media (min-width: 768px) and (max-width: 1099px) {
  .card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .card .business-photo { aspect-ratio: 1.55; }
}

.about-band { background: var(--panel); }
.about-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(25px, 5vw, 80px); }
.about-band .about-inner, .contact { padding-block: clamp(52px, 6.8vw, 94px); }
.statement { font: 600 clamp(1.45rem, 2.55vw, 2.4rem)/1.65 var(--sans); }
.about-inner .statement + p { margin-top: 20px; }
.about-inner .button { margin-top: 26px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 27px; min-height: 49px; border: 1px solid #77828a; padding: 9px 17px; font-weight: 600; font-size: .85rem; }
.button:hover { border-color: var(--blue); }
.contact { border-top: 1px solid var(--line); }
.contact-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.contact p { margin-top: 13px; }
.contact .button { background: transparent; border-color: var(--blue); color: var(--blue); }
.contact .button span { color: inherit; }
.contact .button:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 31px; }
.footer-brand { font-size: .92rem; font-weight: 700; }
.site-footer small { display: block; margin-top: 6px; color: var(--muted); font-size: .72rem; }

.page-lead { padding-block: clamp(52px, 8vw, 115px); background: linear-gradient(115deg, #0d1115, #17242b); border-bottom: 1px solid var(--line); }
.page-lead h1 { font-size: clamp(2.15rem, 4.2vw, 4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.page-lead span { display: block; margin-top: 18px; color: var(--blue); font-size: .97rem; letter-spacing: .12em; }
.work { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(25px, 6vw, 94px); padding-block: clamp(48px, 7vw, 105px); scroll-margin-top: 18px; }
.work + .work, .company { border-top: 1px solid var(--line); }
.work .index { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1; }
.work h2, .about-inner:not(.about-band .about-inner) .section-title h2 { font-size: clamp(1.5rem, 3vw, 2.55rem); line-height: 1.35; letter-spacing: .015em; }
.work h2 { margin-block: 8px 13px; }
.services, .facts { margin-top: 24px; border-top: 1px solid var(--line); }
.services div, .facts div { padding-block: 13px; border-bottom: 1px solid var(--line); }
.services dt, .facts dt { font-weight: 600; }
.services dd, .facts dd { color: var(--muted); font-size: .92rem; }
.services dd { margin-top: 5px; }
.services a, .facts a { text-decoration: underline; text-underline-offset: .24em; overflow-wrap: anywhere; }
.status { font-size: .82rem; }
.facts { margin-top: 0; }
.facts div { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2.4fr); gap: 12px; }
.company .text-link { margin-top: 19px; }

@media (max-width: 767px) {
  .header-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 15px; min-height: 76px; }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; width: min(100%, 195px); }
  .menu-toggle { grid-column: 2; grid-row: 1; }
  .header-nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; justify-content: space-between; gap: 0 14px; padding-block: 3px 12px; border-top: 1px solid var(--line); }
  .menu-toggle[aria-expanded="true"] + .header-nav {
    position: absolute;
    z-index: 10;
    top: calc(100% + 6px);
    right: 0;
    width: min(172px, 100%);
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--ink);
    box-shadow: 0 8px 20px #0006;
  }
  .menu-toggle[aria-expanded="true"] + .header-nav a {
    padding-inline: 6px;
    font-size: .95rem;
  }
  .menu-toggle[aria-expanded="true"] + .header-nav a + a { border-top: 1px solid var(--line); }
  .menu-toggle[aria-expanded="true"] + .header-nav a[aria-current="page"]::after { content: none; }
  .hero { min-height: 520px; }
  .hero::after { background: linear-gradient(90deg, #0b0b0dd6, #0b0b0d56), linear-gradient(0deg, #0b0b0d75, transparent); }
  .hero-content { padding-block: 80px; }
  .hero h1 { font-size: clamp(1.75rem, 7.5vw, 3.5rem); }
  .cards, .about-inner, .work { grid-template-columns: 1fr; }
  .contact-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .site-footer nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { visibility: hidden; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-pending:not(:focus-within) {
    opacity: 0;
  }

  .work:target .reveal-pending {
    opacity: 1;
  }

  .scroll-reveal:not(:focus-within) {
    animation: reveal-up 920ms cubic-bezier(.22, 1, .36, 1) backwards;
  }

  .cards > .scroll-reveal:not(:focus-within) {
    --reveal-offset: 96px;
    --reveal-scale: .96;
  }

  @media (min-width: 768px) {
    .cards > .scroll-reveal:nth-child(2) { animation-delay: 220ms; }
    .cards > .scroll-reveal:nth-child(3) { animation-delay: 440ms; }
  }

  @keyframes reveal-up {
    from { opacity: 0; transform: translateY(var(--reveal-offset, 80px)) scale(var(--reveal-scale, 1)); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}
