/* =========================================================
   RITABO株式会社 — corporate site
   Single-family typography (IBM Plex Sans JP) / emerald accent
   ========================================================= */

:root {
  /* palette */
  --bg:        #ffffff;
  --bg-alt:    #f3f8f5;
  --bg-deep:   #07120e;          /* dark sections (footer / hero base) */
  --ink:       #0c1a15;          /* primary text */
  --ink-soft:  #46554f;          /* secondary text */
  --ink-mute:  #7c8a84;          /* tertiary */
  --line:      rgba(12, 26, 21, .10);
  --line-soft: rgba(12, 26, 21, .06);

  --accent:      #0fae66;        /* emerald */
  --accent-deep: #07845a;        /* deeper, for gradients */
  --accent-ink:  #067a52;        /* accent used as readable text on white */
  --bright:      #28e36d;        /* logo-ish vivid green (glitch / dark bg) */

  --grad: linear-gradient(120deg, var(--bright) 0%, var(--accent) 45%, var(--accent-deep) 100%);

  /* layout */
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 16px;
  --radius-lg: 22px;

  /* elevation — cards "float / alive", never grayed out */
  --shadow-sm: 0 2px 8px rgba(8, 30, 22, .05);
  --shadow:    0 14px 38px -18px rgba(8, 40, 28, .28), 0 3px 10px rgba(8, 40, 28, .05);
  --shadow-lg: 0 30px 70px -28px rgba(7, 60, 40, .40);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
          "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Japanese line-breaking: avoid mid-word wraps */
h1, h2, h3, h4, p, li, dt, dd, a, span, figcaption, label, button, blockquote {
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: anywhere;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: none; }

/* ---------- focus visibility (a11y) ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--alt { background: var(--bg-alt); }

/* dark section — same deep tone & green glow as the hero */
.section--dark { background: var(--bg-deep); color: #fff; overflow: hidden; }
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(80% 70% at 85% 12%, rgba(15,174,102,.20), transparent 55%),
    radial-gradient(70% 70% at 8% 100%, rgba(40,227,109,.10), transparent 60%);
}
.section--dark > .wrap { position: relative; z-index: 1; }
.section--dark .eyebrow { color: var(--bright); }
.section--dark .eyebrow::before { background: var(--bright); }
.section--dark .accent { color: var(--bright); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .76rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad);
}

.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 68px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

.h-xl { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 700; line-height: 1.28; letter-spacing: .01em; }
.h-lg { font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 700; line-height: 1.36; }
.h-md { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.5; }
.lead { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--ink-soft); margin-top: 22px; }

/* phrase units keep Japanese from breaking awkwardly */
.np { display: inline-block; }

