/* ============================================================
   Rebloom – Natural Edition
   Palette: ivory / cream / beige / ink (unisex, clean)
   ============================================================ */

:root {
  --ivory:    #FBFAF7;
  --cream:    #F5F0E8;
  --beige:    #ECE3D4;
  --beige-2:  #DBCFB8;
  --sand:     #C5B79C;
  --taupe:    #8C7E69;
  --ink:      #1F1A14;
  --ink-2:    #2E2620;
  --muted:    #75695B;
  --line:     rgba(31,26,20,.10);

  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans:  "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --en:    "Cormorant Garamond", "Noto Serif JP", serif;

  --container: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- base reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Always reserve the vertical scrollbar track so the layout width never
     changes between the loader (body.is-loading) and the loaded page — this
     prevents the content from shifting left when the loader ends. */
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .04em;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; transition: opacity .2s var(--ease); }
a:hover { opacity: .65; }

ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

.container {
  width: min(92%, var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.pc-only { display: inline; }
@media (max-width: 720px) { .pc-only { display: none; } }

/* ============================================================
   Opening Loader
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.loader-curtain {
  position: fixed;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--ivory);
  transition: transform 1.0s cubic-bezier(.85,0,.15,1);
  z-index: 1;
}
.loader-curtain--left  { left: 0; }
.loader-curtain--right { right: 0; }

.loader.is-revealing .loader-curtain--left  { transform: translateX(-100%); }
.loader.is-revealing .loader-curtain--right { transform: translateX(100%); }

.loader-stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: transparent;
  transition: opacity 0.9s ease;
}
.loader.is-revealing .loader-stage { opacity: 0; }

.loader-inner {
  text-align: center;
  padding: 0 24px;
}
.loader-logo {
  font-family: var(--en);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--ink);
  display: inline-flex;
  gap: .02em;
}
.loader-logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
}
/* Animations start only once the correct webfont is ready (JS adds body.fonts-ready),
   so the fallback font never flashes before Cormorant Garamond loads. */
body.fonts-ready .loader-logo span {
  animation: loaderChar .8s var(--ease) forwards;
}
.loader-logo span:nth-child(1) { animation-delay: .15s; }
.loader-logo span:nth-child(2) { animation-delay: .25s; }
.loader-logo span:nth-child(3) { animation-delay: .35s; }
.loader-logo span:nth-child(4) { animation-delay: .45s; }
.loader-logo span:nth-child(5) { animation-delay: .55s; }
.loader-logo span:nth-child(6) { animation-delay: .65s; }
.loader-logo span:nth-child(7) { animation-delay: .75s; }
@keyframes loaderChar {
  to { opacity: 1; transform: translateY(0); }
}

.loader-bar {
  display: block;
  height: 1px;
  width: 0;
  background: var(--taupe);
  margin: 22px auto 18px;
}
body.fonts-ready .loader-bar {
  animation: loaderBar 1s cubic-bezier(.2,.7,.2,1) 0.8s forwards;
}
@keyframes loaderBar {
  to { width: clamp(120px, 14vw, 180px); }
}

.loader-sub {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .35em;
  color: var(--muted);
  opacity: 0;
}
body.fonts-ready .loader-sub {
  animation: loaderSub .8s ease 1.2s forwards;
}
@keyframes loaderSub {
  to { opacity: 1; }
}


/* ============================================================
   Scroll reveal animations
   ============================================================ */
.reveal,
.reveal-scale {
  opacity: 0;
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease);
}
.reveal           { transform: translateY(36px); }
.reveal-scale     { transform: scale(.94) translateY(20px); }

.reveal.is-in,
.reveal-scale.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px 0;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251,250,247,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-family: var(--en);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink);
}

.global-nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}
.global-nav a {
  font-family: var(--en);
  font-size: 15px;
  letter-spacing: .15em;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.global-nav a::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width .35s var(--ease), left .35s var(--ease);
}
.global-nav a:hover { opacity: 1; }
.global-nav a:hover::after { width: 100%; left: 0; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  background: transparent;
  border: 0;
  padding: 0;
  position: relative;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  position: absolute; left: 7px;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }

