/* ==========================================================================
   遠藤宏文事務所 デモサイト / style.css
   ========================================================================== */

:root {
  --cream: #f7f2e7;
  --cream-2: #f1ebdd;
  --paper: #fbf8f1;
  --sage: #e9eee3;
  --sage-2: #dfe7d8;
  --forest: #1e3a30;
  --forest-2: #14261e;
  --ink: #26352c;
  --muted: #5d6c61;
  --muted-2: #8a978d;
  --line: rgba(38, 53, 44, 0.14);
  --line-invert: rgba(247, 242, 231, 0.22);
  --accent: #bb5c34;
  --accent-dark: #9f4c29;
  --on-dark: #f3efe2;

  --serif: "Shippori Mincho", "Noto Serif JP", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --header-h: 84px;
  --wrap: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); margin: 0; color: var(--ink); font-weight: 600; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Japanese line-break control ---------- */
.jp-text,
.hero-title, .section-title, .section-title-lg,
h1, h2, h3, h4, p, li, td, th, .btn, legend, label {
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}
h1, h2, h3 { text-wrap: balance; }
p, .faq-item p { text-wrap: pretty; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- placeholder photo blocks ---------- */
.ph {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.35), transparent 55%),
    linear-gradient(135deg, #dfe9db 0%, #b9cdb8 42%, #8fab8d 78%, #6f8f74 100%);
  isolation: isolate;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 1px 2px rgba(20,30,24,0.08);
}
.ph img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ph:hover, .ph:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 20px 34px -18px rgba(20, 40, 28, 0.45);
}
.ph-4-3 { aspect-ratio: 4 / 3; }
.ph-square { aspect-ratio: 1 / 1; }
.ph-tall { aspect-ratio: 3 / 4; min-height: 320px; }
.ph-wide { aspect-ratio: 21 / 8; width: 100%; border-radius: 0; }
.ph-access { aspect-ratio: 16 / 9; border-radius: 0; }
.ph-bottom { aspect-ratio: 16 / 10; }

/* ---------- shared bits ---------- */
.eyebrow, .eyebrow-line {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.section-title, .section-title-lg {
  font-weight: 600;
  line-height: 1.35;
}
.section-title { font-size: clamp(28px, 4vw, 40px); display: flex; align-items: flex-start; gap: 14px; }
.section-title-lg { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 20px; }
.bar { width: 4px; height: 1em; background: var(--accent); flex: none; margin-top: 0.15em; }

.mini-rule { display: block; width: 40px; height: 2px; background: var(--ink); opacity: 0.5; margin: 16px 0; }
.mini-rule-invert { background: var(--on-dark); opacity: 0.55; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; border-bottom: 1px solid currentColor;
  padding-bottom: 2px; transition: opacity 0.25s var(--ease), gap 0.25s var(--ease);
}
.text-link:hover { opacity: 0.7; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  border-radius: 3px;
  font-size: 15px; letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s var(--ease);
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-3px); box-shadow: 0 14px 22px -12px rgba(150, 70, 30, 0.55); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { background: rgba(247, 242, 231, 0.96); }
.site-header.is-scrolled { border-color: var(--line); height: 68px; }
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.brand-label { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.main-nav { display: flex; gap: 34px; margin-left: auto; }
.main-nav a { font-size: 14.5px; position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--ink); transition: right 0.3s var(--ease);
}
.main-nav a:hover::after { right: 0; }
.nav-cta { margin-left: 8px; flex: none; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; background: none; border: none; padding: 0; }
.nav-toggle span { width: 100%; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 60px;
  overflow: hidden;
  background: linear-gradient(180deg, #f9f5ec 0%, var(--cream) 100%);
}
.hero-photo { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(247,242,231,0.94) 0%, rgba(247,242,231,0.72) 40%, rgba(247,242,231,0.28) 66%, rgba(247,242,231,0.02) 100%),
    linear-gradient(180deg, rgba(247,242,231,0.15) 0%, rgba(247,242,231,0) 30%, rgba(247,242,231,0) 70%, rgba(247,242,231,0.55) 100%);
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; text-align: left; }
.hero-title { font-size: clamp(34px, 5.6vw, 58px); line-height: 1.35; margin: 22px 0 18px; }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin-bottom: 34px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-link { font-size: 15px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: opacity 0.25s var(--ease); }
.hero-link:hover { opacity: 0.65; }

.hero-foot {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 80px; color: var(--muted); font-size: 14px;
}
.hero-foot .rule { width: 60px; height: 1px; background: var(--line); }

/* ==========================================================================
   CONCERNS
   ========================================================================== */
.concerns { padding: 120px 0; }
.concerns-head { display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap; margin-bottom: 60px; }
.concerns-head .section-title { flex: 1 1 380px; }
.concerns-lead { flex: 1 1 340px; color: var(--muted); font-size: 15px; max-width: 420px; }

.concern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.concern-card h3 { font-size: 24px; margin: 22px 0 0; }
.concern-card p { color: var(--muted); font-size: 15px; margin: 10px 0 16px; }

.concerns-foot { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); text-align: center; font-size: 15px; color: var(--muted); }

