/* =====================================================
   Mori — Design System
   Forest (森) inspired: warm paper, deep greens,
   editorial serif headings, calm and crafted.
   ===================================================== */

/* ---- Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Surfaces */
  --paper: #f7f4ec;
  --paper-2: #efe9da;
  --card: #fffdf8;

  /* Ink + greens */
  --ink: #16231b;
  --forest: #1c4332;
  --forest-deep: #0f271c;
  --green: #2f7d52;
  --green-hover: #266844;
  --moss: #5fa07c;
  --sage: #aebfb1;

  /* Text */
  --text: #1d2b22;
  --muted: #5d6b62;
  --muted-light: #8a958c;

  /* Lines */
  --line: rgba(22, 35, 28, 0.10);
  --line-strong: rgba(22, 35, 28, 0.18);

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Misc */
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px -20px rgba(16, 39, 28, 0.28);
  --shadow-sm: 0 8px 24px -14px rgba(16, 39, 28, 0.30);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(47, 125, 82, 0.22);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-sm {
  padding: 4rem 0;
}

/* ---- Type helpers ---- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.display {
  font-size: clamp(2.7rem, 6.5vw, 5rem);
  font-weight: 500;
}

.h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.serif-italic {
  font-style: italic;
  color: var(--green);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--moss);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 52ch;
}

.muted {
  color: var(--muted);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.85rem 1.7rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  background: var(--forest);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--forest-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(16, 39, 28, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1rem;
}

.btn .arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 236, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo-mark {
  color: var(--forest);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links > a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  transition: color 0.25s var(--ease);
}

.nav-links > a:hover,
.nav-links > a[aria-current="page"] {
  color: var(--ink);
}

.nav-links > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 1.5px;
  background: var(--moss);
}

.nav-links .nav-cta {
  margin-left: 0.5rem;
  background: var(--forest);
  color: var(--paper);
  padding: 0.6rem 1.3rem;
}

.nav-links .nav-cta:hover {
  background: var(--forest-deep);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0.4rem;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero .lead {
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-aside {
  position: relative;
}

.hero-card {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--card);
}

/* soft canopy glow behind hero art */
.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 160, 124, 0.22), transparent 65%);
  top: -180px;
  right: -120px;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* ---- Marquee / tag strip ---- */
.tagstrip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.tagstrip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.5rem;
  padding: 1.5rem 0;
}

.tagstrip-inner span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--forest);
}

.tagstrip-inner .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--moss);
}

/* ---- Section heading block ---- */
.section-head {
  max-width: 60ch;
  margin-bottom: 3rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 1rem;
}

/* ---- Cards grid (services preview / features) ---- */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(47, 125, 82, 0.35);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(47, 125, 82, 0.10);
  color: var(--forest);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
}

.card-link .arrow {
  transition: transform 0.3s var(--ease);
}

.card:hover .card-link .arrow {
  transform: translateX(4px);
}

/* ---- Alt section background ---- */
.section-alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---- Process ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 2.5rem;
  border-top: 2px solid var(--line-strong);
}

.process-step .num {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green);
}

.process-step h3 {
  font-size: 1.4rem;
  margin: 0.4rem 0 0.6rem;
}

.process-step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat .figure {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 500;
  color: var(--forest);
  line-height: 1;
}

.stat .label {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---- Page header (inner pages) ---- */
.page-head {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.page-head .display {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 1.25rem;
}

/* ---- Service detail rows ---- */
.svc-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

.svc-row:last-child { border-bottom: none; }

.svc-row.flip .svc-art { order: -1; }

.svc-row h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.svc-list {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.7rem;
}

.svc-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
}

.svc-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--forest);
}

/* ---- Work / portfolio ---- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.work-thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.work-thumb svg { width: 100%; height: 100%; }

.work-body {
  padding: 1.6rem 1.8rem 1.9rem;
}

.work-tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.work-body h3 {
  font-size: 1.45rem;
  margin: 0.5rem 0 0.5rem;
}

.work-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- About / values ---- */
.prose p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 62ch;
}

.prose p strong { color: var(--ink); font-weight: 600; }

.kanji-block {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--paper);
}

.kanji {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--moss);
  flex-shrink: 0;
}

.kanji-block p {
  color: rgba(247, 244, 236, 0.78);
  font-size: 1.05rem;
  margin: 0;
}

