/*
Theme Name: ODRCP
Theme URI: https://odrcp5512.com
Author: ODRCP
Description: ODRCP portfolio theme — design, coding & WordPress build for a freelance web designer/coder based in Niigata.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: odrcp
*/

:root {
  --paper: #EFEEE5;
  --paper-panel: #E5E2D3;
  --paper-card: #F7F6EF;
  --ink: #202C24;
  --ink-soft: #4B564C;
  --ai: #22405A;
  --ai-strong: #16283A;
  --kaki: #B24A2B;
  --kaki-strong: #8F3A21;
  --line: #C7C0A9;
  --line-strong: #A79F84;
  --shadow: 0 18px 40px -24px rgba(22, 40, 58, 0.35);
  --radius: 2px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171F1A; --paper-panel: #1D2621; --paper-card: #212B24;
    --ink: #E9E6D8; --ink-soft: #B4AF9D; --ai: #7FA1BE; --ai-strong: #A9C4DA;
    --kaki: #D97A4F; --kaki-strong: #EF9569; --line: #3A4239; --line-strong: #4E574B;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --paper: #171F1A; --paper-panel: #1D2621; --paper-card: #212B24;
  --ink: #E9E6D8; --ink-soft: #B4AF9D; --ai: #7FA1BE; --ai-strong: #A9C4DA;
  --kaki: #D97A4F; --kaki-strong: #EF9569; --line: #3A4239; --line-strong: #4E574B;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.85; font-size: 16px; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
.serif { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif; }
.mono { font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace; letter-spacing: 0.08em; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.05rem; letter-spacing: 0.12em; }
.brand .seal { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 700; }
.brand-sub { display: block; font-size: 0.6rem; letter-spacing: 0.22em; color: var(--ink-soft); margin-top: 2px; }

nav.primary-nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
nav.primary-nav a { text-decoration: none; font-size: 0.85rem; letter-spacing: 0.14em; position: relative; padding-bottom: 4px; }
nav.primary-nav a.is-current { color: var(--kaki); }
nav.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--kaki); transition: right 0.25s ease;
}
nav.primary-nav a:hover::after, nav.primary-nav a:focus-visible::after { right: 0; }
nav.primary-nav a:focus-visible { outline: 2px solid var(--ai); outline-offset: 4px; }