/* ==========================================================================
   ABOUT + 3 QUALS
   ========================================================================== */
.about-top { background: var(--cream); padding: 110px 0 100px; }
.about-top-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.about-text p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.about-sign { margin-top: 30px; }
.about-sign strong { display: block; font-family: var(--serif); font-size: 20px; margin-bottom: 6px; }
.about-sign span { font-size: 14px; color: var(--muted); }

.about-bottom { background: var(--forest); color: var(--on-dark); padding: 100px 0; }
.about-bottom-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; }
.qual-lead { position: relative; }
.numeral { position: absolute; top: -70px; left: -18px; font-family: var(--serif); font-size: 220px; color: rgba(255,255,255,0.06); line-height: 1; z-index: 0; }
.qual-lead h3 { position: relative; z-index: 1; font-size: clamp(26px, 3vw, 36px); color: var(--on-dark); line-height: 1.4; }
.qual-lead p { color: rgba(243,239,226,0.75); font-size: 15px; }

.numbered-list { display: flex; flex-direction: column; }
.numbered-list li { display: flex; gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--line-invert); }
.numbered-list li:last-child { border-bottom: none; }
.numbered-list .num { font-family: var(--serif); font-size: 30px; color: rgba(243,239,226,0.55); flex: none; width: 60px; }
.numbered-list h4 { color: var(--on-dark); font-size: 18px; margin-bottom: 6px; }
.numbered-list p { color: rgba(243,239,226,0.72); font-size: 14.5px; }

/* ==========================================================================
   SERVICE SECTIONS
   ========================================================================== */
.service-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 100px 0; }
.service-inner-rev { direction: rtl; }
.service-inner-rev > * { direction: ltr; }

.icon-list li { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.icon-list li:first-child { padding-top: 26px; border-top: 1px solid var(--line); }
.icon-list .icon { font-size: 24px; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--sage); display: flex; align-items: center; justify-content: center; }
.icon-list h4 { font-size: 17.5px; margin-bottom: 6px; }
.icon-list p { color: var(--muted); font-size: 14.5px; }

.service-footnote { color: var(--muted); font-size: 14px; margin-top: 4px; }
.service-footnote.center { text-align: center; margin: 24px 0 0; }

.service-note { background: var(--sage); padding: 26px 0; }
.note-inner { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.note-inner .icon { font-size: 20px; }

.service-c { background: var(--sage-2); }
.service-c-body { padding: 90px 0 100px; }
.service-c .section-title-lg { text-align: center; margin: 0 auto 50px; max-width: 640px; }
.service-c .eyebrow-line { text-align: center; }
.triple-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.triple-list .icon { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 50%; background: var(--paper); font-size: 26px; margin-bottom: 14px; }
.triple-list h4 { font-size: 17px; margin-bottom: 8px; }
.triple-list p { color: var(--muted); font-size: 14.5px; }
.center-cta { text-align: center; margin-top: 34px; }

/* ==========================================================================
   OFFICE (representative)
   ========================================================================== */
.office { padding: 120px 0; }
.office-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 80px; align-items: center; }
.office-text p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; max-width: 480px; }
.rep-block { margin-top: 30px; }
.rep-name { font-family: var(--serif); font-size: 26px; }
.rep-label { font-size: 13px; color: var(--muted); font-family: var(--sans); margin-right: 14px; vertical-align: middle; }
.rep-quals { font-size: 14px; color: var(--muted); margin-top: 6px; }
.rep-history { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing { background: var(--forest); color: var(--on-dark); padding: 120px 0; }
.pricing-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.pricing-brand { font-size: 13px; letter-spacing: 0.04em; color: rgba(243,239,226,0.65); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line-invert); }
.pricing .section-title-lg { color: var(--on-dark); }
.pricing-text > p.jp-text { color: rgba(243,239,226,0.78); font-size: 15px; margin-bottom: 24px; }
.price-table { margin-bottom: 26px; border-top: 1px solid var(--line-invert); }
.price-table tr { border-bottom: 1px solid var(--line-invert); }
.price-table th, .price-table td { text-align: left; padding: 18px 4px; font-weight: 500; font-size: 15.5px; }
.price-table th { width: 38%; font-family: var(--serif); font-weight: 600; }
.price-table td { color: rgba(243,239,226,0.78); font-size: 14.5px; }