.kanji-block .serif-italic { color: #cfe6d8; }

.value h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.value p { color: var(--muted); font-size: 0.95rem; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
}

.contact-info h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }

.contact-detail {
  margin-top: 2rem;
}

.contact-detail .label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 0.3rem;
}

.contact-detail a,
.contact-detail span {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
}

.contact-detail a:hover { color: var(--green); }

/* ---- Form ---- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group { margin-bottom: 1.3rem; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 125, 82, 0.12);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235d6b62' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  border: none;
  margin-top: 0.3rem;
}

.form-error {
  margin: 0 0 0.6rem;
  color: #b3261e;
  font-size: 0.9rem;
}
.form-error:empty {
  margin: 0;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  padding: 2rem 0;
}

.form-success.show { display: flex; }

.form-success h2 { font-size: 1.7rem; }

.form-success p { color: var(--muted); }

/* ---- Footer ---- */
.site-footer {
  background: var(--forest-deep);
  color: var(--paper);
  padding-top: 5rem;
}

.footer-cta {
  text-align: center;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(247, 244, 236, 0.12);
}

.footer-cta h2 {
  color: var(--paper);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 1.5rem;
}

.footer-cta .btn-primary {
  background: var(--moss);
  color: var(--forest-deep);
}

.footer-cta .btn-primary:hover {
  background: #7fc7a0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3.5rem 0;
}

.footer-main .logo { color: var(--paper); }
.footer-main .logo-mark { color: var(--moss); }

.footer-brand p {
  margin-top: 1rem;
  color: rgba(247, 244, 236, 0.6);
  font-size: 0.95rem;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(247, 244, 236, 0.72);
  font-size: 0.95rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(247, 244, 236, 0.12);
  font-size: 0.85rem;
  color: rgba(247, 244, 236, 0.5);
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .section { padding: 4.5rem 0; }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
  }

  .site-header.open .nav-links { transform: none; }

  .nav-links > a {
    padding: 0.85rem 0.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }

  .nav-links > a[aria-current="page"]::after { display: none; }

  .nav-links .nav-cta {
    margin: 0.9rem 0 0;
    justify-content: center;
    border-radius: 100px;
    padding: 0.85rem;
  }

  .nav-toggle { display: inline-flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-aside { order: -1; max-width: 420px; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .svc-row { grid-template-columns: 1fr; gap: 1.75rem; padding: 2.75rem 0; }
  .svc-row.flip .svc-art { order: 0; }

  .work-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.25rem; }

  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .grid-4, .grid-3, .grid-2,
  .process-grid, .stats { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .kanji-block { flex-direction: column; text-align: center; gap: 1rem; padding: 2rem; }

  .footer-main { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .leaf { display: none; }
}

/* =====================================================
   Polish layer — texture, depth, motion
   ===================================================== */

/* ---- Film-grain texture over the whole page ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Animated logo: trees grow on load, sway on hover ---- */
.logo-mark path,
.logo-mark rect {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: tree-grow 0.7s var(--ease) both;
}
.logo-mark path:nth-of-type(1), .logo-mark rect:nth-of-type(1) { animation-delay: 0.05s; }
.logo-mark path:nth-of-type(2), .logo-mark rect:nth-of-type(2) { animation-delay: 0.18s; }
.logo-mark path:nth-of-type(3), .logo-mark rect:nth-of-type(3) { animation-delay: 0.31s; }

@keyframes tree-grow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

.logo-mark {
  transform-origin: 50% 100%;
  transition: transform 0.4s var(--ease);
}
.logo:hover .logo-mark {
  animation: sway 2.4s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-3.5deg); }
  75%      { transform: rotate(3.5deg); }
}

/* ---- Hero depth: topographic rings + drifting leaves ---- */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 82% 14%,
      transparent 0 46px,
      rgba(47, 125, 82, 0.045) 46px 47px);
  mask-image: radial-gradient(circle at 82% 14%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 82% 14%, #000 0%, transparent 60%);
}

