/* Inazda company home (/) and legal pages (/legal/).
   Sits on base.css (a snapshot of market/market.css, Market v3, copied 24 Oct 2026) and uses only its --iz-* tokens.
   One signature interaction: the Pivot mark turning 180 degrees in the About section (site.js). */

/* ---------- header and footer tweaks ---------- */
.nav .ext { font-size: 12px; color: var(--iz-faint-fg); margin-left: 2px; }
.co-foot { padding-block: 56px 32px; }
.cf-grid { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cf-grid .foot-brand { grid-column: 1 / -1; gap: 10px; }
.cf-col h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; color: var(--iz-fg); }
.cf-col ul { display: grid; gap: 8px; }
.cf-col a { color: var(--iz-muted-fg); text-decoration: none; font-size: 14px; }
.cf-col a:hover { color: var(--iz-fg); text-decoration: underline; }
.cf-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--iz-border); font-size: 13px; }
.theme-f button { width: auto; padding: 0 10px; font-size: 13px; font-weight: 500; }
@media (min-width: 900px) { .cf-grid { grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); } .cf-grid .foot-brand { grid-column: auto; padding-right: 32px; } }

/* ---------- sections ---------- */
.co-sec { padding-block: 72px; }
@media (min-width: 1024px) { .co-sec { padding-block: 128px; } }
.co-sec-rule { border-top: 1px solid var(--iz-border); }
.co-sub { background: var(--iz-bg-subtle); border-block: 1px solid var(--iz-border); }
.co-head { display: grid; gap: 14px; max-width: 60ch; margin-bottom: 40px; }
.co-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; max-width: none; }
.co-head-row > div { display: grid; gap: 14px; max-width: 60ch; }
.co-head-row .tlink { padding-bottom: 6px; }
.slede { font-size: 17px; line-height: 1.55; color: var(--iz-muted-fg); text-wrap: pretty; }
@media (min-width: 1024px) { .co-head { margin-bottom: 64px; } .slede { font-size: 19px; } }

/* ---------- hero ---------- */
.co-hero { padding-top: 48px; }
@media (min-width: 1024px) { .co-hero { padding-top: 96px; } }
.co-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--iz-muted-fg); }
.co-kicker-mark { width: 18px; height: 18px; color: var(--iz-fg); fill: currentColor; }
.co-display { margin-top: 20px; font-size: clamp(44px, 8.2vw, 116px); line-height: .96; letter-spacing: -0.02em; max-width: 14ch; text-wrap: balance; color: var(--iz-fg); }
.co-hero-row { display: grid; gap: 28px; margin-top: 28px; }
.co-lede { font-size: 18px; line-height: 1.55; color: var(--iz-muted-fg); max-width: 54ch; text-wrap: pretty; }
.co-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) {
  .co-hero-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; margin-top: 40px; }
  .co-lede { font-size: 20px; }
}
@media (max-width: 379px) { .co-cta .btn { width: 100%; } }