.nav-toggle-label { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; }
#nav-toggle { display: none; }
.burger, .burger::before, .burger::after {
  width: 22px; height: 2px; background: var(--ink); display: block; position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.page:has(#nav-toggle:checked) .nav-toggle-label .burger { background: transparent; }
.page:has(#nav-toggle:checked) .nav-toggle-label .burger::before { transform: translateY(7px) rotate(45deg); }
.page:has(#nav-toggle:checked) .nav-toggle-label .burger::after { transform: translateY(-7px) rotate(-45deg); }

.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 0.72rem; color: var(--kaki); margin-bottom: 22px; }
.eyebrow .idx { font-weight: 700; }
.eyebrow .stitch {
  flex: 1; height: 1px; max-width: 120px;
  background-image: repeating-linear-gradient(to right, var(--line-strong) 0 6px, transparent 6px 12px);
}
.eyebrow .label { color: var(--ink-soft); }

section.panel { padding: 100px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 76px; }
section.panel.alt { background: var(--paper-panel); }
section.panel.tight { padding: 72px 0; }

h2.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 20px; text-wrap: balance; font-weight: 600; }
p.lede { max-width: 640px; color: var(--ink-soft); font-size: 1rem; }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; text-decoration: none;
  font-size: 0.88rem; letter-spacing: 0.08em; border-radius: var(--radius); border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer; font-family: inherit;
}
.btn:focus-visible { outline: 2px solid var(--ai); outline-offset: 3px; }
.btn-primary { background: var(--ai-strong); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); background: var(--ai); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--kaki); color: var(--kaki); }
.btn-ghost.on-photo { border-color: rgba(243,241,230,0.7); color: #F8F6EC; }
.btn-ghost.on-photo:hover { border-color: #F0A87C; color: #F0A87C; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* hero photo (front page only) */
.hero-photo { position: relative; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-photo .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo .scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,20,15,0.95) 0%, rgba(15,20,15,0.88) 42%, rgba(15,20,15,0.5) 66%, rgba(15,20,15,0.06) 88%); }
.hero-photo .hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 64px; padding-bottom: 76px; }
.hero-photo .eyebrow .label, .hero-photo .eyebrow .idx { color: #F3F1E6; }
.hero-photo .eyebrow .stitch { background-image: repeating-linear-gradient(to right, rgba(243,241,230,0.55) 0 6px, transparent 6px 12px); }
.hero-photo h1 { color: #F8F6EC; font-size: clamp(2.2rem, 4.6vw, 3.3rem); line-height: 1.5; margin: 0 0 26px; font-weight: 600; text-wrap: balance; }
.hero-photo h1 em { font-style: normal; color: #F0A87C; }
.hero-photo .lede { color: rgba(243,241,230,0.88); margin: 0 0 36px; max-width: 460px; }
.photo-credit { position: absolute; z-index: 2; right: 16px; bottom: 10px; font-size: 0.64rem; color: rgba(243,241,230,0.55); }
/* hero load-in: desk props -> laptop assembles on screen -> notebook stitched -> stamped */
@keyframes odrcpPropIn { from { opacity: 0; transform: translateY(10px) scale(0.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes odrcpFrameIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes odrcpBlockIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
@keyframes odrcpLineDraw { to { stroke-dashoffset: 0; } }
@keyframes odrcpSeamDraw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
@keyframes odrcpDotPop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes odrcpSealIn {
  0% { opacity: 0; transform: rotate(-34deg) scale(0.5); }
  65% { opacity: 1; transform: rotate(-6deg) scale(1.12); }
  100% { opacity: 1; transform: rotate(-10deg) scale(1); }
}
@keyframes odrcpTextUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: no-preference) {
  .hero-prop { opacity: 0; transform-box: fill-box; animation: odrcpPropIn 0.5s ease-out forwards; }
  .hero-prop-1 { animation-delay: 0.1s; }
  .hero-prop-2 { animation-delay: 0.22s; }
  .hero-prop-3 { animation-delay: 0.34s; }

  .hero-laptop-frame { opacity: 0; transform-box: fill-box; transform-origin: center; animation: odrcpFrameIn 0.5s ease-out 0.5s forwards; }
  .hero-screen-dots circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: odrcpDotPop 0.25s ease-out forwards; }
  .hero-screen-dots circle:nth-of-type(1) { animation-delay: 0.85s; }
  .hero-screen-dots circle:nth-of-type(2) { animation-delay: 0.95s; }
  .hero-screen-dots circle:nth-of-type(3) { animation-delay: 1.05s; }
  .hero-screen-block { opacity: 0; transform-box: fill-box; transform-origin: center; animation: odrcpBlockIn 0.5s cubic-bezier(.2,.8,.3,1.3) 1.05s forwards; }
  .hero-screen-lines line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: odrcpLineDraw 0.45s ease-out forwards; }
  .hero-screen-lines line:nth-of-type(1) { animation-delay: 1.55s; }
  .hero-screen-lines line:nth-of-type(2) { animation-delay: 1.8s; }
  .hero-screen-lines line:nth-of-type(3) { animation-delay: 2.05s; }
  .hero-screen-lines line:nth-of-type(4) { animation-delay: 2.3s; }

  .hero-notebook .hero-seam-line { stroke-dashoffset: 80; animation: odrcpSeamDraw 0.4s linear 2.9s forwards; }
  .hero-notebook .hero-seam-dot { opacity: 0; transform-box: fill-box; transform-origin: center; animation: odrcpDotPop 0.25s ease-out forwards; }
  .hero-notebook .hero-seam-dot:first-of-type { animation-delay: 2.9s; }
  .hero-notebook .hero-seam-dot:last-of-type { animation-delay: 3.2s; }

  .hero-seal { opacity: 0; transform-box: fill-box; transform-origin: center; animation: odrcpSealIn 0.6s ease-out 3.45s forwards; }

  .hero-text-in { opacity: 0; animation: odrcpTextUp 0.6s ease-out forwards; }
  .hero-eyebrow-in { animation-delay: 0.05s; }
  .hero-h1-in { animation-delay: 0.15s; }
  .hero-lede-in { animation-delay: 0.28s; }
  .hero-cta-in { animation-delay: 0.4s; }
}

/* subpage header */
.page-header { padding: 52px 0 44px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 0.76rem; color: var(--ink-soft); margin: 0 0 18px; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px dotted var(--line-strong); }
.breadcrumb a:hover { color: var(--kaki); }
.page-header h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0; font-weight: 600; }

/* teaser (front page) */
.teaser-head { margin-bottom: 44px; }
.view-more { font-size: 0.78rem; letter-spacing: 0.1em; text-decoration: none; color: var(--kaki); white-space: nowrap; border-bottom: 1px solid var(--kaki); padding-bottom: 2px; }
.view-more:hover { opacity: 0.7; }
.view-more-row { margin-top: 32px; display: flex; justify-content: flex-end; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--paper-card); border: 1px solid var(--line); padding: 34px 30px; border-radius: var(--radius); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; font-size: 1.2rem; }
.card h3 .num { font-family: ui-monospace, monospace; color: var(--kaki); font-size: 0.85rem; }
.card p { color: var(--ink-soft); margin: 0 0 18px; font-size: 0.94rem; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { font-size: 0.74rem; letter-spacing: 0.04em; border: 1px solid var(--line-strong); padding: 5px 12px; border-radius: 999px; color: var(--ink-soft); }

.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.strengths > div { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-card); padding: 30px 26px; }
.strengths h4 { font-size: 0.98rem; margin: 0 0 10px; }
.strengths .num { display: block; font-family: ui-monospace, monospace; color: var(--kaki); font-size: 0.78rem; margin-bottom: 10px; }
.strengths p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }
.strengths ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.strengths ul li { font-size: 0.82rem; color: var(--ink-soft); padding-left: 14px; position: relative; }
.strengths ul li::before { content: "・"; position: absolute; left: 0; color: var(--kaki); }