.leaf {
  position: absolute;
  z-index: 0;
  width: 18px;
  height: 18px;
  background: var(--moss);
  opacity: 0.35;
  border-radius: 0 100% 0 100%;
  pointer-events: none;
  animation: drift linear infinite;
}
.leaf.l1 { left: 12%; top: 18%; width: 14px; height: 14px; animation-duration: 17s; }
.leaf.l2 { left: 40%; top: 8%;  width: 10px; height: 10px; opacity: 0.25; animation-duration: 22s; animation-delay: -6s; }
.leaf.l3 { left: 64%; top: 60%; width: 16px; height: 16px; opacity: 0.3;  animation-duration: 19s; animation-delay: -3s; }
.leaf.l4 { left: 88%; top: 40%; width: 11px; height: 11px; opacity: 0.22; animation-duration: 25s; animation-delay: -11s; }

@keyframes drift {
  0%   { transform: translate(0,0) rotate(0deg); opacity: 0.35; }
  33%  { transform: translate(20px, 30px) rotate(120deg); }
  66%  { transform: translate(-16px, 60px) rotate(240deg); }
  100% { transform: translate(0, 96px) rotate(360deg); opacity: 0; }
}

.hero-copy, .hero-aside { position: relative; z-index: 2; }

.hero-card {
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.hero-aside:hover .hero-card {
  transform: translateY(-6px);
  box-shadow: 0 36px 80px -28px rgba(16, 39, 28, 0.42);
}

/* ---- Eyebrow line animates in ---- */
.reveal .eyebrow::before { width: 0; transition: width 0.7s var(--ease) 0.2s; }
.reveal.in-view .eyebrow::before { width: 22px; }

/* ---- Display headline: gradient ink + finer kerning ---- */
.display {
  background: linear-gradient(180deg, var(--ink) 0%, #28453a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.serif-italic {
  -webkit-text-fill-color: var(--green);
}

/* ---- Card top-accent that grows on hover ---- */
.card { position: relative; overflow: hidden; }
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--moss), var(--green));
  transition: width 0.45s var(--ease);
}
.card:hover::before { width: 100%; }
.card-icon { transition: transform 0.45s var(--ease), background 0.45s var(--ease); }
.card:hover .card-icon { transform: translateY(-2px) rotate(-4deg); background: rgba(47,125,82,0.16); }

/* ---- Staggered reveals within a grid ---- */
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.process-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.process-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.process-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.work-grid .reveal:nth-child(even) { transition-delay: 0.1s; }
.stats .reveal:nth-child(2) { transition-delay: 0.1s; }
.stats .reveal:nth-child(3) { transition-delay: 0.2s; }
.stats .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---- Process: growing dot marker on the top line ---- */
.process-step::before {
  content: "";
  position: absolute;
  top: -7px; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--paper);
  transform: scale(0);
  transition: transform 0.5s var(--ease) 0.2s;
}
.process-step.in-view::before { transform: scale(1); }
.section-alt .process-step::before { box-shadow: 0 0 0 4px var(--paper-2); }

/* ---- Buttons: soft glow on primary ---- */
.btn-primary { position: relative; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(95,160,124,0);
  transition: box-shadow 0.4s var(--ease);
}
.btn-primary:hover::after { box-shadow: 0 0 26px 2px rgba(95,160,124,0.35); }

/* ---- Links underline reveal (in-text) ---- */
.contact-detail a, .footer-col a, .card-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}
.contact-detail a:hover, .footer-col a:hover, .card:hover .card-link {
  background-size: 100% 1.5px;
}

/* ---- About: 森 kanji subtle float + tree accents ---- */
.kanji {
  animation: kanji-float 6s ease-in-out infinite;
  text-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
@keyframes kanji-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.kanji-block {
  position: relative;
  overflow: hidden;
}
.kanji-block::after {
  content: "森";
  position: absolute;
  right: -2.5rem; bottom: -4rem;
  font-family: var(--serif);
  font-size: 16rem;
  line-height: 1;
  color: rgba(127, 199, 160, 0.06);
  pointer-events: none;
}

/* ---- Focus visibility ---- */
:focus-visible {
  outline: 2.5px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Selection-friendly smooth fade for hero card image ---- */
.work-thumb svg, .svc-art svg, .hero-card svg {
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-thumb svg { transform: scale(1.04); }

/* ---- Policy pages ---- */
.policy-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin: 2.5rem 0 1rem;
}
.policy-text h2:first-of-type { margin-top: 0; }
.policy-text a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.policy-text a:hover { color: var(--forest); }
