/* Direction: same family as GLD (bright, airy, photographic) with its own identity.
   Squarer geometry (framed "areas"), a cobalt accent with sky / butter / lilac fields, Hanken Grotesk set
   a little heavier, and a split hero with a tall photograph. Left-aligned throughout. */
:root {
  --bg: #ffffff;
  --surface: #f5f6f9;
  --ink: #161b2b;
  --muted: #5b6275;
  --line: #e3e6ee;
  --deep: #23408e;          /* cobalt, for text, buttons and graphics */
  --sky: #dce8f8;
  --butter: #f5edca;
  --lilac: #e8e3f5;
  --stroke: #23408e;
  --on-deep: #ffffff;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --r-lg: 18px;
  --r-md: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10131c; --surface: #171b27; --ink: #e9ecf4; --muted: #9aa1b4; --line: #262b3a;
    --deep: #9db5f2; --sky: #1a2640; --butter: #2c2817; --lilac: #241f36; --stroke: #9db5f2;
    --on-deep: #10131c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10131c; --surface: #171b27; --ink: #e9ecf4; --muted: #9aa1b4; --line: #262b3a;
  --deep: #9db5f2; --sky: #1a2640; --butter: #2c2817; --lilac: #241f36; --stroke: #9db5f2;
  --on-deep: #10131c; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
.wrap {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Review bar (review copy only) */
.review-bar { background: var(--deep); color: var(--on-deep); font-size: 0.85rem; }
.review-bar .wrap { padding-block: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.switch { display: inline-flex; border: 1px solid currentColor; border-radius: 8px; overflow: hidden; }
.switch button { font: inherit; font-size: 0.82rem; padding: 4px 14px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--on-deep); color: var(--deep); }
.ja { display: none; }
html.lang-ja .en { display: none; }
html.lang-ja .ja { display: revert; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 22px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark b { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; padding-block: 4px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--deep); }

/* Type */
.display { font-weight: 600; margin: 0; letter-spacing: -0.03em; line-height: 1.03; font-size: clamp(2.7rem, 6vw, 5rem); max-width: 13ch; text-wrap: balance; }
.title { font-weight: 600; margin: 0; letter-spacing: -0.028em; line-height: 1.06; font-size: clamp(2.3rem, 5vw, 4rem); max-width: 16ch; text-wrap: balance; }
h2 { font-weight: 600; margin: 0; letter-spacing: -0.022em; line-height: 1.12; font-size: clamp(1.8rem, 3.2vw, 2.5rem); text-wrap: balance; }
h3 { font-weight: 600; margin: 0; letter-spacing: -0.01em; line-height: 1.28; font-size: 1.25rem; }
.lede { color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.55; max-width: 44ch; }
.muted { color: var(--muted); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; width: fit-content; text-decoration: none;
  font-size: 0.98rem; font-weight: 600; padding: 14px 24px; border-radius: 10px;
  background: var(--deep); color: var(--on-deep); transition: opacity 160ms ease;
}
.btn:hover { opacity: 0.88; }
.textlink { color: var(--deep); font-weight: 600; text-decoration: none; width: fit-content; border-bottom: 2px solid currentColor; padding-bottom: 1px; }

/* Photos */
.photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; position: relative; background: var(--surface); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-tall { aspect-ratio: 4 / 5; }
.photo-banner { aspect-ratio: 5 / 2; }
.photo-frame { position: relative; }
.photo-frame::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--deep); border-radius: var(--r-lg);
}
.photo-frame .photo { position: relative; }

