/* Direction: "bright, airy, photographic advisory".
   White canvas, one sans family set large and tight, big rounded photographs, and three soft colour fields
   (lagoon, sand, blush) used one per section with small line graphics. Left-aligned throughout. */
:root {
  --bg: #ffffff;
  --surface: #f4f6f5;
  --ink: #172024;
  --muted: #5d686c;
  --line: #e2e6e5;
  --deep: #1d5c57;          /* lagoon, for text and buttons */
  --lagoon: #d9ede9;        /* colour fields */
  --sand: #f2eadc;
  --blush: #f6e1da;
  --stroke: #1d5c57;        /* graphic line colour */
  --on-deep: #ffffff;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
  --r-pill: 999px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1517; --surface: #161e21; --ink: #e8eeec; --muted: #9aa7a6; --line: #253033;
    --deep: #8fd0c6; --lagoon: #173431; --sand: #2b2620; --blush: #2f2220; --stroke: #8fd0c6;
    --on-deep: #0f1517; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1517; --surface: #161e21; --ink: #e8eeec; --muted: #9aa7a6; --line: #253033;
  --deep: #8fd0c6; --lagoon: #173431; --sand: #2b2620; --blush: #2f2220; --stroke: #8fd0c6;
  --on-deep: #0f1517; 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; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; border-radius: 6px; }
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(--ink); color: var(--bg); 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 rgba(255, 255, 255, 0.35); border-radius: var(--r-pill); 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(--bg); color: var(--ink); }
.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 svg { flex: none; }
.wordmark b { font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 0.94rem; padding: 7px 14px; border-radius: var(--r-pill); }
.site-nav a:hover { color: var(--ink); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }

/* Type */
.display {
  font-weight: 500; margin: 0; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(2.8rem, 7vw, 5.8rem); max-width: 14ch; text-wrap: balance;
}
.title {
  font-weight: 500; margin: 0; letter-spacing: -0.03em; line-height: 1.05;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem); max-width: 16ch; text-wrap: balance;
}
h2 { font-weight: 500; margin: 0; letter-spacing: -0.025em; line-height: 1.12; font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-wrap: balance; }
h3 { font-weight: 500; margin: 0; letter-spacing: -0.015em; line-height: 1.25; font-size: 1.3rem; }
.lede { color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.25rem); 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: 500; padding: 13px 24px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--bg); transition: transform 160ms ease, opacity 160ms ease;
}
.btn:hover { opacity: 0.86; }
.btn-light { background: var(--bg); color: var(--ink); }
.textlink { color: var(--deep); font-weight: 500; text-decoration: none; width: fit-content; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }

/* Home hero */
.hero .wrap { padding-block: 56px 28px; display: grid; gap: 28px; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 40px; }
.hero-row .side { display: grid; gap: 22px; max-width: 420px; justify-self: end; }
.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-hero { aspect-ratio: 21 / 9; }
.photo-hero img { object-position: 50% 38%; }
.photo-banner { aspect-ratio: 5 / 2; }
.photo-tall { aspect-ratio: 4 / 5; }
.photo-tag {
  position: absolute; left: 18px; bottom: 18px; background: rgba(255, 255, 255, 0.88); color: #172024;
  font-size: 0.82rem; padding: 6px 12px; border-radius: var(--r-pill); backdrop-filter: blur(6px);
}

/* 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: 56px; align-items: center; }
.stack { display: grid; gap: 22px; min-width: 0; }

/* Colour tiles (home: what we do) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { border-radius: var(--r-lg); padding: 30px; display: grid; gap: 14px; align-content: start; min-height: 320px; }
.tile .art { width: 92px; height: 92px; margin-bottom: 26px; }
.tile p { color: var(--muted); }
.tint-lagoon { background: var(--lagoon); }
.tint-sand { background: var(--sand); }
.tint-blush { background: var(--blush); }

/* Points (home: how we work) */
.points { display: grid; gap: 0; border-top: 1px solid var(--line); }
.points > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.points h3 { font-size: 1.05rem; }
.points p { color: var(--muted); }

/* Closing band */
.closing .wrap { padding-block: 32px 96px; }
.closing-box {
  border-radius: var(--r-lg); padding: clamp(32px, 6vw, 72px); display: flex; justify-content: space-between;
  align-items: end; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.closing-box p { font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 500; max-width: 20ch; position: relative; }
.closing-box .btn { position: relative; }
.closing-box .art { position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; opacity: 0.4; }

/* Inner page opening */
.page-open .wrap { padding-block: 56px 28px; display: grid; gap: 22px; }
.page-open .photo { margin-top: 18px; }

/* Services detail */
.svc-list { display: grid; gap: 16px; }
.svc { border-radius: var(--r-lg); padding: 34px; display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.svc .art { width: 92px; height: 92px; }
.svc-head { display: grid; gap: 12px; }
.svc-head p { color: var(--muted); }
.svc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.svc li { background: var(--bg); border-radius: 14px; padding: 9px 18px; font-size: 0.95rem; width: fit-content; max-width: 100%; }
.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 { background: var(--surface); border-radius: var(--r-lg); padding: 30px; display: grid; gap: 10px; align-content: start; }
.tenets p { color: var(--muted); }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; padding: 26px 22px; border-radius: var(--r-md); background: var(--lagoon); }
.steps li::before {
  content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--deep); color: var(--on-deep);
  display: grid; place-items: center; font-weight: 500; font-size: 0.95rem; margin-bottom: 8px;
}
.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: 18px 0; border-bottom: 1px solid var(--line); }
.profile th { width: 34%; font-weight: 400; color: var(--muted); padding-right: 20px; }
.profile td { font-variant-numeric: tabular-nums; }

/* Contact */
.mail { font-size: clamp(1.8rem, 4.6vw, 3.2rem); letter-spacing: -0.03em; font-weight: 500; line-height: 1.1; user-select: all; overflow-wrap: anywhere; }
.contact-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.copy { font: inherit; font-size: 0.92rem; padding: 9px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.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 { border-top: 1px solid var(--line); 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 { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .svc { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; }
  .steps li::before { grid-row: span 2; margin: 0; }
}
@media (max-width: 760px) {
  .hero-row { grid-template-columns: 1fr; gap: 24px; }
  .hero-row .side { justify-self: start; }
  .closing-box .art { display: none; }
  .sec .wrap { padding-block: 64px; gap: 28px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .tenets, .info-cards { grid-template-columns: 1fr; }
  .points > div { grid-template-columns: 1fr; gap: 6px; }
  .photo-hero { aspect-ratio: 4 / 3; }
  .photo-banner { aspect-ratio: 16 / 10; }
  .hero .wrap, .page-open .wrap { padding-block: 32px 20px; }
  .site-nav { gap: 0; margin-left: -12px; }
  .site-nav a { padding: 6px 12px; font-size: 0.88rem; }
  .profile th { width: 40%; }
  .closing .wrap { padding-block: 16px 64px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