body.nav-open .nav-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 80% 15%, var(--cream), transparent 60%),
    radial-gradient(50% 50% at 10% 85%, var(--beige), transparent 60%),
    linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .5;
  animation: float 12s ease-in-out infinite;
}
.orb-1 {
  width: 320px; height: 320px;
  top: 12%; left: -90px;
  background: radial-gradient(circle at 30% 30%, var(--beige), transparent 70%);
}
.orb-2 {
  width: 400px; height: 400px;
  bottom: -100px; right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--beige-2), transparent 70%);
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

.hero-inner {
  padding-top: 140px;
  padding-bottom: 100px;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--en);
  font-size: 14px;
  letter-spacing: .35em;
  color: var(--taupe);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(8px);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 8vw, 100px);
  line-height: 1.25;
  letter-spacing: .1em;
  color: var(--ink);
}
.hero-title .word {
  display: block;
  overflow: hidden;
}
.hero-title em {
  display: inline-block;
  font-style: normal;
  transform: translateY(110%);
  opacity: 0;
}
.hero-title em:nth-child(1) { transition-delay: .25s; }
.hero-title em:nth-child(2) { transition-delay: .33s; }
.hero-title em:nth-child(3) { transition-delay: .41s; }
.hero-title em:nth-child(4) { transition-delay: .49s; }
.hero-title em:nth-child(5) { transition-delay: .57s; }
.hero-title .word:nth-child(2) em:nth-child(1) { transition-delay: .68s; }
.hero-title .word:nth-child(2) em:nth-child(2) { transition-delay: .76s; }
.hero-title .word:nth-child(2) em:nth-child(3) { transition-delay: .84s; }
.hero-title .word:nth-child(2) em:nth-child(4) { transition-delay: .92s; }
.hero-title .word:nth-child(2) em:nth-child(5) { transition-delay: 1.00s; }

.hero-lead {
  margin-top: 36px;
  font-family: var(--serif);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 2.3;
  color: var(--ink-2);
  max-width: 32em;
  opacity: 0;
  transform: translateY(12px);
}

.hero-actions {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 58px;
  padding: 0 30px;
  font-family: var(--en);
  font-size: 14px;
  letter-spacing: .2em;
  border-radius: 999px;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.3) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}
.btn-primary:hover { transform: translateY(-3px); opacity: 1; box-shadow: 0 18px 36px rgba(31,26,20,.22); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--ivory); opacity: 1; transform: translateY(-3px); }

.btn-dark {
  background: var(--ink);
  color: var(--ivory);
}
.btn-dark:hover { transform: translateY(-3px); opacity: 1; box-shadow: 0 18px 36px rgba(31,26,20,.25); }

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--muted);
  z-index: 1;
  opacity: 0;
}
.scroll-cue i {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, var(--muted), transparent);
  animation: cue 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(.4); }
}

/* Resting (loaded) state for the hero. The actual fade-in is driven by the Web
   Animations API in main.js (revealHero) because iOS Safari would not reliably
   interpolate CSS transitions/animations here — elements popped straight to
   visible. These rules just hold the final state (and act as a fallback if JS
   can't run the WAAPI animation). */
body.is-loaded .hero-eyebrow  { opacity: 1; transform: none; }
body.is-loaded .hero-title em { opacity: 1; transform: translateY(0); }
body.is-loaded .hero-lead     { opacity: 1; transform: none; }
body.is-loaded .hero-actions  { opacity: 1; transform: none; }
body.is-loaded .scroll-cue    { opacity: 1; }

/* ============================================================
   Section base
   ============================================================ */
.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 90px;
}

.section-head { margin-bottom: 72px; }
.section-en {
  display: inline-block;
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: .4em;
  color: var(--taupe);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--beige-2);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.6;
  color: var(--ink);
}
.section-sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: .08em;
}

