/* =========================================================
   Healing Solutions — Corporate Site
   Design tokens build on the brand theme (style.css / theme.json)
   ========================================================= */
:root {
  --green: #068f3a;
  --green-true: #009b40;   /* logo wordmark */
  --green-dark: #07562a;
  --green-deep: #0a3a20;
  --forest: #0c2417;       /* dark sections */
  --mint: #eaf5ee;
  --mint-2: #f1f8f3;
  --leaf: #9dbf73;
  --amber: #f5b847;
  --amber-soft: #fce8be;
  --ink: #1f2922;
  --muted: #5d6f63;
  --line: #e2ebe4;
  --line-2: #d9e4dc;
  --paper: #fffdf7;
  --white: #ffffff;

  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 26px;
  --shadow-sm: 0 6px 18px -8px rgba(12, 58, 32, 0.18);
  --shadow: 0 24px 60px -24px rgba(10, 58, 32, 0.30);
  --shadow-lg: 0 44px 90px -38px rgba(10, 58, 32, 0.42);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --sp: clamp(72px, 11vw, 140px);

  --serif: "Sorts Mill Goudy", "Noto Serif JP", serif;
  --head: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;
  --body: "Noto Sans JP", "Zen Kaku Gothic New", system-ui, sans-serif;

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

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* contain off-canvas menu without breaking sticky/smooth-scroll */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 900; line-height: 1.28; letter-spacing: .01em; margin: 0; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--amber); color: var(--green-deep); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green-dark); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--serif);
  font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--green); margin: 0 0 16px;
  display: inline-flex; align-items: center; gap: 10px; font-style: italic;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--leaf); }
.eyebrow--light { color: var(--amber); }
.eyebrow--light::before { background: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--head); font-weight: 700; font-size: 15px; line-height: 1;
  padding: 16px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .35s var(--ease), background .3s, box-shadow .35s, color .3s;
  white-space: nowrap;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--btn-bg); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(6,143,58,.55); }
.btn--ghost { background: transparent; color: var(--green-dark); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--white); border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 247, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(255, 253, 247, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(10,58,32,.4);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; transition: min-height .3s; }
.site-header.is-scrolled .header__inner { min-height: 66px; }
.brand__logo { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a {
  font-family: var(--head); font-weight: 700; font-size: 14.5px; color: var(--ink);
  padding: 10px 14px; border-radius: 999px; position: relative; transition: color .25s, background .25s;
}
.nav > a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > a:not(.nav__cta):hover { color: var(--green-dark); }
.nav > a:not(.nav__cta):hover::after,
.nav > a.is-active:not(.nav__cta)::after { transform: scaleX(1); }
.nav__cta { margin-left: 10px; color: #fff; }
.nav__cta::after { display: none; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 92px) 0 clamp(60px, 9vw, 110px); overflow: hidden; }
.hero__decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.blob--green { width: 520px; height: 520px; background: radial-gradient(circle, rgba(157,191,115,.55), transparent 70%); top: -160px; right: -120px; }
.blob--amber { width: 460px; height: 460px; background: radial-gradient(circle, rgba(245,184,71,.40), transparent 70%); bottom: -200px; left: -160px; }

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .74fr);
  gap: clamp(32px, 5vw, 70px); align-items: center;
}
.hero__title {
  font-size: clamp(25px, 3.5vw, 46px); line-height: 1.3; letter-spacing: .005em;
  margin: 0 0 24px;
}
.hero__title .line { display: block; }
.u-mark { position: relative; color: var(--green-dark); white-space: nowrap; }
.u-mark::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 6px; height: 28%;
  background: linear-gradient(transparent 40%, rgba(245,184,71,.55) 40%); z-index: -1; border-radius: 3px;
}
.hero__lead { font-size: clamp(15.5px, 1.4vw, 18px); line-height: 2.05; color: #3a4b40; max-width: 600px; margin: 0 0 30px; }
.hero__lead strong { color: var(--green-dark); font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 600px; }
.stat { padding-left: 16px; border-left: 2px solid var(--line-2); }
.stat__num { font-family: var(--head); font-weight: 900; font-size: clamp(26px, 3vw, 34px); color: var(--green-dark); line-height: 1.1; display: flex; align-items: baseline; gap: 1px; }
.stat__num i { font-style: normal; font-size: .5em; font-weight: 700; }
.stat__label { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 6px; }

/* hero media */
.hero__media { position: relative; }
.hero__figure {
  margin: 0; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.7; transform: rotate(1.2deg); border: 6px solid #fff;
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.hero__panel {
  position: absolute; left: -34px; bottom: 34px; width: min(280px, 76%);
  padding: 18px; border-radius: var(--radius); transform: rotate(-1.4deg);
}
.glass {
  background: rgba(255,255,255,.82); backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow);
}
.hero__panel-symbol { position: absolute; top: -26px; right: -14px; width: 60px; height: 60px; filter: drop-shadow(0 8px 16px rgba(10,58,32,.3)); }
.hero__focus { display: grid; gap: 9px; }
.hero__focus li { display: flex; align-items: center; gap: 11px; font-family: var(--head); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.hero__focus li span {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--mint); color: var(--green-dark); font-size: 12px; font-weight: 900;
}
.hero__badge {
  position: absolute; top: 16px; right: -10px; z-index: 2;
  font-family: var(--serif); font-style: italic; font-size: 14px; letter-spacing: .08em;
  background: var(--green-dark); color: var(--amber-soft); padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow);
}