/* film panel: the Velanthe loop, poster first, no text over the picture */
.co-film { position: relative; isolation: isolate; overflow: hidden; margin: 48px 0 0; aspect-ratio: 4 / 5; border-radius: 18px; background: var(--iz-sunken); box-shadow: inset 0 0 0 1px var(--iz-ring-img); }
@media (min-width: 560px) { .co-film { aspect-ratio: 16 / 10; border-radius: 22px; } }
@media (min-width: 1024px) { .co-film { margin-top: 72px; aspect-ratio: 2.25 / 1; border-radius: 26px; } }
.co-film-poster, .co-film video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.co-film video { opacity: 0; transition: opacity 700ms var(--iz-ease-out); }
.co-film.is-playing video { opacity: 1; }
.co-film-credit { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 28px); height: 34px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .22); background: rgb(12 14 12 / .74); color: #FFFFFF; font-size: 13px; text-decoration: none; white-space: nowrap; overflow: hidden; }
.co-film-credit b { font-weight: 600; }
.co-film-credit:hover { background: rgb(12 14 12 / .92); }
.co-film :focus-visible { outline-color: #FFFFFF; box-shadow: 0 0 0 4px #0A0A0B; }
@media (min-width: 700px) { .co-film-credit { left: 20px; bottom: 20px; } }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { .co-film-credit { background: #0C0E0C; } }

/* ---------- three doors ---------- */
.doors { display: grid; gap: 72px; }
.door { display: grid; gap: 24px; align-items: center; }
.door-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--iz-sunken); transition: translate var(--iz-dur-slow) var(--iz-ease-out), box-shadow var(--iz-dur-slow) var(--iz-ease-out); }
.door-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--iz-ring-img); pointer-events: none; }
.door-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale 900ms var(--iz-ease-out); }
.door:hover .door-media { translate: 0 -4px; box-shadow: var(--iz-lift); }
.door:hover .door-media img { scale: 1.02; }
.door-text { display: grid; gap: 16px; justify-items: start; }
.door-n { display: flex; align-items: center; gap: 12px; width: 100%; font-size: 13px; color: var(--iz-muted-fg); }
.door-n .mono { color: var(--iz-fg); }
.door-n::after { content: ""; flex: 1; height: 1px; background: var(--iz-border); }
.door-title { font-size: 40px; line-height: 1; letter-spacing: -0.012em; }
.door-body { font-size: 17px; line-height: 1.55; color: var(--iz-muted-fg); max-width: 46ch; text-wrap: pretty; }
.door-facts { display: grid; gap: 0; width: 100%; max-width: 46ch; border-top: 1px solid var(--iz-border); font-size: 14px; }
.door-facts li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--iz-border); }
.door-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--iz-mark-accent); flex: none; }
.door-text .btn { margin-top: 8px; }
@media (min-width: 1024px) {
  .doors { gap: 128px; }
  .door { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; }
  .door:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .door:nth-child(even) .door-media { order: 2; }
  .door-media { border-radius: 24px; }
  .door-title { font-size: 56px; }
}

/* ---------- selected work: Market cards, with a one-line description under the kind ---------- */
.co-work .card-img img { object-position: center; }
.co-desc { font-size: 14px; line-height: 1.45; color: var(--iz-muted-fg); text-wrap: pretty; max-width: 52ch; }
.co-work .card-meta { font-size: 13px; color: var(--iz-faint-fg); }

/* ---------- how we work ---------- */
.how { display: grid; gap: 32px; counter-reset: none; }
.how li { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid var(--iz-border-strong); }
.how-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--iz-border-strong); font-size: 13px; color: var(--iz-fg); }
.how h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.how p { color: var(--iz-muted-fg); max-width: 48ch; text-wrap: pretty; }
@media (min-width: 900px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }

/* ---------- about: the Pivot ---------- */
.about { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; } }
.pivot { position: relative; border: 1px solid var(--iz-border); border-radius: 24px; background: var(--iz-bg-subtle); overflow: hidden; }
.pivot-stage { display: grid; place-items: center; aspect-ratio: 1 / 1; max-height: 560px; width: 100%;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--iz-fg) 16%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px; background-position: center; }
.pivot-mark { --turn: 0deg; width: 56%; height: auto; color: var(--iz-fg); fill: currentColor; transform: rotate(var(--turn)); transition: transform 700ms var(--iz-ease-out); will-change: transform; }
.pivot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 16px 14px 20px; border-top: 1px solid var(--iz-border); background: var(--iz-surface); }
.pivot-word { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1 var(--iz-mono); color: var(--iz-fg); }
.pivot-word svg { width: 24px; height: 12px; fill: none; stroke: var(--iz-muted-fg); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.about-text { display: grid; gap: 22px; }
.about-lede { font-size: 18px; line-height: 1.6; color: var(--iz-muted-fg); max-width: 56ch; text-wrap: pretty; }
@media (min-width: 1024px) { .about-lede { font-size: 20px; } }
.pivot-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 13px; color: var(--iz-muted-fg); }
.eq-m { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--iz-border); background: var(--iz-surface); }
.eq-m svg { width: 26px; height: 26px; color: var(--iz-fg); fill: currentColor; }
.eq-r svg { transform: rotate(180deg); }
.founder { display: grid; gap: 12px; margin-top: 10px; padding-top: 26px; border-top: 1px solid var(--iz-border); }
.founder h3 { font-size: 14px; font-weight: 600; color: var(--iz-fg); }
.founder p { color: var(--iz-muted-fg); max-width: 60ch; text-wrap: pretty; }
.founder b { color: var(--iz-fg); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .pivot-mark, .door-media, .door-media img { transition: none; } }

