/* Editorial grid and gallery--one architecture adapted from Codrops
 * ScrollBasedLayoutAnimations, ade47c56f8f2f756e7e6df8e578407690b2fb782 (MIT).
 * See /vendor/CODROPS-LICENSE.txt. Demo loaders, pinning and hidden captions omitted. */
:root {
  --paper: #f4f1e9;
  --paper-alt: #e9ebe2;
  --forest: #163b31;
  --ink: #223d34;
  --muted: #5d6a60;
  --line: #cbd0c4;
  --gold: #d9c79b;
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --gutter: clamp(24px, 6.7vw, 96px);
  --frame: clamp(12px, 1.7vw, 24px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
p { line-height: 2; }
::selection { background: #d9c79b; color: #163b31; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 20px; background: var(--paper); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .16em; line-height: 1.6; }
.hero { position: relative; background: var(--forest); color: var(--paper); }
.site-header { position: absolute; z-index: 3; top: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 32px; width: 100%; padding: 44px var(--gutter) 0; }
.brand { display: inline-flex; align-items: baseline; gap: 16px; min-height: 44px; font-family: Georgia, "Times New Roman", serif; font-size: 40px; line-height: 1.2; letter-spacing: -.04em; }
.brand span { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; }
.primary-nav { display: flex; gap: 32px; margin-left: auto; }
.primary-nav a, .header-login { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; letter-spacing: .06em; }
.header-login { gap: 16px; border-bottom: 1px solid #f4f1e966; }
.primary-nav a:hover, .header-login:hover, .text-link:hover { color: var(--gold); }

/* Codrops gallery--one: one centered item switches between two real frame sizes. */
.gallery-wrap { position: relative; width: 100%; height: max(760px, min(94svh, 1060px)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery { position: relative; width: 100%; height: 100%; flex: none; }
.gallery--one { display: grid; place-items: center; }
.gallery--one .gallery__item { position: absolute; width: calc(100% - var(--frame) * 2); height: calc(100% - var(--frame) * 2); overflow: hidden; border-radius: 2px; background: var(--forest); }
.gallery--switch.gallery--one .gallery__item { width: 100%; height: 100%; border-radius: 0; }
.gallery__image { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(7 28 23 / 65%), transparent 28%), linear-gradient(90deg, rgb(7 28 23 / 73%) 0%, rgb(7 28 23 / 45%) 40%, rgb(7 28 23 / 4%) 100%), linear-gradient(0deg, rgb(7 28 23 / 35%), transparent 30%); }
.caption { position: relative; z-index: 1; }
.hero-content { width: 100%; padding: 140px var(--gutter) 112px; }
.hero-eyebrow { margin-bottom: 28px; color: #ece9d8; }
.hero h1 { font-size: clamp(64px, 7.8vw, 112px); line-height: 1.38; letter-spacing: -.055em; font-weight: 400; }
.hero h1 span { display: block; }
.hero-intro { max-width: 440px; margin-top: 28px; color: #f1f0e5; font-size: 15px; line-height: 2; letter-spacing: .035em; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.hero-actions { margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 56px; min-width: 224px; padding: 16px 24px; border: 1px solid transparent; font-size: 13px; font-weight: 500; letter-spacing: .06em; transition: background-color .2s, color .2s; }
.button span { font-size: 19px; font-weight: 400; line-height: 1; }
.button--light { background: var(--paper); color: var(--forest); }
.button--light:hover { background: #e3d5b1; }
.button--outline { color: var(--paper); border-color: #f4f1e970; }
.button--outline:hover { background: #f4f1e912; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 44px; border-bottom: 1px solid currentColor; font-size: 12px; letter-spacing: .04em; }
.hero-scroll { position: absolute; z-index: 2; right: var(--gutter); bottom: 44px; display: inline-flex; align-items: center; gap: 24px; min-height: 44px; font-size: 11px; letter-spacing: .1em; }
.hero-scroll span:last-child { font-size: 24px; }

/* Codrops project grids adapted to original AIQs prose and one uncropped image. */
.project { display: grid; width: calc(100% - var(--gutter) * 2); max-width: 1248px; margin: 0 auto; column-gap: clamp(48px, 9vw, 144px); }
.project--intro { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); grid-template-areas: "label-mission figure" "title figure" "mission figure"; grid-template-rows: auto auto 1fr; padding: 128px 0 112px; }
.project__label--mission { grid-area: label-mission; }
.project__title { grid-area: title; margin: 28px 0 36px; font-size: clamp(44px, 4.5vw, 64px); line-height: 1.55; letter-spacing: -.035em; }
.project__mission { grid-area: mission; max-width: 580px; }
.project__mission p + p { margin-top: 24px; }
.project p { font-size: 15px; line-height: 2.1; }
.project p.eyebrow { font-size: 11px; }
.project .mission-lead { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.95; }
.app-example { grid-area: figure; width: 100%; max-width: 320px; justify-self: end; align-self: start; margin-top: 4px; }
.app-example__frame { border: 1px solid #273b33; border-radius: 12px; overflow: hidden; background: #10141b; box-shadow: 0 24px 56px -32px #173e3550; }
.app-example img { width: 100%; height: auto; }
.app-example figcaption { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.8; text-align: center; }
.project--details { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "label-default paragraph"; padding: 72px 0 104px; border-top: 1px solid var(--line); }
.project__label--default { grid-area: label-default; }
.project__label--default h2 { margin-top: 24px; font-size: clamp(34px, 3.2vw, 44px); line-height: 1.7; }
.project__paragraph { grid-area: paragraph; padding-top: 42px; }
.project__paragraph p + p { margin-top: 28px; }

.section-shell { width: calc(100% - var(--gutter) * 2); max-width: 1248px; margin: 0 auto; }
.features { padding: 88px 0 104px; background: var(--paper-alt); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; padding-bottom: 40px; }
.section-heading h2 { font-size: 44px; line-height: 1.5; }
.feature-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #b6c0b4; }
.feature-list li { display: grid; grid-template-columns: 48px minmax(200px, .85fr) minmax(0, 1.4fr); column-gap: 32px; align-items: start; padding: 36px 0; border-bottom: 1px solid #b6c0b4; }
.feature-number { padding-top: 5px; color: #5a705f; font-family: Georgia, serif; font-size: 17px; }
.feature-list h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.8; }
.feature-list p { font-size: 14px; line-height: 2; }

.entry { background: var(--forest); color: var(--paper); padding: 112px 0 96px; }
.entry-statement { max-width: 720px; font-family: var(--serif); font-size: clamp(18px, 2vw, 24px); line-height: 2; }
.entry-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 24px; margin: 32px 0 40px; line-height: 1.2; }
.entry-title > span:first-child { font-family: Georgia, "Times New Roman", serif; font-size: clamp(76px, 8vw, 120px); letter-spacing: -.055em; }
.entry-title .entry-kana { font-size: clamp(18px, 2vw, 28px); letter-spacing: .1em; }
.agent-entry { margin-top: 36px; }
.agent-entry .text-link { color: #e3d4ad; }
.agent-entry p { margin-top: 12px; color: #c4d0c2; font-size: 11px; }
.site-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; background: var(--forest); color: #d2dccc; padding: 40px var(--gutter) 36px; border-top: 1px solid #f4f1e926; }
.footer-brand > span { font-family: Georgia, serif; font-size: 28px; letter-spacing: -.03em; }
.footer-brand p { margin-top: 8px; font-size: 10px; letter-spacing: .08em; }
.site-footer > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; }
.site-footer small { grid-column: 1 / -1; font-size: 9px; line-height: 1.8; letter-spacing: .03em; }

@media (max-width: 1000px) {
  .primary-nav { gap: 20px; }
  .site-header { gap: 24px; }
  .brand { gap: 12px; }
  .brand span { display: none; }
  .project { column-gap: 48px; }
  .project--intro { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); }
  .feature-list li { grid-template-columns: 32px minmax(172px, .8fr) minmax(0, 1.2fr); gap: 24px; }
  .feature-list h3 { font-size: 17px; }
}
@media (max-width: 700px) {
  :root { --gutter: 24px; --frame: 12px; }
  .site-header { padding-top: 32px; }
  .brand { font-size: 34px; }
  .primary-nav { display: none; }
  .header-login { font-size: 11px; gap: 12px; }
  .gallery-wrap { height: max(740px, 94svh); }
  .gallery__image { object-position: 72% center; }
  .gallery__item::after { background: linear-gradient(180deg, rgb(7 28 23 / 65%), transparent 28%), linear-gradient(90deg, rgb(7 28 23 / 75%), rgb(7 28 23 / 37%) 70%, rgb(7 28 23 / 17%)), linear-gradient(0deg, rgb(7 28 23 / 25%), transparent 70%); }
  .hero-content { padding-top: 132px; padding-bottom: 120px; }
  .hero-eyebrow { font-size: 9px; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(44px, 12.3vw, 68px); line-height: 1.5; letter-spacing: -.055em; }
  .hero-intro { max-width: 340px; margin-top: 26px; font-size: 13px; line-height: 2.05; }
  .hero-actions { gap: 16px 24px; margin-top: 28px; }
  .hero-actions .button { min-width: 214px; }
  .hero-scroll { bottom: 28px; font-size: 10px; }
  .project--intro { grid-template-columns: 1fr; grid-template-areas: "label-mission" "title" "mission" "figure"; padding: 72px 0; }
  .project__title { margin: 24px 0 28px; font-size: 44px; }
  .project p { font-size: 14px; }
  .project .mission-lead { font-size: 20px; }
  .app-example { justify-self: center; margin-top: 48px; width: min(100%, 300px); }
  .project--details { grid-template-columns: 1fr; grid-template-areas: "label-default" "paragraph"; padding: 48px 0 64px; }
  .project__label--default h2 { margin-top: 20px; font-size: 34px; }
  .project__paragraph { padding-top: 28px; }
  .features { padding: 56px 0 64px; }
  .section-heading { padding-bottom: 28px; }
  .section-heading h2 { font-size: 36px; }
  .feature-list li { grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; row-gap: 14px; padding: 28px 0; }
  .feature-list h3 { font-size: 18px; }
  .feature-list p { grid-column: 2; font-size: 13px; }
  .feature-number { font-size: 15px; }
  .entry { padding: 72px 0 64px; }
  .entry-title { gap: 20px; margin: 28px 0 32px; }
  .entry .actions { gap: 16px; }
  .entry .button { min-width: 0; width: 100%; }
  .site-footer { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .site-footer small { grid-column: 1; }
}
@media (max-width: 360px) {
  :root { --gutter: 24px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero h1 { font-size: 43px; }
  .hero-intro { font-size: 12px; }
  .hero-content { padding-top: 124px; padding-bottom: 108px; }
  .hero-eyebrow { margin-bottom: 20px; }
  .button { min-height: 52px; }
  .feature-list h3 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
