/* Miyashiro Ventures LLC: miyashiro.co
   Colors and type are tokens. Use the custom properties, never raw hex below :root. */

:root {
  --navy: #0C1B33;
  --gold: #C49A3C;          /* buttons, rules, on navy */
  --gold-light: #D4AC55;    /* small gold labels on navy */
  --gold-ink: #7A5716;      /* small gold text on white (4.5:1) */
  --gold-ink-hover: #5C4010;
  --cream: #F4F1E8;         /* text on navy */
  --mist: #C9D1DD;          /* secondary text on navy */
  --mist-dim: #B9C2D0;      /* fine print on navy */
  --ink: #0C1B33;
  --ink-soft: #3A4558;      /* body copy on white */
  --line: #DCE1E8;
  --field: #8D97A8;         /* form borders */
  --ground: #FFFFFF;
  --ground-alt: #F3F5F8;
  --on-navy-line: rgba(255, 255, 255, 0.18);
  --navy-hover: #1A2C4C;
  --flag: #FFF4D6;          /* placeholder highlight */
  --error: #A12A1F;
  --ok: #1E6B3A;

  --display: 'Cormorant Garamond', Georgia, serif;
  --label: Montserrat, 'Helvetica Neue', Arial, sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: 32px;
  --header-h: 80px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); }
a:hover { color: var(--gold-ink-hover); }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 12px 18px;
  font-family: var(--label); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.on-navy :focus-visible, .site-header :focus-visible { outline-color: var(--gold); }

/* ---------- Type pieces ---------- */

.eyebrow {
  font-family: var(--label); font-weight: 600; font-size: 12px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-ink);
}
.on-navy .eyebrow { color: var(--gold-light); }

.h-section {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(34px, 3.6vw, 50px); line-height: 1.08;
}
.lede { color: var(--ink-soft); font-size: 20px; }
.muted { color: var(--ink-soft); }

/* Placeholders still to fill before launch. Easy to spot, easy to grep for. */
.todo {
  background: var(--flag); color: var(--ink); outline: 1px dashed var(--gold-ink);
  padding: 0 4px; font-style: normal;
}
.on-navy .todo { background: rgba(196, 154, 60, 0.22); color: var(--cream); outline-color: var(--gold); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: 0.04em;
  padding: 16px 28px; border-radius: var(--radius); border: 1px solid transparent;
  text-align: center; line-height: 1.3;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-light); color: var(--navy); }
.btn--ghost { border-color: rgba(244, 241, 232, 0.5); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); color: var(--cream); }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--navy:hover { background: var(--navy-hover); color: var(--cream); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--cream); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 32px;
  min-height: var(--header-h); padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand img { width: 47px; height: 52px; }
.brand__words { display: flex; flex-direction: column; gap: 5px; }
.brand__name {
  font-family: var(--display); font-weight: 600; font-size: 23px;
  letter-spacing: 0.14em; line-height: 1;
}
.brand__sub {
  font-family: var(--label); font-weight: 600; font-size: 10px;
  letter-spacing: 0.42em; line-height: 1; color: var(--gold-light);
}