/* divider */
.section-divider {
  background: var(--ivory);
  padding: 32px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.section-divider .line {
  display: block;
  width: 80px;
  height: 1px;
  background: var(--beige-2);
}
.section-divider .dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--taupe);
}

/* ============================================================
   Concept
   ============================================================ */
.concept { background: var(--ivory); }
.concept-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 80px;
  align-items: center;
}

.concept-text .lead {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 2.2;
  color: var(--ink);
  margin-bottom: 32px;
}
.concept-text p + p { margin-top: 22px; color: var(--ink-2); }

.concept-card {
  aspect-ratio: 1 / 1.15;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--cream) 0%, var(--beige) 100%);
  position: relative;
  display: grid; place-items: center;
  box-shadow:
    0 30px 60px rgba(31,26,20,.06),
    inset 0 0 0 1px rgba(255,255,255,.5);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.concept-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.6), transparent 50%);
  pointer-events: none;
}
.concept-card-inner {
  position: relative;
  text-align: center;
  padding: 40px;
  z-index: 1;
}

/* image variant — fills the framed card while keeping its radius/shadow/tilt */
.concept-card.is-image {
  aspect-ratio: 1 / 1.15;
  background: var(--beige);
}
.concept-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 55%;
  z-index: 0;
}
/* soft warm wash to tie the photo into the ivory/beige palette */
.concept-card.is-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(245, 240, 232, .12) 0%,
    transparent 32%,
    rgba(31, 26, 20, .16) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.kanji {
  font-family: var(--serif);
  font-size: clamp(120px, 18vw, 200px);
  line-height: 1;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(255,255,255,.5);
}
.reading {
  font-family: var(--en);
  font-size: 14px;
  letter-spacing: .4em;
  color: var(--taupe);
  margin-top: 18px;
}
.caption {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .15em;
  color: var(--ink-2);
  margin-top: 20px;
  line-height: 2;
}

/* ============================================================
   Message (代表メッセージ)
   ============================================================ */
.message { background: var(--ivory); }
.message-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 72px;
  align-items: center;
}
.message-quote {
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 2.3;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  padding-left: 28px;
  border-left: 2px solid var(--beige-2);
}
.message-quote + .message-text {
  margin-top: 32px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: .04em;
}

.message-profile {
  background: linear-gradient(160deg, var(--cream) 0%, var(--beige) 100%);
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 48px);
  box-shadow:
    0 30px 60px rgba(31,26,20,.06),
    inset 0 0 0 1px rgba(255,255,255,.5);
}
.message-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink);
}
.message-name span {
  display: block;
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--taupe);
  margin-top: 8px;
}
.message-role {
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-top: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.message-career {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}
.message-career li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.message-career .year {
  font-family: var(--en);
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--taupe);
  white-space: nowrap;
}

/* ============================================================
   Service
   ============================================================ */
.service { background: var(--ivory); }
/* Service → Company の間が空きすぎるため、この接合部だけ余白を詰める */
.service { padding-bottom: clamp(48px, 6vw, 88px); }

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.service-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 56px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease);
}
.service-card:hover { padding-left: 12px; }

.service-no {
  font-family: var(--en);
  font-size: 80px;
  line-height: 1;
  color: var(--beige-2);
  letter-spacing: .02em;
}

.service-tag {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: .35em;
  color: var(--taupe);
  margin-bottom: 14px;
}
.service-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .14em;
  margin-bottom: 22px;
}
.service-title span {
  display: inline-block;
  margin-left: 12px;
  font-family: var(--en);
  font-size: 16px;
  color: var(--muted);
  letter-spacing: .25em;
}
.service-desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2.1;
  max-width: 60ch;
}
.service-desc + .service-desc { margin-top: 18px; }
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.service-tags li {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink);
  padding: 6px 16px;
  background: var(--cream);
  border: 1px solid var(--beige-2);
  border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.service-tags li:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* ============================================================
   Company
   ============================================================ */
.company { background: var(--ivory); }
.company { padding-top: clamp(48px, 6vw, 88px); }