.pricing-photo { position: relative; }
.photo-caption { position: absolute; font-family: var(--serif); font-size: 15px; line-height: 1.6; color: var(--on-dark); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.caption-top { top: -46px; right: 0; text-align: right; }
.caption-bottom { bottom: -50px; right: 0; text-align: right; }

/* ==========================================================================
   FLOW
   ========================================================================== */
.flow { background: var(--sage); padding: 110px 0; text-align: center; }
.flow .section-title-lg { margin-bottom: 12px; }
.flow-lead { color: var(--muted); font-size: 15.5px; margin-bottom: 64px; }
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.flow-steps::before {
  content: ""; position: absolute; top: 33px; left: 12%; right: 12%; height: 1px; background: var(--line);
}
.flow-steps li { position: relative; display: flex; flex-direction: column; align-items: center; }
.flow-icon {
  position: relative; z-index: 1;
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.flow-steps li:hover .flow-icon { transform: translateY(-6px); box-shadow: 0 14px 20px -12px rgba(30,58,48,0.35); }
.flow-steps .num { font-family: var(--serif); font-size: 20px; color: var(--muted-2); margin-bottom: 8px; }
.flow-steps h4 { font-size: 17px; margin-bottom: 10px; }
.flow-steps p { color: var(--muted); font-size: 14px; max-width: 220px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: 120px 0; }
.faq-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; }
.faq-head .section-title { display: block; }
.faq-head .section-title::before { display: none; }
.faq-kicker { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 30px; }
.faq-head .ph { aspect-ratio: 3/4; }

.faq-list { display: flex; flex-direction: column; }
.faq-item { display: flex; gap: 26px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { padding-top: 0; }
.faq-item .q { font-family: var(--serif); font-size: 30px; color: var(--accent); flex: none; width: 40px; }
.faq-item h4 { font-size: 19px; margin-bottom: 10px; }
.faq-item p { color: var(--muted); font-size: 15px; }

/* ==========================================================================
   ACCESS
   ========================================================================== */
.access { position: relative; display: grid; grid-template-columns: 60px 1fr; background: var(--cream-2); min-height: 620px; }
.access-strip { background: var(--forest); display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.access-strip span {
  writing-mode: vertical-rl; text-orientation: mixed;
  color: var(--on-dark); font-family: var(--serif); font-size: 14px; letter-spacing: 0.1em;
}
.access-main { position: relative; overflow: hidden; }
.access-bg { position: absolute; inset: 0; z-index: 0; }
.access-bg img { width: 100%; height: 100%; object-fit: cover; }
.access-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(241,235,221,0.02) 0%, rgba(241,235,221,0.35) 46%, rgba(241,235,221,0.88) 64%, rgba(241,235,221,0.96) 100%);
}
.access-text {
  position: relative; z-index: 1;
  padding: 90px 60px; display: flex; flex-direction: column; justify-content: center;
  max-width: 640px; margin-left: auto;
}
.access-text p.jp-text { color: var(--muted); font-size: 15px; margin-bottom: 30px; max-width: 460px; }
.info-table { margin-bottom: 26px; }
.info-table tr { border-bottom: 1px solid var(--line); }
.info-table tr:first-child { border-top: 1px solid var(--line); }
.info-table th, .info-table td { text-align: left; padding: 16px 6px; font-size: 15px; vertical-align: top; }
.info-table th { width: 30%; color: var(--muted); font-weight: 500; font-family: var(--sans); font-size: 13.5px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; background: var(--paper); }
.contact-side { background: var(--forest); color: var(--on-dark); display: flex; flex-direction: column; }
.contact-side-inner { padding: 90px 64px 40px; }
.contact-side .section-title-lg { color: var(--on-dark); }
.contact-side p.jp-text { color: rgba(243,239,226,0.78); font-size: 15px; margin-bottom: 16px; max-width: 380px; }
.ph-bottom { margin: 20px 64px 64px; border-radius: 4px; }

.contact-form-wrap { padding: 90px 72px; position: relative; }
.contact-form fieldset { border: none; padding: 0; margin: 0 0 26px; }
.contact-form legend, .field-label { font-size: 14px; color: var(--ink); margin-bottom: 12px; display: block; font-weight: 500; }
.field { display: block; margin-bottom: 24px; }
.req { background: var(--accent); color: #fff; font-size: 11px; font-style: normal; padding: 2px 7px; border-radius: 3px; margin-left: 8px; }
.opt { background: var(--sage-2); color: var(--muted); font-size: 11px; font-style: normal; padding: 2px 7px; border-radius: 3px; margin-left: 8px; }

.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  border: 1px solid var(--line); background: var(--sage); color: var(--ink);
  padding: 12px 18px; border-radius: 4px; font-size: 14.5px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.pill:hover { transform: translateY(-2px); }
.pill.is-active { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }

input[type="text"], textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper);
  padding: 14px 16px; font-family: var(--sans); font-size: 15px; border-radius: 3px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(30,58,48,0.12); }