/* ---------- Marquee ---------- */
.marquee { background: var(--green-dark); color: #eaf5ee; padding: 15px 0; overflow: hidden; white-space: nowrap; border-block: 1px solid var(--green-deep); }
.marquee__track { display: inline-flex; align-items: center; gap: 26px; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.marquee__track span:nth-child(2n) { color: var(--leaf); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section base ---------- */
.section { padding: var(--sp) 0; position: relative; }
section[id] { scroll-margin-top: 86px; }
.section__head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section__title { font-size: clamp(27px, 3.6vw, 44px); line-height: 1.32; margin: 0 0 20px; }
.section__lead { color: var(--muted); font-size: clamp(14.5px, 1.2vw, 16px); line-height: 1.95; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--mint), #fff); color: var(--green); margin-bottom: 6px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.svc-card__icon svg { width: 30px; height: 30px; }
.svc-card h3 { font-size: 19px; }
.svc-card p { color: #46574c; font-size: 14px; line-height: 1.9; flex-grow: 1; }
.svc-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.svc-card__tags li { font-size: 11.5px; font-weight: 700; color: var(--green-dark); background: var(--mint-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
a.svc-card { color: var(--ink); text-decoration: none; }
.svc-card__more { margin-top: auto; font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.svc-card__more i { font-style: normal; transition: transform .3s var(--ease); }
.svc-card:hover .svc-card__more i { transform: translateX(3px); }
.anchor-offset { display: block; height: 0; scroll-margin-top: 86px; }

/* ---------- Works ---------- */
.works { background: linear-gradient(180deg, var(--mint-2), var(--paper)); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 210px; color: var(--ink);
  overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.work-card::before {
  content: none;
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.work-card__thumb { display: block; margin: -28px -28px 6px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mint-2); }
.work-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .55s var(--ease); }
.work-card:hover .work-card__thumb img { transform: scale(1.05); }
.work-card__tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; font-family: var(--head);
  color: var(--card, var(--green-dark)); background: color-mix(in srgb, var(--card, var(--green)) 13%, #fff); border: 1px solid color-mix(in srgb, var(--card, var(--green)) 24%, #fff); padding: 5px 12px; border-radius: 999px; letter-spacing: .02em;
}
.work-card__tag--ai { color: #8a5a00; background: var(--amber-soft); }
.work-card__tag--line { color: #036b3f; background: #d8f3e3; }
.work-card h3 { font-size: 21px; }
.work-card p { color: #46574c; font-size: 13.5px; line-height: 1.85; flex-grow: 1; }
.work-card__link { font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--card, var(--green)); display: inline-flex; align-items: center; gap: 5px; margin-top: auto; }
.work-card__link i { font-style: normal; transition: transform .3s var(--ease); }
.work-card:hover .work-card__link i { transform: translateX(3px); }
.work-card__link--muted { color: var(--muted); }
.work-card--static { cursor: default; }
.work-card--static:hover { transform: none; box-shadow: var(--shadow-sm); }

/* ---------- Approach band ---------- */
.approach { position: relative; padding: clamp(90px, 13vw, 160px) 0; color: #f3f8f4; overflow: hidden; }
.approach__bg { position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(120deg, rgba(10,36,23,.92), rgba(7,86,42,.78)),
    url("../img/komorebi.webp") center/cover no-repeat;
  background-attachment: fixed;
}
.approach__inner { position: relative; z-index: 1; max-width: 820px; text-align: center; margin: 0 auto; }
.approach__title { color: #fff; font-size: clamp(26px, 3.9vw, 46px); line-height: 1.34; margin: 0 0 24px; }
.approach__text { color: #d6e6da; font-size: clamp(15px, 1.5vw, 18px); line-height: 2.1; max-width: 680px; margin: 0 auto 44px; }
.approach__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.approach__points > div {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  padding: 24px 18px; backdrop-filter: blur(4px);
}
.approach__points strong { display: block; font-family: var(--head); font-size: 18px; color: var(--amber); margin-bottom: 6px; }
.approach__points span { font-size: 13px; color: #cfe2d4; line-height: 1.7; }

/* ---------- Company ---------- */
.company__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); margin-bottom: clamp(48px, 6vw, 80px); }
.company__subhead { font-size: 20px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--line-2); position: relative; }
.company__subhead::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--green); }

.info-table { display: grid; gap: 2px; }
.info-table > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.info-table dt { font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--green-dark); }
.info-table dd { font-size: 14px; line-height: 1.8; color: #3c4d42; }
.info-en { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted); }

.timeline { display: grid; gap: 4px; }
.timeline li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 14px 0 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 67px; top: 22px; bottom: -6px; width: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline li > div { position: relative; padding-left: 22px; }
.timeline li > div::before { content: ""; position: absolute; left: -23px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--leaf); }
.timeline__year { font-family: var(--serif); font-style: italic; font-size: 19px; font-weight: 400; color: var(--green); padding-top: 1px; }
.timeline strong { font-family: var(--head); font-size: 15px; display: block; margin-bottom: 2px; }
.timeline p { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* Founder */
.founder {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  background: linear-gradient(140deg, var(--mint-2), #fff); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: clamp(28px, 4vw, 52px);
}
.founder__photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; background: #fff; }
.founder__name { font-size: clamp(24px, 3vw, 34px); margin: 4px 0 16px; }
.founder__name span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .55em; color: var(--muted); margin-left: 8px; }
.founder__body p { color: #3c4d42; font-size: 14.5px; line-height: 1.95; margin-bottom: 12px; }
.founder__quote {
  margin: 22px 0 0; padding: 14px 0 14px 22px; border-left: 4px solid var(--amber);
  font-family: var(--head); font-weight: 700; font-size: clamp(17px, 2vw, 21px); color: var(--green-dark); line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--paper), var(--mint-2)); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact__intro .section__title { text-align: left; }
.contact__methods { margin-top: 32px; display: grid; gap: 4px; }
.contact__methods li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.contact__label { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--green); letter-spacing: .05em; }
.contact__methods a, .contact__methods span { font-size: 16px; font-weight: 500; color: var(--ink); }
.contact__methods a:hover { color: var(--green); }

.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(26px, 3.5vw, 44px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 14px; margin-bottom: 9px; }
.field label span { font-size: 11px; font-weight: 700; color: #fff; background: var(--green); padding: 2px 8px; border-radius: 999px; }
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 15px; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--mint-2);
  transition: border-color .25s, background .25s, box-shadow .25s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(6,143,58,.12); }
.field select {
  width: 100%; font-family: var(--body); font-size: 15px; color: var(--ink);
  padding: 13px 40px 13px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; background-color: var(--mint-2);
  transition: border-color .25s, background .25s, box-shadow .25s; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d6f63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; cursor: pointer;
}
.field select:focus { outline: none; border-color: var(--green); background-color: #fff; box-shadow: 0 0 0 4px rgba(6,143,58,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.contact__note { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #c5d8cb; padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer__top { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 3.1fr); gap: clamp(36px, 5vw, 64px); padding-bottom: clamp(38px, 5vw, 52px); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__logo { height: 36px; margin-bottom: 18px; }
.footer__tagline { font-size: 13.5px; line-height: 1.9; color: #a9c2b2; margin: 0 0 22px; }
.footer__contact { display: grid; gap: 11px; }
.footer__contact li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; font-size: 13px; line-height: 1.6; color: #c5d8cb; }
.footer__contact li > span:first-child { font-family: var(--serif); font-style: italic; font-size: 12px; color: var(--leaf); }
.footer__contact a { color: #dcebe1; }
.footer__contact a:hover { color: var(--amber); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 20px; }
.footer__col h3 { font-family: var(--head); font-weight: 700; font-size: 13px; color: #fff; letter-spacing: .04em; margin: 0 0 16px; }
.footer__col ul { display: grid; gap: 11px; margin: 0; }
.footer__col li { font-size: 13.5px; line-height: 1.5; }
.footer__col a { color: #b6cdbf; }
.footer__col a:hover { color: var(--amber); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; }
.footer__bottom small { font-size: 12.5px; color: #8da89a; font-family: var(--serif); letter-spacing: .03em; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { font-size: 12.5px; color: #a9c2b2; }
.footer__legal a:hover { color: var(--amber); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; gap: 38px; } }
@media (max-width: 1024px) { .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; } }
@media (max-width: 540px) { .footer__cols { grid-template-columns: 1fr 1fr; gap: 26px 18px; } }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px;
  border-radius: 50%; border: none; background: var(--green-dark); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .35s, transform .35s, visibility .35s, background .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green); }

/* ---------- Reveal animation (progressive enhancement) ----------
   Hidden state applies ONLY when JS is active (html.js). Without JS,
   or if the observer never fires, content stays fully visible. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Form status / loading ---------- */
.form-status { margin-top: 14px; padding: 13px 16px; border-radius: 12px; font-size: 14px; line-height: 1.75; display: none; }
.form-status.is-show { display: block; }
.form-status.is-ok { background: var(--mint); color: var(--green-dark); border: 1px solid var(--leaf); }
.form-status.is-err { background: #fdecec; color: #b3322f; border: 1px solid #f2c4c4; }
.btn.is-loading { opacity: .65; pointer-events: none; cursor: progress; }

/* ---------- FAQ (AIO / rich results) ---------- */
.faq-section { background: linear-gradient(180deg, var(--paper), var(--mint-2)); }
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .3s, box-shadow .3s;
}
.faq__item[open] { border-color: color-mix(in srgb, var(--accent, var(--green)) 38%, #fff); box-shadow: var(--shadow-sm); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 24px; font-family: var(--head); font-weight: 700; font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink); line-height: 1.65;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "Q"; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent, var(--green)); color: #fff; font-family: var(--serif); font-style: italic;
  display: grid; place-items: center; font-size: 15px; margin-top: 1px;
}
.faq__item summary::after {
  content: ""; margin-left: auto; flex: none; width: 11px; height: 11px; margin-top: 6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__answer { padding: 0 24px 22px 66px; color: #46574c; font-size: 14.5px; line-height: 1.95; }
.faq__answer p { margin: 0 0 10px; }
.faq__answer p:last-child { margin: 0; }
.faq__answer a { color: var(--green-dark); text-decoration: underline; }
@media (max-width: 560px) {
  .faq__item summary { padding: 16px 18px; gap: 11px; }
  .faq__answer { padding: 0 18px 18px 18px; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .company__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; text-align: center; }
  .founder__photo img { max-width: 240px; margin: 0 auto; }
  .founder__quote { display: inline-block; text-align: left; }
  .approach__bg { background-attachment: scroll; }
}
@media (max-width: 860px) {
  /* mobile nav */
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; padding: 0 11px;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: var(--green-dark); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px; padding: 96px 26px 40px; background: var(--paper); box-shadow: -20px 0 60px -30px rgba(10,58,32,.5);
    transform: translateX(100%); transition: transform .42s var(--ease); z-index: 95;
  }
  .nav.is-open { transform: translateX(0); }
  .nav > a { font-size: 17px; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > a:not(.nav__cta)::after { display: none; }
  .nav__cta { margin-top: 18px; border-radius: 999px; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(12,36,23,.42); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; z-index: 94; }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; margin: 8px auto 0; }
  .approach__points { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .svc-grid, .works-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .info-table > div { grid-template-columns: 88px 1fr; gap: 12px; }
  .hero__panel { left: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__figure { transform: none; }
}