.nav { display: flex; align-items: center; gap: 4px 28px; font-family: var(--label); font-weight: 500; font-size: 14px; letter-spacing: 0.04em; }
.nav a { color: var(--cream); text-decoration: none; padding: 13px 0; }
.nav a:hover { color: var(--gold-light); }
.nav a.btn { padding: 13px 22px; color: var(--navy); font-size: 14px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid rgba(244, 241, 232, 0.4); border-radius: var(--radius);
  align-items: center; justify-content: center;
}
.nav-toggle svg { stroke: var(--cream); }

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { width: 40px; height: 44px; }
  .brand__name { font-size: 20px; }
  .brand__sub { font-size: 9px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px var(--gutter) 24px; font-size: 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav a.btn { margin-top: 16px; border-bottom: 0; padding: 15px 20px; font-size: 15px; }
}
/* Without JavaScript the menu cannot open, so show it inline. */
.no-js .nav-toggle { display: none; }
@media (max-width: 960px) {
  .no-js .nav { display: flex; position: static; padding: 0 0 12px; flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
  .no-js .site-header__bar { flex-wrap: wrap; }
}

/* ---------- Bands ---------- */

.band { padding-top: 96px; padding-bottom: 96px; }
.band--alt { background: var(--ground-alt); }
.on-navy { background: var(--navy); color: var(--cream); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 48px; }

/* Hero */
.hero__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px;
  padding-top: 88px; padding-bottom: 72px;
}
.hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(44px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.01em;
}
.hero__lede { max-width: 560px; font-size: 21px; line-height: 1.5; color: var(--mist); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.hero__mark { flex: 0 1 380px; min-width: 240px; display: flex; justify-content: center; }
.hero__mark img { width: 100%; max-width: 380px; }
.ridge { display: block; width: 100%; height: 80px; }
.ridge polygon { fill: var(--ground); }
.ridge polyline { fill: none; stroke: var(--gold); stroke-width: 1.5; }

/* The question */
.question { text-align: center; }
.question .wrap { max-width: 880px; display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 72px; padding-bottom: 104px; }
.question blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(34px, 4vw, 54px); line-height: 1.1; }
.rule-gold { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 0; }
.question p { max-width: 680px; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.card { background: var(--ground); border-top: 3px solid var(--navy); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.group-label { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 16px; }
.cards + .group-label { margin-top: 40px; }
.cards--pair { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card h3 { font-family: var(--label); font-weight: 600; font-size: 18px; line-height: 1.3; }
.card p { color: var(--ink-soft); font-size: 17px; }
.card__outcome { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; }
.card__outcome .eyebrow { display: block; font-size: 11px; letter-spacing: 0.2em; margin-bottom: 2px; }

/* The 4S Model */
.levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.level { position: relative; border-top: 3px solid var(--navy); padding: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.level__num { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--gold-ink); }
.level h3 { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.1; }
.level p { color: var(--ink-soft); }
.level + .level::before {
  content: ""; position: absolute; top: -9px; left: -19px; width: 14px; height: 14px;
  border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg);
}
.method__note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--gold); max-width: 760px; color: var(--ink-soft); }
@media (max-width: 1060px) { .level + .level::before { display: none; } }

/* How we work */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 48px; }
.way { border-top: 1px solid var(--gold); padding: 28px 0 24px; display: flex; flex-direction: column; gap: 12px; }
.way .eyebrow { letter-spacing: 0.24em; }
.way h3 { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.1; }
.way p { color: var(--ink-soft); }