/* Hero */
.hero .wrap { padding-block: 48px 80px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero .photo-frame { max-width: 460px; justify-self: end; width: 100%; }

/* Sections */
.sec .wrap { padding-block: 96px; display: grid; gap: 40px; }
.sec-head { display: grid; gap: 16px; max-width: 760px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.stack { display: grid; gap: 22px; min-width: 0; }
.band { background: var(--surface); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: var(--bg); }
.tile .field { height: 150px; display: grid; place-items: center; }
.tile .art { width: 96px; height: 96px; }
.tile .txt { padding: 26px; display: grid; gap: 10px; align-content: start; }
.tile .txt p { color: var(--muted); }
.tint-sky { background: var(--sky); }
.tint-butter { background: var(--butter); }
.tint-lilac { background: var(--lilac); }

/* Points */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.points > div { border-top: 3px solid var(--deep); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.points p { color: var(--muted); }
.split .points { grid-template-columns: 1fr; gap: 22px; }

/* Closing */
.closing .wrap { padding-block: 32px 96px; }
.closing-box {
  border-radius: var(--r-lg); padding: clamp(32px, 6vw, 64px); display: grid;
  grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; position: relative; overflow: hidden;
}
.closing-box p { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.14; letter-spacing: -0.022em; font-weight: 600; max-width: 22ch; position: relative; }
.closing-box .btn { position: relative; }
.closing-box .art { position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; opacity: 0.3; }

/* Inner page opening */
.page-open .wrap { padding-block: 48px 24px; display: grid; gap: 22px; }
.page-open .photo { margin-top: 16px; }

/* Services */
.svc-list { display: grid; gap: 16px; }
.svc { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr); }
.svc .field { display: grid; place-items: center; padding: 24px; }
.svc .art { width: 96px; height: 96px; }
.svc-head { display: grid; gap: 12px; padding: 30px; align-content: start; }
.svc-head p { color: var(--muted); }
.svc ul { margin: 0; padding: 30px 30px 30px 0; list-style: none; display: grid; gap: 10px; align-content: start; }
.svc li { padding-left: 22px; position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; background: var(--deep); border-radius: 2px; }
.note { background: var(--surface); border-radius: var(--r-md); padding: 20px 22px; color: var(--muted); font-size: 0.96rem; }

/* Tenets */
.tenets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tenets > div { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 10px; align-content: start; background: var(--bg); }
.tenets p { color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; padding: 26px 22px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); color: var(--deep); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: 0.94rem; }

/* Profile table */
.table-wrap { overflow-x: auto; }
.profile { width: 100%; border-collapse: collapse; }
.profile th, .profile td { text-align: left; vertical-align: top; padding: 17px 0; border-bottom: 1px solid var(--line); }
.profile th { width: 36%; font-weight: 400; color: var(--muted); padding-right: 20px; }
.profile td { font-variant-numeric: tabular-nums; }

/* Contact */
.mail { font-size: clamp(1.8rem, 4.4vw, 3rem); letter-spacing: -0.028em; font-weight: 600; line-height: 1.1; user-select: all; overflow-wrap: anywhere; color: var(--deep); }
.copy { font: inherit; font-size: 0.92rem; padding: 9px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; width: fit-content; }
.copy:hover { background: var(--surface); }
.info-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-cards > div { border-radius: var(--r-lg); padding: 30px; display: grid; gap: 12px; align-content: start; }
.info-cards p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--surface); color: var(--muted); font-size: 0.88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .tiles, .points { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc .field { padding: 24px; justify-items: start; }
  .svc-head { padding: 0 26px; }
  .svc ul { padding: 0 26px 28px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; border-top: 1px solid var(--line); grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; }
  .steps li:first-child { border-top: 0; }
  .steps li::before { grid-row: span 2; }
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; padding-block: 28px 64px; }
  .hero .photo-frame { justify-self: start; max-width: calc(100% - 22px); }
  .sec .wrap { padding-block: 64px; gap: 28px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .tenets, .info-cards { grid-template-columns: 1fr; }
  .closing-box { grid-template-columns: 1fr; }
  .closing-box .art { display: none; }
  .closing .wrap { padding-block: 16px 64px; }
  .photo-banner { aspect-ratio: 16 / 10; }
  .page-open .wrap { padding-block: 28px 20px; }
  .site-nav { gap: 16px; }
  .profile th { width: 40%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