/* ---------- from real projects ---------- */
.proj { display: grid; gap: 20px; }
@media (min-width: 860px) { .proj { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.proj-card { display: grid; gap: 14px; align-content: start; padding: 26px 24px; border: 1px solid var(--iz-border); border-radius: 20px; background: var(--iz-surface); }
@media (min-width: 1024px) { .proj-card { padding: 40px; gap: 16px; } }
.proj-k { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--iz-muted-fg); }
.proj-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--iz-mark-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--iz-mark-accent) 18%, transparent); }
.proj-card h3 { font-family: var(--iz-display); font-weight: 400; font-size: 34px; letter-spacing: -0.01em; line-height: 1.05; }
@media (min-width: 1024px) { .proj-card h3 { font-size: 42px; } }
.proj-card p { color: var(--iz-muted-fg); text-wrap: pretty; }
.proj-card .proj-meta { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--iz-border); font-size: 12px; color: var(--iz-faint-fg); }
.proj-note { margin-top: 20px; font-size: 14px; }

/* ---------- contact ---------- */
.co-contact { padding-block: 0 72px; }
@media (min-width: 1024px) { .co-contact { padding-bottom: 128px; } }
.cc { display: grid; gap: 28px; padding: 32px 22px; border: 1px solid var(--iz-border); border-radius: 24px; background: var(--iz-bg-subtle); }
@media (min-width: 700px) { .cc { padding: 48px; } }
@media (min-width: 1024px) { .cc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; padding: 72px; border-radius: 28px; align-items: end; } }
.cc > div { display: grid; gap: 14px; }
.cc-lede { font-size: 17px; color: var(--iz-muted-fg); max-width: 44ch; }
.cc-act { justify-items: start; }
.cc-mail { font-family: var(--iz-display); font-size: clamp(30px, 7.4vw, 64px); line-height: 1.05; letter-spacing: -0.012em; color: var(--iz-fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; text-decoration-color: var(--iz-border-strong); overflow-wrap: anywhere; }
.cc-mail:hover { text-decoration-color: currentColor; }
.cc-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cc-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
@media (max-width: 379px) { .cc-btns .btn { width: 100%; } }

/* ---------- legal pages ---------- */
.lg { padding-block: 40px var(--iz-section); }
@media (min-width: 1024px) { .lg { padding-top: 72px; } }
.lg-head { display: grid; gap: 14px; max-width: 760px; }
.lg-kicker { font-size: 14px; font-weight: 500; color: var(--iz-muted-fg); }
.lg-kicker a { color: inherit; }
.lg-title { font-family: var(--iz-display); font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: -0.012em; text-wrap: balance; }
@media (min-width: 1024px) { .lg-title { font-size: 68px; } }
.lg-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.lg-meta .chip { height: 26px; padding: 0 10px; font-size: 13px; color: var(--iz-fg); }
.lg-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--iz-border); border-radius: var(--iz-r-lg); background: var(--iz-bg-subtle); font-size: 14px; color: var(--iz-muted-fg); max-width: 760px; }
.lg-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--iz-muted-fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lg-grid { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 1024px) { .lg-grid { grid-template-columns: 220px minmax(0, 760px); gap: 72px; margin-top: 56px; } }
.lg-toc { font-size: 14px; }
.lg-toc h2 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.lg-toc ol { display: grid; gap: 2px; border-left: 1px solid var(--iz-border); }
.lg-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--iz-muted-fg); text-decoration: none; }
.lg-toc a:hover { color: var(--iz-fg); border-left-color: var(--iz-fg); }
@media (min-width: 1024px) { .lg-toc > div { position: sticky; top: calc(var(--iz-head-h) + 32px); } }
@media (max-width: 1023px) { .lg-toc { padding: 16px 18px; border: 1px solid var(--iz-border); border-radius: var(--iz-r-lg); } }
.lg-body { max-width: 760px; }
.lg-body > section { scroll-margin-top: calc(var(--iz-head-h) + 24px); }
.lg-body > section + section { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--iz-border); }
.lg-body h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.lg-body h3 { margin-top: 22px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.lg-body p, .lg-body li { color: var(--iz-muted-fg); text-wrap: pretty; }
.lg-body b, .lg-body strong { color: var(--iz-fg); font-weight: 500; }
.lg-body h2 + *, .lg-body h3 + * { margin-top: 12px; }
.lg-body p + p, .lg-body p + ul, .lg-body ul + p, .lg-body table + p, .lg-body p + table { margin-top: 12px; }
.lg-body ul { padding-left: 1.2em; list-style: disc; display: grid; gap: 8px; }
.lg-body ol.lg-num { padding-left: 1.4em; list-style: decimal; display: grid; gap: 8px; }
.lg-body li::marker { color: var(--iz-faint-fg); }
.lg-body a { color: var(--iz-link); }
.lg-sum { margin-top: 0; padding: 20px 22px; border-radius: var(--iz-r-xl); background: var(--iz-bg-subtle); border: 1px solid var(--iz-border); }
.lg-sum h2 { font-size: 16px; }
.lg-tiers { width: 100%; border-collapse: collapse; font-size: 14px; }
.lg-tiers th, .lg-tiers td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--iz-border); }
.lg-tiers thead th { font-size: 13px; font-weight: 600; color: var(--iz-fg); }
.lg-tiers tbody th { font-weight: 600; color: var(--iz-fg); white-space: nowrap; }
.lg-tiers td { color: var(--iz-muted-fg); }
.lg-table-wrap { overflow-x: auto; }
.lg-table-wrap + p { margin-top: 16px; }
.lg-body, .lg-grid > * { min-width: 0; }
@media (max-width: 599px) {
  .lg-tiers thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lg-tiers, .lg-tiers tbody, .lg-tiers tr, .lg-tiers th, .lg-tiers td { display: block; }
  .lg-tiers tr { padding: 14px 0; border-bottom: 1px solid var(--iz-border); }
  .lg-tiers th, .lg-tiers td { padding: 3px 0; border: 0; }
  .lg-tiers tbody th { font-size: 16px; padding-bottom: 6px; }
  .lg-tiers td::before { content: attr(data-l) ": "; color: var(--iz-fg); font-weight: 500; }
}
.lg-docs { display: grid; gap: 12px; margin-top: 40px; max-width: 760px; }
@media (min-width: 700px) { .lg-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lg-docs a { display: grid; gap: 6px; padding: 22px; border: 1px solid var(--iz-border); border-radius: var(--iz-r-xl); background: var(--iz-surface); text-decoration: none; transition: border-color var(--iz-dur) var(--iz-ease), background-color var(--iz-dur) var(--iz-ease); }
.lg-docs a:hover { border-color: var(--iz-border-strong); background: var(--iz-bg-subtle); }
.lg-docs b { font-size: 17px; font-weight: 600; }
.lg-docs span { font-size: 14px; color: var(--iz-muted-fg); }
.lg-other { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--iz-border); font-size: 14px; color: var(--iz-muted-fg); }
.lg-other a { color: var(--iz-link); }

@media print {
  .top, .mobile-nav, .co-foot, .lg-toc, .skip { display: none !important; }
  .lg-grid { display: block; }
  .lg-body p, .lg-body li { color: #000; }
}