textarea { resize: vertical; }
input.is-invalid, textarea.is-invalid { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(187,92,52,0.14); }

.radio-group { display: flex; gap: 26px; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }

.privacy-accordion { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.privacy-toggle { width: 100%; background: none; border: none; padding: 16px 0; display: flex; justify-content: space-between; font-size: 14.5px; }
.privacy-toggle span { transition: transform 0.3s var(--ease); }
.privacy-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.privacy-body { padding: 0 0 18px; color: var(--muted); font-size: 13.5px; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; margin-bottom: 26px; }

.form-note { text-align: center; font-size: 12.5px; color: var(--accent); margin-top: 12px; }

.contact-success { text-align: center; padding: 60px 0; }
.contact-success h3 { font-size: 24px; margin-bottom: 18px; }
.contact-success p { color: var(--muted); margin-bottom: 10px; }
.contact-success .text-link { margin-top: 20px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-right { display: flex; align-items: center; gap: 26px; font-size: 13px; color: var(--muted); }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal-group > *, .reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-group.is-visible > *, .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.34s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-group > *, .reveal-on-scroll, .ph, .btn-accent, .flow-icon { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* wide desktop: give split layouts a bit more breathing room down to 1280 */
@media (max-width: 1280px) {
  .about-top-inner, .about-bottom-inner, .office-inner, .pricing-inner { gap: 56px; }
  .service-inner { gap: 50px; }
}

/* laptop / tablet landscape: keep 2-col splits until content genuinely can't fit */
@media (max-width: 900px) {
  .about-top-inner, .about-bottom-inner, .service-inner, .office-inner,
  .pricing-inner, .faq-inner { grid-template-columns: 1fr; gap: 50px; }
  .service-inner-rev { direction: ltr; }
  .service-c .section-title-lg { text-align: left; margin: 0 0 40px; }
  .service-c .eyebrow-line { text-align: left; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .flow-steps::before { display: none; }
  .access-main { display: flex; flex-direction: column; }
  .access-bg { position: relative; inset: auto; aspect-ratio: 16/9; }
  .access-bg::after { background: linear-gradient(180deg, rgba(241,235,221,0) 55%, rgba(241,235,221,0.9) 100%); }
  .access-text { position: static; max-width: none; margin-left: 0; padding: 50px 40px; background: var(--cream-2); }
  .contact { grid-template-columns: 1fr; }
  .ph-bottom { display: none; }
  .caption-top, .caption-bottom { position: static; text-align: left; margin-top: 16px; text-shadow: none; color: var(--ink); }
  .pricing-photo { display: flex; flex-direction: column; }
}

/* tablet portrait: nav collapses to hamburger */
@media (max-width: 900px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); padding: 10px 32px 28px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero { padding-top: calc(var(--header-h) + 50px); }
  .concerns, .office, .faq, .pricing, .about-top, .about-bottom, .flow { padding: 80px 0; }
  .contact-side-inner, .contact-form-wrap { padding: 60px 28px; }
  .contact-side-inner { padding-top: 70px; }
}

/* 3-item grid keeps its row down to phone width, then stacks */
@media (max-width: 720px) {
  .concern-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  body { font-size: 15.5px; }
  .hero-title { font-size: clamp(28px, 8vw, 40px); }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 18px; }
  .icon-list li, .numbered-list li { gap: 16px; }
  .triple-list { grid-template-columns: 1fr; gap: 34px; }
  .price-table th, .price-table td { display: block; width: 100%; padding: 4px; }
  .price-table tr { display: block; padding: 16px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