.company-table {
  max-width: 860px;
  margin: 0 auto;
  background: var(--ivory);
  border-top: 1px solid var(--line);
}
.company-table > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
.company-table > div:hover { padding-left: 8px; }
.company-table dt {
  font-family: var(--en);
  color: var(--taupe);
  letter-spacing: .2em;
  font-size: 13px;
  text-transform: uppercase;
}
.company-table dd {
  color: var(--ink);
  font-size: 15px;
}
.company-table a { color: var(--ink); border-bottom: 1px solid currentColor; }

/* Translate dt to Japanese label visually via :before would be heavy; keep JP visible */
.company-table dt {
  font-family: var(--serif);
  color: var(--ink);
  text-transform: none;
  letter-spacing: .12em;
  font-size: 14px;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background: var(--cream);
  text-align: center;
}
.contact-inner { max-width: 820px; margin: 0 auto; }
.contact .section-en {
  border-color: var(--sand);
  color: var(--taupe);
}
.contact-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.7;
  margin: 18px 0 26px;
  color: var(--ink);
}
.contact-lead {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2.2;
  margin-bottom: 44px;
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-field { margin-bottom: 24px; }

.form-field label {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--ink);
  margin-bottom: 10px;
}
.form-field .req,
.form-field .opt {
  display: inline-block;
  font-family: var(--en);
  font-size: 10px;
  letter-spacing: .12em;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  transform: translateY(-1px);
}
.form-field .req { background: var(--ink); color: var(--ivory); }
.form-field .opt { background: var(--beige); color: var(--taupe); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--beige-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  line-height: 1.7;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 140px; }

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C7E69' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--taupe);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(140,126,105,.14);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--sand); }

/* invalid state (after JS validation) */
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #b4564b;
  box-shadow: 0 0 0 3px rgba(180,86,75,.12);
}
.field-error {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .06em;
  color: #b4564b;
}
.form-field.has-error .field-error { display: block; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: .04em;
  margin: 4px 0 32px;
  cursor: pointer;
}
.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.form-consent a { color: var(--ink); border-bottom: 1px solid currentColor; }

/* honeypot: hidden from humans, visible to bots */
.form-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-actions { text-align: center; }
.form-actions .btn { min-width: 260px; }
.form-actions .btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.form-status {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  letter-spacing: .06em;
  line-height: 1.9;
  min-height: 1.2em;
}
.form-status.is-success { color: var(--taupe); }
.form-status.is-error   { color: #b4564b; }

@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions .btn { min-width: 100%; }
}

/* ============================================================
   Thanks page
   ============================================================ */
.thanks-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(60% 60% at 80% 15%, var(--cream), transparent 60%),
    radial-gradient(50% 50% at 10% 85%, var(--beige), transparent 60%),
    linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
}
.thanks-inner { max-width: 720px; }
.thanks-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.7;
  color: var(--ink);
  margin: 16px 0 28px;
}
.thanks-lead {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2.3;
  margin-bottom: 28px;
}
.thanks-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  margin-bottom: 44px;
}

/* ============================================================
   Legal (Privacy Policy)
   ============================================================ */
.legal { background: var(--ivory); }
.legal-inner { max-width: 820px; margin: 0 auto; }
.legal-lead {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2.1;
  margin-bottom: 8px;
}
.legal-section { margin-top: 44px; }
.legal-section h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.legal-section p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2.1;
}
.legal-section p + p { margin-top: 14px; }
.legal-list {
  margin: 14px 0 0;
  padding-left: 1.3em;
  list-style: disc;
}
.legal-list li {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.95;
  margin-bottom: 8px;
}
.legal-section a { color: var(--ink); border-bottom: 1px solid currentColor; }
.legal-section a:hover { opacity: .65; }