.accent { color: var(--accent-ink); position: relative; white-space: nowrap; }
.accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .34em;
  background: linear-gradient(120deg, rgba(40,227,109,.30), rgba(15,174,102,.20));
  z-index: -1; border-radius: 3px;
}
.accent.no-line::after { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.7em; border-radius: 999px; font-weight: 600; font-size: .97rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s;
  white-space: nowrap;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.btn--primary { background: linear-gradient(120deg, #2fe974 0%, #14bd6f 100%); color: #04130c; box-shadow: 0 12px 30px -12px rgba(40,227,109,.7); }
.btn--primary:hover { background: linear-gradient(120deg, #3ff080 0%, #18c976 100%); transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(40,227,109,.85); }

.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn--light { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.22); }
.btn--light:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
}
/* Blurred bar lives on a pseudo-element so the header itself has no
   backdrop-filter — otherwise it would become the containing block for the
   fixed nav panel and the mobile menu would collapse to header height. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  opacity: 0; transition: opacity .35s var(--ease);
}
.site-header.scrolled::before { opacity: 1; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; }
/* logo is bright green on transparent; invert nothing — works on light */
.site-header:not(.scrolled) .brand img { filter: drop-shadow(0 1px 6px rgba(0,0,0,.25)); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  font-size: .92rem; font-weight: 500; color: var(--ink); position: relative; padding-block: 6px;
}
.site-header:not(.scrolled) .nav a,
.site-header:not(.scrolled) .brand-name { color: #fff; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad); transition: width .3s var(--ease);
}
.nav a:hover::after { width: 100%; }
.nav .btn { padding: .6em 1.2em; }
.nav .btn::after { display: none; } /* お問い合わせボタンには下線を出さない */

/* hamburger */
.menu-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 10px;
}
.menu-btn span { position: relative; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: background .2s; }
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn span::before { top: -7px; }
.menu-btn span::after  { top: 7px; }
.site-header:not(.scrolled) .menu-btn span,
.site-header:not(.scrolled) .menu-btn span::before,
.site-header:not(.scrolled) .menu-btn span::after { background: #fff; }

body.nav-open .menu-btn span { background: transparent !important; }
body.nav-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
body.nav-open .menu-btn span::after  { top: 0; transform: rotate(-45deg); }
body.nav-open .menu-btn span::before,
body.nav-open .menu-btn span::after { background: var(--ink) !important; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 92svh; display: flex; align-items: center;
  background: var(--bg-deep);
  color: #fff; overflow: hidden;
  padding-top: 76px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(15,174,102,.22), transparent 55%),
    radial-gradient(90% 80% at 10% 100%, rgba(40,227,109,.12), transparent 60%),
    linear-gradient(180deg, rgba(7,18,14,.35) 0%, rgba(7,18,14,.55) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero__inner { max-width: 880px; margin-inline: auto; text-align: center; padding-block: clamp(24px, 4vw, 52px); }

.hero .eyebrow { color: var(--bright); }
.hero .eyebrow::before { background: var(--bright); }

.hero h1 {
  font-size: clamp(2.3rem, 6.6vw, 5rem);
  font-weight: 700; line-height: 1.24; letter-spacing: .005em;
  margin-top: 22px;
}
.hero h1 .accent { color: var(--bright); }
.hero h1 .accent::after { display: none; }

.hero__sub {
  margin-top: 28px; max-width: 680px; margin-inline: auto;
  font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.95;
  color: rgba(255,255,255,.82);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; justify-content: center; }

.hero__metrics {
  margin-top: clamp(46px, 7vw, 72px); margin-inline: auto; text-align: center;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 30px);
  border-top: 1px solid rgba(255,255,255,.14); padding-top: clamp(26px, 4vw, 38px);
  max-width: 760px;
}
.metric__k { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 700; color: #fff; line-height: 1.1; }
.metric__k .u { font-size: .5em; color: var(--bright); margin-left: .1em; }
.metric__t { font-size: .86rem; color: rgba(255,255,255,.66); margin-top: 8px; line-height: 1.55; }

/* glitch — 色収差グリッチ。壊れた蛍光灯のように「ビリッ…ビリビリ」と
   スタッター（一発→間→連発）で発生し、その後しばらく静止。約6秒周期。 */
/*.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
  background: none; opacity: 0;
}
.glitch::before { color: var(--bright); animation: glitch-a 6s steps(1, end) infinite; }
.glitch::after  { color: #57b4ff;      animation: glitch-b 6s steps(1, end) infinite; }
/* 「成長」は位相をずらして「IT」と同時に発生しないようにする */
/*.glitch--delay::before, .glitch--delay::after { animation-delay: 3s; }

/* 緑レイヤー：0.8% で一発（ビリッ）→ 間 → 3.0/4.2/5.3% で連発（ビリビリ） */
/*@keyframes glitch-a {
  0%, 1.6%, 3.7%, 4.8%, 6%, 100% { opacity: 0; transform: translate(0, 0); }
  0.8% { opacity: .9;  transform: translate(-2px, -1px); clip-path: inset(0 0 55% 0); }
  3.0% { opacity: .9;  transform: translate(2px, 1px);   clip-path: inset(35% 0 25% 0); }
  4.2% { opacity: .85; transform: translate(-2px, 1px);  clip-path: inset(60% 0 8% 0); }
  5.3% { opacity: .7;  transform: translate(1px, -1px);  clip-path: inset(20% 0 50% 0); }
}
/* シアンレイヤー：緑と逆方向にずらして色収差を出す */
/*@keyframes glitch-b {
  0%, 1.6%, 3.7%, 4.8%, 6%, 100% { opacity: 0; transform: translate(0, 0); }
  0.8% { opacity: .8;  transform: translate(2px, 1px);   clip-path: inset(40% 0 20% 0); }
  3.0% { opacity: .8;  transform: translate(-2px, -1px); clip-path: inset(10% 0 60% 0); }
  4.2% { opacity: .75; transform: translate(2px, -1px);  clip-path: inset(55% 0 12% 0); }
  5.3% { opacity: .6;  transform: translate(-1px, 1px);  clip-path: inset(30% 0 40% 0); }
}
@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after { display: none; animation: none; }
}*/

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.6); font-size: .68rem; letter-spacing: .2em;
}
.scroll-hint .bar { width: 1px; height: 42px; background: linear-gradient(rgba(255,255,255,.5), transparent); animation: drop 2s var(--ease) infinite; }
@keyframes drop { 0%{transform:scaleY(.2); transform-origin:top;} 50%{transform:scaleY(1);} 100%{transform:scaleY(.2); transform-origin:bottom; opacity:.4;} }
@media (prefers-reduced-motion: reduce){ .scroll-hint .bar{ animation:none; } }

/* =========================================================
   Why — strengths
   ========================================================= */
.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card__num {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--accent-ink);
}
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(40,227,109,.16), rgba(15,174,102,.10));
  color: var(--accent-deep); margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 12px; line-height: 1.5; }
