@font-face {
  font-family: Druk;
  src: url("assets/druk-wide-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --paper: #f7f7f2;
  --ink: #191c18;
  --soft: #565b52;
  --line: #cccec4;
  --gutter: clamp(22px, 5.3vw, 88px);
  --display: Druk, "Arial Black", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.5 var(--body); }
img, video { display: block; max-width: 100%; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, video:focus-visible { outline: 3px solid #5781ff; outline-offset: 5px; }
.skip { position: absolute; left: 8px; top: -70px; padding: 10px; color: black; background: white; z-index: 8; }
.skip:focus { top: 8px; }
.wrap { width: min(100%, 1680px); margin: auto; padding-inline: var(--gutter); }
.mast { position: relative; z-index: 2; display: flex; align-items: center; gap: 4vw; margin-inline: var(--gutter); padding-block: 10px; border-bottom: 1px solid var(--line); }
.footname { font-family: var(--display); font-weight: 700; }
.mark { margin-right: auto; display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.mark img { width: 37px; height: 37px; }
nav { display: flex; gap: clamp(14px, 2.7vw, 48px); }
nav a, .contact { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; font-size: 17px; font-weight: 650; }
nav a:hover, nav a[aria-current], .contact:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact { border-left: 1px solid var(--line); padding-left: 3vw; }
.hero { position: relative; isolation: isolate; color: white; display: flex; flex-direction: column; min-height: max(440px, 29vw); height: min(74svh, 820px); }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -2; }
.hero-photo img { object-fit: cover; object-position: center bottom; }
.hero h1 { text-shadow: 0 2px 14px rgb(16 31 23 / .28); }
.home .mast { border-bottom: 0; }
.home .mast nav a { text-decoration: none; }
.nav-arrow { display: none; }
.home-intro { position: relative; }
.down { text-shadow: 0 1px 3px #17211f, 0 0 8px #19231de0; }
.hero-body { margin: auto var(--gutter); }
.hero-role, .card-meta, .medium, .year, .next small { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hero-role { display: flex; align-items: center; gap: 11px; margin-bottom: 19px; text-shadow: 0 1px 5px #172b27; }
.hero-role i { width: 22px; height: 3px; background: #d0ffac; }
.hero h1 { font: 700 clamp(48px, 5.55vw, 105px)/.99 var(--display); letter-spacing: -.038em; }
.down { position: absolute; bottom: clamp(38px, 5.6vw, 84px); right: var(--gutter); display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.down span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #fff9; border-radius: 50%; }
.down svg { display: block; height: 58%; width: auto; }
.work { padding-block: clamp(46px, 4.8vw, 80px) clamp(55px, 7vw, 110px); }
.wrap h2 { font: 700 clamp(24px, 2.45vw, 43px)/1.13 var(--display); letter-spacing: -.055em; }
.work h2 { margin-bottom: 26px; }
.work-grid, .life-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 2.8vw, 48px); }
.art { aspect-ratio: 1.66; overflow: hidden; display: grid; place-items: center; }
.poster-art, .poster-view { background: #e2dcec; }
.poster-art > img { width: 44%; box-shadow: 2px 9px 17px #4a396036; }
.app-art, .app-stage { background: #cbcddd; }
.game-art { background: white; }
.game-art img { width: 100%; height: 100%; object-fit: contain; }
.clip-player.recap-art video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.phones { display: flex; width: 72%; height: 100%; gap: 7%; justify-content: center; align-items: center; }
.phones img { width: 37%; border-radius: 7% / 3%; box-shadow: 4px 12px 23px #25223441; }
.art .phones { transform: rotate(-7deg) translateY(9%); }
.art .phones img:nth-child(2) { transform: translateY(17%); }
.art img { transition: scale .24s ease; }
.card:hover .art img { scale: 1.035; }
.card-meta { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; color: var(--soft); }
.card h3 { font: 700 clamp(22px, 2vw, 36px)/1.2 var(--display); letter-spacing: -.05em; margin: 5px 0 6px; }
.card h3 span { font: 400 .85em var(--body); }
.card p, .caption, .life-feature p { color: var(--soft); }
.about, .explain, .study { border-top: 1px solid var(--line); padding-block: clamp(38px, 6vw, 96px); display: grid; grid-template-columns: 1fr 1.4fr; gap: 6vw; }
.about p, .explain p { max-width: 44em; margin-bottom: 15px; font-size: clamp(17px, 1.45vw, 23px); }
.about-portrait img { width: min(100%, 500px); height: auto; margin-top: clamp(16px, 1.7vw, 28px); }
.text-link { display: inline-block; font-weight: 700; font-size: 15px; }
.about .text-link { margin-top: 7px; }
.cat-picker { margin: 22px 0 14px; }
.cat-picker button {
  font: 600 16px/1.2 var(--body);
  cursor: pointer;
  border: 0;
  border-radius: 6px;
}
.cat-picker button { background: var(--ink); color: white; padding: 12px 18px; }
.cat-picker #cat-result:not(:empty) {
  display: grid;
  grid-template-rows: clamp(180px, 70vw, 360px) 24px;
  gap: 6px;
  width: min(100%, 420px);
  margin-top: 16px;
}
.cat-picker img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.cat-picker #cat-result a { justify-self: start; color: var(--soft); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
button:focus-visible { outline: 3px solid #5781ff; outline-offset: 3px; }
footer { background: #20261f; color: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 36px var(--gutter); }
.footname { font-size: clamp(15px, 1.7vw, 27px); letter-spacing: -.06em; }
footer div { display: flex; gap: 22px; }
.detail { padding-top: clamp(26px, 3vw, 48px); }
.crumb { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 14px; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.intro { margin-block: clamp(30px, 3.6vw, 56px); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.intro h1 { font: 700 clamp(36px, 5.5vw, 88px)/1.02 var(--display); letter-spacing: -.065em; }
.intro p { font-size: clamp(17px, 1.5vw, 24px); margin-top: 13px; color: var(--soft); }
.year { margin-bottom: 4px; }
.case-layout, .life-feature { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 5vw, 90px); align-items: center; }
.poster-view, .app-stage { display: grid; place-items: center; aspect-ratio: 1.3; }
.poster-view img { max-height: 90%; width: 65%; box-shadow: 2px 9px 25px #4a396036; }
.app-stage .phones { width: 88%; }
.app-stage .phones img { width: 32%; }
.project-info p, .study p { color: var(--soft); margin-top: 14px; max-width: 42ch; }
.project-info dl { border-top: 1px solid var(--line); padding-top: 14px; margin: 22px 0; display: grid; grid-template-columns: minmax(86px, .55fr) 1fr; gap: 6px 12px; font-size: 15px; }
dt { color: var(--soft); }
.study, .explain { margin-top: 55px; }
.study { align-items: center; grid-template-columns: 1fr 1fr; }
.study figure { display: grid; place-items: center; background: #e8e5ed; padding: 24px; }
.study img { width: min(70%, 320px); }
.next { border-top: 1px solid var(--line); display: block; padding: 30px 0; font: 700 clamp(25px, 3vw, 42px)/1.3 var(--display); letter-spacing: -.045em; }
.next small { display: block; color: var(--soft); font-family: var(--body); margin-bottom: 6px; }
.next span { float: right; }
.caption { margin-top: 10px; font-size: 14px; }
.life { padding-bottom: clamp(42px, 7vw, 100px); }
.clip-player { position: relative; background: #181818; }
.clip-player video { width: 100%; height: auto; }
.life-feature h2, .life-grid h2 { margin-block: 7px; }
.life-grid { margin-top: clamp(30px, 5vw, 80px); grid-template-columns: minmax(0, 81fr) minmax(0, 256fr); }
.life-grid video { display: block; width: 100%; height: auto; background: #181818; }
.life-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.life-grid figcaption { margin-top: 12px; }
.life-grid { container-type: inline-size; }
.life-grid h2 { font-size: min(2.3cqi, 36px); }
.medium { color: var(--soft); }
@media (min-width: 761px) {
  .home .hero { height: 100vh; height: 100dvh; min-height: 0; }
  .home .hero h1 { font-size: clamp(46px, 5.3vw, 100px); }
  .home .mast {
    position: absolute;
    top: 50%;
    right: var(--gutter);
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    color: white;
  }
  .home .mast .mark, .home .mast .contact { display: none; }
  .home .mast nav { flex-direction: column; align-items: flex-end; gap: clamp(4px, 1vh, 14px); }
  .home .mast nav::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -20% -10% -20% -22%;
    pointer-events: none;
    background: radial-gradient(ellipse, rgb(15 27 30 / .53), transparent 72%);
  }
  .home .mast nav a {
    font-size: clamp(26px, 2.55vw, 46px);
    line-height: 1.15;
    letter-spacing: -.025em;
    font-weight: 650;
    text-shadow: 0 1px 4px #15282bc4;
    gap: .35em;
  }
  .nav-arrow { display: inline-block; font-size: .64em; line-height: 1; }
  .home .down { gap: clamp(12px, 1vw, 24px); font-size: clamp(22px, 1.6vw, 34px); font-weight: 700; }
  .home .down span {
    width: clamp(54px, 4vw, 78px);
    height: auto;
    aspect-ratio: 1;
    border: 2px solid currentColor;
    background: rgb(21 33 24 / .26);
  }
  .home .down svg { width: 60%; height: 60%; }
}
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .hero-body, .home .mast nav { animation: hero-arrive .48s ease-out both; }
  .home .down svg, .nav-arrow { transition: transform .18s ease-out; }
  .home .down:is(:hover, :focus-visible) svg { transform: translateY(2px); }
  .home .mast nav a:is(:hover, :focus-visible) .nav-arrow { transform: translate(2px, -2px); }
  @keyframes hero-arrive {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 760px) {
  .mast { gap: 18px; }
  .hero { min-height: 455px; }
  .case-layout, .life-feature { grid-template-columns: 1fr; gap: 24px; }
  .project-info p { max-width: 60ch; }
  .case-layout figure { max-height: 520px; }
  .life-feature p { max-width: 50ch; }
}
@media (max-width: 640px) {
  .mast { padding-block: 6px; gap: 12px; }
  nav a, .contact { font-size: 15px; }
  .contact { display: none; }
  .hero { height: 77svh; min-height: 455px; max-height: 720px; }
  .hero-photo img { object-position: 54% 52%; }
  .hero h1 { font-size: clamp(38px, 10vw, 64px); }
  .hero-role { font-size: 10px; margin-bottom: 14px; }
  .down { bottom: 19px; right: var(--gutter); font-size: 12px; }
  .down span { width: 25px; height: 25px; }
  .work-grid, .about, .study, .explain, .life-grid { grid-template-columns: 1fr; }
  .work-grid, .life-grid { gap: 32px; }
  .life-grid .clip-player { max-width: min(100%, 41svh); }
  .life-grid h2 { font-size: min(7cqi, 32px); }
  .work { padding-top: 32px; }
  .work h2 { margin-bottom: 19px; }
  .card-meta { margin-top: 11px; }
  .about, .explain, .study { gap: 18px; }
  .intro { align-items: flex-start; flex-direction: column; }
  .intro h1 { font-size: clamp(29px, 7.8vw, 48px); }
  footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art img { transition: none; }
}