/* trust strip (front page, under hero) */
.trust-strip { border-bottom: 1px solid var(--line); background: var(--paper-panel); }
.trust-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 20px 28px; font-size: 0.8rem; color: var(--ink-soft); }
.trust-strip strong { color: var(--ink); font-weight: 600; }
.trust-strip .sep { color: var(--line-strong); }

/* nav CTA (Contact) */
.nav-cta { border: 1px solid var(--kaki) !important; border-radius: 999px; padding: 8px 20px !important; color: var(--kaki) !important; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--kaki); color: var(--paper) !important; }

/* FAQ (Service page) */
.faq-list { margin-top: 48px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-q { display: flex; gap: 14px; font-size: 0.96rem; font-weight: 600; margin: 0 0 10px; }
.faq-q .mark { font-family: ui-monospace, monospace; color: var(--kaki); flex: none; }
.faq-a { display: flex; gap: 14px; color: var(--ink-soft); font-size: 0.88rem; margin: 0; }
.faq-a .mark { font-family: ui-monospace, monospace; color: var(--ink-soft); flex: none; }

/* testimonials (About page) */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
.testimonial-card { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 24px 22px; background: var(--paper-card); }
.testimonial-card.is-filled { border-style: solid; border-color: var(--line); }
.testimonial-card .quote { color: var(--ink-soft); font-size: 0.86rem; margin: 0 0 14px; }
.testimonial-card .who { font-size: 0.72rem; color: var(--ink-soft); margin: 0; font-family: ui-monospace, monospace; }
.testimonial-note { margin-top: 18px; font-size: 0.78rem; color: var(--ink-soft); }

/* works case-study points */
.work-story { margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.work-story-row { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; }
.work-story-row dt {
  margin: 0; font-family: ui-monospace, monospace; font-size: 0.6rem; letter-spacing: 0.03em;
  color: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 2px 0; text-align: center; line-height: 1.6;
}
.work-story-row dd { margin: 0; font-size: 0.78rem; color: var(--ink-soft); line-height: 1.6; }
.work-story-row.is-result { margin-top: auto; padding-top: 11px; border-top: 1px dashed var(--line-strong); }
.work-story-row.is-result dt { color: var(--paper); background: var(--kaki); border-color: var(--kaki); font-weight: 700; }
.work-story-row.is-result dd { color: var(--ink); font-weight: 600; }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.work-card { border: 1px solid var(--line); background: var(--paper-card); overflow: hidden; border-radius: var(--radius); text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; box-shadow: var(--shadow); transition: transform 0.2s ease; }
.work-card:hover { transform: translateY(-4px); }
.work-thumb { aspect-ratio: 4 / 3; position: relative; display: flex; align-items: flex-end; padding: 16px; overflow: hidden; flex: none; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.work-thumb span { position: relative; font-family: ui-monospace, monospace; font-size: 0.72rem; color: rgba(255,255,255,0.86); letter-spacing: 0.05em; }
.work-thumb.t1 { background: linear-gradient(155deg, #3C5A70, #22405A); }
.work-thumb.t2 { background: linear-gradient(155deg, #7A5A45, #55402E); }
.work-thumb.t3 { background: linear-gradient(155deg, #5B6350, #3A4232); }
.work-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.work-body .work-name { font-size: 1rem; margin: 0 0 6px; }
.work-body .work-cat { font-size: 0.78rem; color: var(--ink-soft); margin: 0; }
.works-note { margin-top: 22px; font-size: 0.78rem; color: var(--ink-soft); }
.works-empty { color: var(--ink-soft); font-size: 0.9rem; }

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.price-card { border: 1px solid var(--line); padding: 26px 22px; background: var(--paper-card); border-radius: var(--radius); display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card .plan-name { font-size: 0.92rem; line-height: 1.5; min-height: 2.76rem; margin: 0 0 14px; }
.price-card .plan-price { font-family: ui-monospace, monospace; font-size: 1.5rem; color: var(--ai-strong); margin: 0 0 4px; }
.price-card .plan-note { font-size: 0.72rem; color: var(--ink-soft); margin: 0 0 18px; }
.price-card ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px dashed var(--line-strong); flex: 1; }
.price-card li { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 8px; padding-left: 14px; position: relative; }
.price-card li::before { content: "—"; position: absolute; left: 0; color: var(--kaki); }

.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.about-mark { aspect-ratio: 1; border: 1px solid var(--line-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.about-mark svg { width: 62%; height: 62%; }
.about-mark img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { color: var(--ink-soft); margin: 0 0 20px; }
.about-copy p:last-of-type { margin-bottom: 0; }
.fact-table { margin-top: 36px; border-top: 1px solid var(--line); }
.fact-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.fact-row dt { color: var(--ink-soft); font-family: ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.06em; padding-top: 2px; }
.fact-row dd { margin: 0; }

.flow-list { margin-top: 56px; position: relative; }
.flow-item { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding-bottom: 40px; position: relative; }
.flow-item:last-child { padding-bottom: 0; }
.flow-item::before {
  content: ""; position: absolute; left: 27px; top: 46px; bottom: -4px; width: 1px;
  background-image: repeating-linear-gradient(to bottom, var(--line-strong) 0 6px, transparent 6px 12px);
}
.flow-item:last-child::before { display: none; }
.flow-num {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--kaki); color: var(--kaki);
  display: flex; align-items: center; justify-content: center; font-family: ui-monospace, monospace;
  font-size: 0.92rem; flex: none; background: var(--paper);
}
.flow-body h4 { margin: 0 0 8px; font-size: 1rem; }
.flow-body p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; max-width: 560px; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-side p { color: var(--ink-soft); }
.contact-note { font-size: 0.76rem; color: var(--ink-soft); margin-top: 26px; padding: 14px 16px; border: 1px dashed var(--line-strong); }
.contact-success { font-size: 0.86rem; color: var(--ink); margin-top: 20px; padding: 14px 16px; border: 1px solid var(--kaki); background: var(--paper-card); }
.contact-error { font-size: 0.86rem; color: var(--ink); margin-top: 20px; padding: 14px 16px; border: 1px solid var(--kaki-strong); background: var(--paper-card); }
form.mock-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.field input, .field textarea { background: var(--paper-card); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 13px 14px; font: inherit; color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ai); outline-offset: 1px; }
form.mock-form .btn { justify-self: start; margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

footer.site-footer { padding: 44px 0; text-align: center; font-size: 0.76rem; color: var(--ink-soft); }
.footer-links { margin: 10px 0 0; font-size: 0.72rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px dotted var(--line-strong); }
.footer-links a:hover { color: var(--kaki); }
.footer-links .sep { margin: 0 10px; color: var(--line-strong); }

.legal-body h2 { font-size: 1.1rem; margin: 40px 0 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 0.92rem; }
.legal-body ul { padding-left: 20px; margin: 0 0 16px; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.legal-table th, .legal-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 0.88rem; vertical-align: top; }
.legal-table th { width: 200px; color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
.legal-table td { color: var(--ink); }

@media (min-width: 881px) {
  nav.primary-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 41;
    height: 76px; display: flex; align-items: center; justify-content: flex-end;
    max-width: 1080px; margin: 0 auto; padding: 0 28px;
    pointer-events: none;
  }
  nav.primary-nav ul { pointer-events: auto; }
}
@media (max-width: 880px) {
  nav.primary-nav {
    position: fixed; inset: 76px 0 0 0; z-index: 35; background: var(--paper); transform: translateY(-8px); opacity: 0;
    pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; border-top: 1px solid var(--line);
  }
  .page:has(#nav-toggle:checked) nav.primary-nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
  nav.primary-nav ul { flex-direction: column; gap: 0; padding: 12px 28px; }
  nav.primary-nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-toggle-label { display: flex; }

  .service-grid, .strengths, .works-grid, .price-grid, .about-grid, .contact-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .strengths { gap: 34px; }
  section.panel { padding: 72px 0; }
  .flow-item { grid-template-columns: 48px 1fr; }
  .flow-num { width: 44px; height: 44px; font-size: 0.8rem; }
  .flow-item::before { left: 22px; }
  .hero-photo { min-height: 460px; }
  .hero-photo .scrim { background: linear-gradient(180deg, rgba(15,20,15,0.6) 0%, rgba(15,20,15,0.93) 55%, rgba(15,20,15,0.95) 100%); }
  nav.primary-nav a.nav-cta { border: none !important; border-bottom: 1px solid var(--line) !important; border-radius: 0; text-align: center; margin-top: 8px; }
  .legal-table, .legal-table thead, .legal-table tbody, .legal-table tr { display: block; width: 100%; }
  .legal-table th, .legal-table td { display: block; width: auto; padding: 4px 0; border-bottom: none; }
  .legal-table th { padding-top: 16px; }
  .legal-table tr { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .price-grid { grid-template-columns: 1fr 1fr; }
}