/* From the field */
.field__inner { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.field__story { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.field__story h2 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; }
.field__story p { color: var(--mist); }
.field__list-wrap { flex: 1 1 420px; min-width: 0; }
.field__list { list-style: none; margin: 0; padding: 0; }
.field__list-head { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: 0.24em; color: var(--mist-dim); padding-bottom: 16px; }
.field__list li { border-top: 1px solid var(--on-navy-line); padding: 20px 0; display: flex; gap: 20px; align-items: baseline; }
.field__list li:last-child { border-bottom: 1px solid var(--on-navy-line); }
.field__list .numeral { font-family: var(--display); font-size: 26px; color: var(--gold-light); line-height: 1; min-width: 1.4em; }

/* Government */
.gov__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 48px; }
.gov__head .section-head { margin-bottom: 0; max-width: 720px; }
.gov__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 56px; align-items: start; }
.gov__grid h3 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.1; margin-bottom: 18px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-top: 1px solid var(--line); padding: 13px 0; }
.rows li:first-child { border-top: 2px solid var(--navy); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.facts { background: var(--ground-alt); padding: 26px 28px 14px; }
.facts h3 { margin-bottom: 10px; }
.facts dl { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* About */
.about__inner { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.about__portrait {
  flex: 0 1 380px; min-width: 260px; min-height: 480px;
  background: var(--ground); border: 1px dashed var(--field);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 0.2em; color: var(--ink-soft);
}
.about__photo { flex: 0 1 380px; min-width: 200px; max-width: 380px; aspect-ratio: 1; height: auto; align-self: flex-start; }
.about__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about__copy p { color: var(--ink-soft); }
.person-role { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.teammate { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 80px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.teammate img { flex: 0 1 380px; min-width: 200px; max-width: 380px; aspect-ratio: 1; object-fit: cover; }
.teammate__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.teammate__copy p { color: var(--ink-soft); }
.teammate__copy .person-role { color: var(--ink); }
.kanji { font-family: 'Noto Serif JP', serif; font-weight: 600; color: var(--ink); }

/* Contact */
.contact__inner { display: flex; flex-wrap: wrap; gap: 56px 80px; }
.form { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; margin: 0; }
.form__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; }
.field .opt { font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.field input, .field textarea {
  font: inherit; color: var(--ink); padding: 13px 14px; min-width: 0;
  border: 1px solid var(--field); border-radius: var(--radius); background: var(--ground);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; border: 0; padding: 16px 32px; }
.form__status { min-height: 1.5em; font-size: 16px; }
.form__status.is-error { color: var(--error); }
.form__status.is-ok { color: var(--ok); }

.contact__side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.talk { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.talk h3 { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1.1; }
.talk p { color: var(--mist); }
.talk .btn { align-self: flex-start; padding: 14px 24px; }
.contact__facts { margin: 0; }
.contact__facts div { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact__facts div:first-child { border-top: 2px solid var(--navy); }
.contact__facts dt { color: var(--ink-soft); }
.contact__facts dd { margin: 0; font-weight: 600; text-align: right; }
.contact__facts a { color: var(--ink); }

/* Footer */
.site-footer { font-size: 16px; color: var(--mist); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 36px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 64px; }
.site-footer__top img { width: 130px; height: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-family: var(--label); font-weight: 500; font-size: 14px; letter-spacing: 0.04em; }
.site-footer nav a { color: var(--cream); text-decoration: none; padding: 13px 0; }
.site-footer nav a:hover { color: var(--gold-light); }
.site-footer nav a.to-top { color: var(--gold-light); }
.site-footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: 14px; color: var(--mist-dim);
}
.site-footer__base a { color: var(--mist-dim); }
.site-footer__base a:hover { color: var(--cream); }

/* Plain inner pages (Privacy, Accessibility) */
.page { padding-top: 72px; padding-bottom: 96px; }
.page .wrap { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.page h1 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 4.4vw, 58px); line-height: 1.05; margin-bottom: 8px; }
.page h2 { font-family: var(--display); font-weight: 600; font-size: 28px; margin-top: 18px; }
.page p, .page li { color: var(--ink-soft); }

/* ---------- Phones ---------- */

@media (max-width: 640px) {
  :root { --gutter: 24px; }
  body { font-size: 17px; }
  .band { padding-top: 56px; padding-bottom: 56px; }
  .section-head, .gov__head { margin-bottom: 28px; }
  .hero__inner { padding-top: 40px; padding-bottom: 24px; gap: 28px; }
  .hero__copy { gap: 22px; }
  .hero__lede { font-size: 18px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__mark { min-width: 0; }
  .hero__mark img { max-width: 200px; }
  .ridge { height: 44px; }
  .question .wrap { padding-top: 32px; padding-bottom: 56px; gap: 20px; }
  .lede { font-size: 18px; }
  .card { padding: 24px 20px; }
  .way h3 { font-size: 28px; }
  .gov__head .btn, .form .btn, .talk .btn { width: 100%; align-self: stretch; }
  .talk { padding: 24px; }
  .site-footer__top { flex-direction: column; text-align: center; }
  .site-footer nav { justify-content: center; }
  .site-footer__base { flex-direction: column; text-align: center; }
}
