/* kimidori.ai public site. Tokens from Kimidori Brand Guidelines v1.0
   (shared/projects/kimidori/guidelines). Direction B "Light through green",
   picked by Jordan 2026-09-29. Task interactive-2026-09-29-kimidori-public-front-end. */

@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --forest-deep: #032A21;
  --forest: #04352A;
  --kimidori: #A9CE3B;
  --paper: #FAF7F0;
  --pale: #E4F3B0;
  --stone: #5C6A63;
  --ink: #12211B;
  --paper-72: rgba(250, 247, 240, .72);
  --paper-84: rgba(250, 247, 240, .84);
  --rule: rgba(4, 53, 42, .14);
  --display: "Bricolage", "DM Sans", system-ui, sans-serif;
  --text: "DM Sans", system-ui, sans-serif;
  --margin: clamp(20px, 6.25vw, 120px);
  --section: clamp(88px, 12vw, 176px);
  --gutter: clamp(16px, 2vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--forest-deep); }
body { font-family: var(--text); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--forest-deep); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
::selection { background: var(--pale); color: var(--forest-deep); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--kimidori); outline-offset: 4px; border-radius: 4px; }
.nowrap { white-space: nowrap; }
[lang="ja"] { font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", sans-serif; }

/* Logo: mark + wordmark set in type (booklet 2.2) */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo span { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.02em; }

/* Hero: mark top left, headline bottom left, one axis (booklet 5.3) */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: grid; grid-template-rows: auto 1fr; padding: 36px var(--margin) clamp(44px, 8vh, 96px); color: var(--paper); background: var(--forest-deep); }
.hero-light { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 72% 50%; animation: light 2.2s cubic-bezier(.2, .7, .2, 1) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(0deg, rgba(3, 42, 33, .92) 0%, rgba(3, 42, 33, .8) 30%, rgba(3, 42, 33, .3) 56%, rgba(3, 42, 33, 0) 72%),
  linear-gradient(180deg, rgba(3, 42, 33, .7) 0%, rgba(3, 42, 33, 0) 20%),
  linear-gradient(90deg, rgba(3, 42, 33, .6) 0%, rgba(3, 42, 33, 0) 55%); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.status { font-size: 15px; color: var(--paper-72); }
.hero-words { align-self: end; padding-top: 64px; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 6.9vw, 132px); line-height: .98; letter-spacing: -0.032em; }
h1 span { display: block; text-wrap: balance; }
.lead { margin-top: clamp(22px, 3.4vh, 36px); max-width: 40ch; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.48; color: var(--paper-84); }

@keyframes light { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }

/* Paper sections on an eight-column grid (booklet 5.1) */
.split, .rows { background: var(--paper); padding: var(--section) var(--margin); }
.split { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; align-items: start; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.06; letter-spacing: -0.02em; color: var(--forest); }
.split h2 { grid-column: 1 / span 4; }
.split h2 span { display: block; }
.split-text { grid-column: 5 / span 4; max-width: 34em; padding-top: .4em; }
.split-text p { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.65; }
.split-text .pull { margin-top: 28px; font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1.28; letter-spacing: -0.01em; color: var(--forest); }

.rows { padding-top: 0; }
.rows h2 { max-width: 16ch; margin-bottom: clamp(40px, 5vw, 72px); }
.rows dl { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gutter); padding: 28px 0 30px; border-bottom: 1px solid var(--rule); }
.row dt { grid-column: 1 / span 4; font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1.28; color: var(--forest); }
.row dd { grid-column: 5 / span 4; max-width: 34em; }

/* The name, on the deep ground with its own light */
.name { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(520px, 82vh, 880px); display: grid; align-items: end; padding: var(--section) var(--margin); color: var(--paper); background: var(--forest-deep); }
.name-light { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 50%; }
.name::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3, 42, 33, .88) 0%, rgba(3, 42, 33, .4) 55%, rgba(3, 42, 33, .12) 100%); }
.name h2 { max-width: 22ch; color: var(--paper); font-size: clamp(30px, 3.6vw, 56px); line-height: 1.08; }
.name p { margin-top: 24px; max-width: 40ch; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.48; color: var(--paper-84); }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 48px var(--margin) 56px; background: var(--forest-deep); color: var(--paper-72); border-top: 1px solid rgba(250, 247, 240, .1); }
.foot p { font-size: 15px; }

@media (min-width: 900px) {
  h1 span { white-space: nowrap; }
  .lead { max-width: none; }
  .lead span { display: block; }
}

@media (max-width: 760px) {
  .split, .row { grid-template-columns: minmax(0, 1fr); }
  .split h2, .split-text, .row dt, .row dd { grid-column: 1; }
  .row dd { margin-top: 8px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 22px; }
  .hero-light { object-position: 78% 50%; }
  .hero::after { background: linear-gradient(0deg, rgba(3, 42, 33, .9) 0%, rgba(3, 42, 33, .55) 45%, rgba(3, 42, 33, .12) 82%), linear-gradient(180deg, rgba(3, 42, 33, .72) 0%, rgba(3, 42, 33, 0) 16%); }
  h1 { font-size: clamp(30px, 9.3vw, 42px); }
  .logo img { width: 28px; height: 28px; }
  .logo span { font-size: 22px; }
  .status { font-size: 13px; color: var(--paper-84); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-light { animation: none; }
}