.legal-info {
  margin-top: 18px;
  background: var(--cream);
  border: 1px solid var(--beige-2);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.legal-info dl { display: grid; gap: 12px; margin: 0; }
.legal-info dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}
.legal-info dt {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--taupe);
  letter-spacing: .1em;
}
.legal-info dd { font-size: 15px; color: var(--ink); margin: 0; }
.legal-info a { color: var(--ink); border-bottom: 1px solid currentColor; }

.legal-date {
  margin-top: 52px;
  text-align: right;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .08em;
}

@media (max-width: 720px) {
  .legal-info dl > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ivory);
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  align-items: start;
}
.footer-logo {
  font-family: var(--en);
  font-size: 32px;
  color: var(--ink);
  letter-spacing: .08em;
}
.footer-tagline {
  font-family: var(--serif);
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: .18em;
  font-size: 14px;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  justify-content: flex-end;
}
.footer-nav a {
  font-family: var(--en);
  font-size: 14px;
  letter-spacing: .18em;
  color: var(--ink);
}
.footer-nav li:last-child a {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .1em;
}
.copyright {
  grid-column: 1 / -1;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .concept-grid { grid-template-columns: 1fr; gap: 56px; }
  /* Full-width & content-height so the caption isn't clipped by the fixed aspect-ratio on narrow screens */
  .concept-card { width: 100%; max-width: 420px; margin-inline: auto; aspect-ratio: auto; }
  .concept-card-inner { padding: 56px 40px; }
  .message-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav ul { justify-content: flex-start; }
  .service-card { grid-template-columns: 80px 1fr; gap: 28px; padding: 40px 0; }
  .service-no { font-size: 56px; }
  .company-table > div { grid-template-columns: 160px 1fr; padding: 22px 0; }
}

@media (max-width: 720px) {
  /* Mobile nav = right-side drawer. The left area stays uncovered so the
     page behind remains visible and can be scrolled while the menu is open. */
  .global-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(76%, 300px);
    background: var(--ivory);
    box-shadow: -12px 0 40px rgba(31,26,20,.16);
    display: flex;
    /* Top-anchored (not centered): when the mobile address bar shows/hides on
       scroll the viewport height changes, and centering would re-center the
       links every time, causing a jitter. Anchoring to the top keeps them still. */
    align-items: flex-start;
    padding: 84px 0 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    pointer-events: none;
  }
  body.nav-open .global-nav {
    transform: translateX(0);
    pointer-events: auto;
  }
  /* While the menu is open, freeze the header to a stable, plain state so that
     scrolling (which toggles .is-scrolled) doesn't animate the header's
     padding/background/blur underneath the open drawer and cause jitter.
     Removing backdrop-filter also keeps the fixed drawer anchored to the
     viewport (not trapped inside the short header box). */
  body.nav-open .site-header {
    background: transparent;
    box-shadow: none;
    padding: 22px 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .global-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    width: 100%;
  }
  .global-nav li { border-bottom: 1px solid var(--line); }
  .global-nav li:first-child { border-top: 1px solid var(--line); }
  .global-nav a {
    display: block;
    text-align: center;
    padding: 20px 16px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .16em;
    color: var(--ink);
  }
  .global-nav a::after { display: none; }
  .nav-toggle { display: block; z-index: 10; }

  /* Hide the decorative SCROLL cue on phones so it can't overlap the hero buttons */
  .scroll-cue { display: none; }

  /* Match the shorter mobile loader timeline (JS reveals at 1.6s): bring the
     tagline and bar in earlier so they're fully shown before the curtain opens. */
  body.fonts-ready .loader-bar { animation-delay: .4s; }
  body.fonts-ready .loader-sub { animation-delay: .6s; }

  /* (Hero fade timing for mobile is handled in main.js revealHero — the lead
     and buttons start sooner on phones there.) */

  .hero-actions .btn { min-width: unset; flex: 1 1 100%; }

  .service-card { grid-template-columns: 1fr; gap: 16px; }
  .service-no { font-size: 48px; }
  .company-table > div { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; }
  .company-table dt { font-size: 12px; color: var(--muted); }
}

/* Reduced motion: turn off heavy animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
  .loader { display: none !important; }
}