.card p { color: var(--ink-soft); font-size: .96rem; line-height: 1.9; }

/* =========================================================
   Services
   ========================================================= */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column; gap: 14px; position: relative;
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.svc__top { display: flex; align-items: center; gap: 16px; }
.svc__ic {
  flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(40,227,109,.16), rgba(15,174,102,.10)); color: var(--accent-deep);
}
.svc__ic svg { width: 25px; height: 25px; }
.svc h3 { font-size: 1.18rem; font-weight: 700; line-height: 1.45; }
.svc p { color: var(--ink-soft); font-size: .95rem; line-height: 1.88; flex: 1; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag {
  font-size: .76rem; font-weight: 500; color: var(--accent-deep);
  background: rgba(15,174,102,.08); border: 1px solid rgba(15,174,102,.16);
  padding: .35em .8em; border-radius: 999px;
}
.svc__link { font-size: .9rem; font-weight: 600; color: var(--accent-ink); display: inline-flex; align-items: center; gap: .4em; }
.svc__link .arr { transition: transform .3s var(--ease); }
.svc__link:hover .arr { transform: translateX(4px); }

/* =========================================================
   Track record
   ========================================================= */
.records { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rec {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 36px); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  position: relative; overflow: hidden;
}
.rec:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.rec__cat {
  display: inline-block; font-size: .76rem; font-weight: 600; letter-spacing: .08em;
  color: var(--accent-ink); background: rgba(15,174,102,.08);
  padding: .35em .8em; border-radius: 999px; margin-bottom: 16px;
}
.rec h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.rec p { color: var(--ink-soft); font-size: .94rem; line-height: 1.88; }
.rec__ghost {
  position: absolute; right: -10px; bottom: -22px; font-size: 5rem; font-weight: 800;
  color: rgba(15,174,102,.06); line-height: 1; pointer-events: none;
}
.note { margin-top: 26px; font-size: .82rem; color: var(--ink-mute); }

/* =========================================================
   Message (CEO)
   ========================================================= */
.message { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.message__media { position: relative; }
.message__photo {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); background: var(--bg-alt);
}
.message__badge {
  position: absolute; left: 18px; bottom: 18px; background: rgba(7,18,14,.78);
  backdrop-filter: blur(8px); color: #fff; padding: 12px 18px; border-radius: 14px;
}
.message__badge .nm { font-weight: 700; font-size: 1.02rem; }
.message__badge .rl { font-size: .78rem; color: var(--bright); margin-top: 2px; }

.message__body h2 { margin-bottom: 26px; }
.message__body p { color: rgba(255,255,255,.78); font-size: .98rem; line-height: 2; margin-bottom: 18px; }
.message__body p strong { color: #fff; font-weight: 700; }

.pullquote {
  margin-top: 28px; padding: 24px 28px; border-left: 3px solid var(--bright);
  background: linear-gradient(120deg, rgba(40,227,109,.12), rgba(15,174,102,.04));
  border-radius: 0 14px 14px 0;
  font-size: 1.05rem; font-weight: 600; color: #fff; line-height: 1.85;
}

/* =========================================================
   Media（掲載メディア）
   ========================================================= */
.media-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  max-width: 880px; margin: 8px auto 0;
}
.media-item {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.media-item a {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: clamp(24px, 3vw, 32px);
}
.media-item:has(a):hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.media-item__outlet {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--accent-ink);
}
.media-item__title { font-size: 1.04rem; font-weight: 700; line-height: 1.6; color: var(--ink); }
.media-item__link {
  margin-top: auto; font-size: .9rem; font-weight: 600; color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: .4em;
}
.media-item__link .arr { transition: transform .3s var(--ease); }
.media-item a:hover .media-item__link .arr { transform: translate(3px,-3px); }
/* coming soon（リンクなし・控えめ） */
.media-item--soon {
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
  padding: clamp(24px, 3vw, 32px);
  background: transparent; border-style: dashed; box-shadow: none;
}
.media-item--soon .media-item__outlet { color: var(--ink-mute); }
.media-item--soon .media-item__title { color: var(--ink-mute); font-weight: 600; font-size: .96rem; }
@media (max-width: 680px) { .media-list { grid-template-columns: 1fr; } }

/* =========================================================
   Company
   ========================================================= */
.company { max-width: 760px; margin-inline: auto; }
.company dl {
  display: grid; grid-template-columns: 200px 1fr;
  border-top: 1px solid var(--line); text-align: left;
}
.company dt, .company dd { padding: 18px 8px; border-bottom: 1px solid var(--line); }
.company dt { font-weight: 600; color: var(--ink); font-size: .92rem; }
.company dd { color: var(--ink-soft); font-size: .95rem; }

/* =========================================================
   Contact
   ========================================================= */
.contact { max-width: 720px; margin-inline: auto; }
.form { display: grid; gap: 20px; margin-top: 8px; text-align: left; }
.field { display: grid; gap: 8px; }
.field.row2 { grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px){ .field.row2 { grid-template-columns: 1fr; } }
.field label { font-size: .88rem; font-weight: 600; }
.req { color: var(--accent-ink); font-size: .76rem; margin-left: .4em; }
.opt { color: var(--ink-mute); font-size: .76rem; margin-left: .4em; font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: .96rem; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; transition: border-color .25s, box-shadow .25s; width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(15,174,102,.12);
}
.form .btn--primary { justify-self: center; margin-top: 6px; min-width: 220px; }
.form .btn--primary:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.form__note { font-size: .8rem; color: var(--ink-mute); text-align: center; margin-top: 6px; }

/* honeypot — visually hidden, off the tab order */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* inline status (errors) */
.form__status { text-align: center; font-size: .9rem; font-weight: 600; margin-top: 2px; min-height: 1px; }
.form__status.is-error { color: #c0392b; }

/* success state (replaces the form inline, same screen) */
.form-success {
  max-width: 560px; margin: 8px auto 0; text-align: center;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 52px) clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.form-success__icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center;
  color: #fff; background: var(--grad); box-shadow: 0 12px 30px -12px rgba(15,174,102,.7);
}
.form-success__icon svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.form-success p { color: var(--ink-soft); font-size: .96rem; line-height: 1.9; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--bg-deep); color: rgba(255,255,255,.7); padding-block: clamp(48px, 7vw, 72px) 30px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; }
.footer-brand img { height: 26px; margin-bottom: 16px; }
.footer-brand p { font-size: .86rem; max-width: 320px; line-height: 1.8; color: rgba(255,255,255,.55); }
.footer-nav { display: flex; flex-wrap: wrap; gap: clamp(30px, 6vw, 70px); }
.footer-col h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bright); margin-bottom: 14px; }
.footer-col a { display: block; font-size: .9rem; color: rgba(255,255,255,.72); padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .8rem; color: rgba(255,255,255,.5);
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 920px) {
  .cards--3 { grid-template-columns: 1fr; }
  .services, .records { grid-template-columns: 1fr; }
  .message { grid-template-columns: 1fr; }
  .message__media { max-width: 520px; margin-inline: auto; }
  .company dl { grid-template-columns: 130px 1fr; }
}

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; position: relative; z-index: 120; }
  body.nav-open { overflow: hidden; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
    background: #fff; padding: 90px 40px 40px; box-shadow: -20px 0 60px -20px rgba(0,0,0,.3);
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 90;
  }
  body.nav-open .nav { transform: translateX(0); }
  .site-header:not(.scrolled) .nav a { color: var(--ink); }
  .nav a { font-size: 1.05rem; padding-block: 12px; width: 100%; }
  .nav .btn { width: 100%; margin-top: 12px; }
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(7,18,14,.5); opacity: 0; visibility: hidden;
    transition: opacity .35s; z-index: 80;
  }
  body.nav-open .nav-overlay { opacity: 1; visibility: visible; }

  .hero__metrics { grid-template-columns: 1fr; gap: 18px; }
  .company dl { grid-template-columns: 1fr; }
  .company dt { padding-bottom: 2px; border-bottom: none; }
  .company dd { padding-top: 4px; }
}
