@charset "UTF-8";
/* =================================================================
   F.D.I. — FASHION DIGITAL INNOVATION
   Editorial monochrome design system
   ================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
img, video { display: block; max-width: 100%; height: auto; }
/* 画像・動画の保存抑止（ドラッグ/選択/長押しメニュー） */
img, video { -webkit-user-drag: none; -khtml-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

/* ---------- Tokens ---------- */
:root {
  --ink:      #0b0b0b;
  --ink-soft: #2a2a2a;
  --mute:     #8a8a86;
  --line:     rgba(11,11,11,.14);
  --line-2:   rgba(11,11,11,.08);
  --paper:    #ffffff;
  --paper-2:  #f4f2ee;
  --paper-3:  #ebe8e2;

  --serif: "Cormorant Garamond", "Shippori Mincho", serif;
  --mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  --sans: "Inter", "Zen Kaku Gothic New", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;

  --gutter: clamp(20px, 6vw, 120px);
  --maxw: 1680px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 15px;
  font-feature-settings: "palt" 1;
  letter-spacing: .02em;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--paper); }

/* ---------- Typographic helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.center { justify-content: center; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .98;
  letter-spacing: .01em;
}
.index-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(13px, 1vw, 15px);
  color: var(--mute);
  letter-spacing: .05em;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 180px); }
.section--tight { padding-block: clamp(56px, 8vw, 120px); }
.divider { height: 1px; background: var(--line); border: 0; }

/* =================================================================
   Header
   ================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(18px, 2.4vw, 30px) var(--gutter);
  color: var(--paper);
  transition: color .5s var(--ease), background .5s var(--ease), padding .5s var(--ease);
}
.site-header.is-solid {
  color: var(--ink);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
  padding-block: clamp(12px, 1.6vw, 18px);
}
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand__mark { height: 30px; width: auto; display: block; }
.brand__mark--dark { display: none; }
.site-header.is-solid .brand__mark--light { display: none; }
.site-header.is-solid .brand__mark--dark { display: block; }
.footer-mark { height: 40px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 46px); }
.nav a {
  font-size: 12px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase;
  position: relative; padding-block: 6px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { opacity: 1; }
.nav .nav-cta {
  border: 1px solid currentColor; padding: 9px 20px; border-radius: 100px;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: currentColor; }
.nav .nav-cta:hover span { color: var(--paper); }
.site-header.is-solid .nav .nav-cta:hover span { color: var(--paper); }

/* Hamburger */
.nav-toggle { display: none; width: 40px; height: 40px; position: relative; z-index: 110; }
.nav-toggle span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { bottom: 15px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { bottom: 19px; transform: rotate(-45deg); }

/* =================================================================
   Hero
   ================================================================= */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter); padding-bottom: clamp(40px, 6vw, 90px);
  color: var(--paper); overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.12) contrast(1.04);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.05) 32%, rgba(0,0,0,.1) 60%, rgba(0,0,0,.72) 100%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__kicker { margin-bottom: clamp(20px, 3vw, 36px); color: rgba(255,255,255,.82); }
.hero__kicker::before { background: rgba(255,255,255,.7); }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 11vw, 184px); line-height: .92; letter-spacing: .005em;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; }
.hero h1 .thin { font-weight: 300; }
.hero__meta {
  margin-top: clamp(24px, 3.4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
}
.hero__lead {
  font-family: var(--mincho);
  font-size: clamp(14px, 1.25vw, 18px); line-height: 2.05; max-width: 38ch;
  color: rgba(255,255,255,.92);
}
.hero__scroll {
  font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 12px;
}
.hero__scroll i { width: 1px; height: 46px; background: rgba(255,255,255,.5); display: block; position: relative; overflow: hidden; }
.hero__scroll i::after { content:""; position:absolute; inset:0; background: #fff; transform: translateY(-100%); animation: scrolldown 2.4s var(--ease) infinite; }
@keyframes scrolldown { 0%{transform:translateY(-100%);} 50%{transform:translateY(0);} 100%{transform:translateY(100%);} }

/* =================================================================
   Marquee (brand strip / category ticker)
   ================================================================= */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 22px; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 34px);
  color: var(--ink-soft); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px;
}
.marquee span::after { content: "—"; color: var(--mute); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =================================================================
   Intro / statement
   ================================================================= */
.statement-section { background: var(--paper-2); }
.statement { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.statement__text { display: grid; gap: clamp(20px, 2.4vw, 30px); }
.statement__lead {
  font-family: var(--mincho);
  font-size: clamp(24px, 3.4vw, 48px); line-height: 1.58; font-weight: 400;
  letter-spacing: .01em; text-wrap: balance; max-width: 18ch;
}
.statement__lead .accent { font-family: var(--serif); font-style: italic; }
.statement__body { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 56ch; }
.statement__body p { color: var(--ink-soft); font-size: clamp(14px, 1.1vw, 16px); line-height: 2.1; }
.statement__figure { position: relative; overflow: hidden; aspect-ratio: 5/6; background: var(--paper-3); }
.statement__figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.statement__figure:hover img { transform: scale(1.04); }
.statement__figure figcaption {
  position: absolute; left: 0; bottom: 0; width: 100%; z-index: 2;
  padding: clamp(14px,1.6vw,22px); color: #fff; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  background: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,0));
}
@media (min-width: 900px) {
  .statement { grid-template-columns: 1.05fr .95fr; }
  .statement--reverse .statement__figure { order: -1; }
}

/* =================================================================
   Section heading block
   ================================================================= */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 72px); }
.head__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 6vw, 88px); line-height: 1; letter-spacing: .01em; }
.head__title em { font-style: italic; }
.head__sub { font-family: var(--mincho); color: var(--mute); font-size: 13px; max-width: 34ch; line-height: 1.9; }

/* =================================================================
   Services list (editorial rows)
   ================================================================= */
.services { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 4vw, 60px);
  padding-block: clamp(26px, 3.6vw, 46px); border-bottom: 1px solid var(--line);
  position: relative; transition: padding .5s var(--ease);
}
.service-row__num { font-family: var(--serif); font-style: italic; font-size: clamp(14px,1.1vw,18px); color: var(--mute); }
.service-row__title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 4.6vw, 56px); line-height: 1.05; transition: transform .5s var(--ease); }
.service-row__title b { font-weight: 600; }
.service-row__title small { display:block; font-family: var(--sans); font-size: 11px; letter-spacing:.28em; text-transform: uppercase; color: var(--mute); margin-top: 10px; }
.service-row__arrow { font-size: 22px; transition: transform .5s var(--ease); color: var(--mute); }
.service-row:hover { background: var(--ink); color: var(--paper); padding-inline: clamp(12px,2vw,32px); }
.service-row:hover .service-row__num,
.service-row:hover .service-row__arrow,
.service-row:hover .service-row__title small { color: rgba(255,255,255,.7); }
.service-row:hover .service-row__title { transform: translateX(8px); }
.service-row:hover .service-row__arrow { transform: translate(8px,-8px); color:#fff; }
.service-row__media {
  position: absolute; right: clamp(80px, 16vw, 320px); top: 50%; transform: translateY(-50%) scale(.96);
  width: clamp(160px, 18vw, 280px); aspect-ratio: 4/3; overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); z-index: 2; border-radius: 2px;
}
.service-row__media img { width:100%; height:100%; object-fit: cover; }
.service-row:hover .service-row__media { opacity: 1; transform: translateY(-50%) scale(1); }
@media (max-width: 760px) {
  .service-row { grid-template-columns: auto 1fr; }
  .service-row__arrow { display:none; }
  .service-row__media { display: none; }
  .service-row:hover { padding-inline: 0; background: transparent; color: inherit; }
  .service-row:hover .service-row__num, .service-row:hover .service-row__title small { color: var(--mute); }
}

/* =================================================================
   Works gallery
   ================================================================= */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.4vw, 22px);
}
.work {
  position: relative; overflow: hidden; background: var(--paper-2);
  grid-column: span 6;
}
.work--wide { grid-column: span 8; }
.work--full { grid-column: span 12; }
.work--tall { grid-column: span 4; }
.work__img { position: relative; width: 100%; height: 100%; overflow: hidden; }
.work__img img, .work__img video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work:hover .work__img img, .work:hover .work__img video { transform: scale(1.05); }
.work__cap {
  position: absolute; inset: auto 0 0 0; padding: clamp(16px,2vw,28px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  color: #fff; z-index: 2;
  background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0));
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.work:hover .work__cap { opacity: 1; transform: translateY(0); }
.work__cat { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; }
.work__no { font-family: var(--serif); font-style: italic; font-size: 15px; opacity: .85; }
/* aspect ratios per tile */
.work[data-ratio="portrait"] .work__img { aspect-ratio: 3/4; }
.work[data-ratio="landscape"] .work__img { aspect-ratio: 16/10; }
.work[data-ratio="square"] .work__img { aspect-ratio: 1/1; }
.work[data-ratio="wide"] .work__img { aspect-ratio: 21/9; }
@media (max-width: 760px) {
  .gallery { gap: 8px; }
  .work, .work--wide, .work--full, .work--tall { grid-column: span 12; }
  .work--half { grid-column: span 6; }
  .work__cap { opacity: 1; transform: none; }
}

/* ---------- Works: masonry (natural ratios) ---------- */
.masonry { column-count: 3; column-gap: clamp(10px, 1.4vw, 22px); }
.masonry .work { display: block; width: 100%; margin-bottom: clamp(10px, 1.4vw, 22px); break-inside: avoid; -webkit-column-break-inside: avoid; }
.masonry .work__img { aspect-ratio: auto; }
@media (max-width: 1000px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } .masonry .work__cap { opacity: 1; transform: none; } }

/* Motion / film reel grid */
.reel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 1.4vw, 22px); }
.reel { position: relative; overflow: hidden; background: var(--ink); }
.reel video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; display: block; }
.reel__cap { position: absolute; left: 0; bottom: 0; padding: clamp(14px,1.6vw,22px); color: #fff; z-index: 2; pointer-events: none; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.reel__cap .c { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; opacity: .9; }
.reel__cap .t { font-family: var(--serif); font-style: italic; font-size: clamp(18px,2vw,26px); margin-top: 4px; }
.reel--play video { aspect-ratio: 16/9; background: #000; cursor: pointer; }
.reel--play .reel__cap { top: 0; bottom: auto; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0)); width: 100%; }
.reel__hint { position: absolute; bottom: 14px; right: 16px; z-index: 2; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); pointer-events: none; }
@media (max-width: 700px) { .reel-grid { grid-template-columns: 1fr; } }

/* Works filter bar */
.filter { display: flex; flex-wrap: wrap; gap: 10px 8px; margin-bottom: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); padding-top: 28px; }
.filter button {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute);
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 100px; transition: all .35s var(--ease);
}
.filter button:hover { color: var(--ink); border-color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work.is-hidden { display: none; }

/* =================================================================
   Feature split (image + text)
   ================================================================= */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 72px); align-items: center; }
.split__media { overflow: hidden; }
.split__media img, .split__media video { width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split__media iframe { width: 100%; aspect-ratio: 4/3; border: 0; display: block; background: var(--paper-3); }
.viewer-note { margin-top: 10px; font-size: 11px; letter-spacing: .08em; color: var(--mute); }
.split__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.4vw, 64px); line-height: 1.04; margin: 18px 0 22px; }
.split__title em { font-style: italic; }
.split__body p { color: var(--ink-soft); line-height: 2.05; margin-bottom: 16px; }
.feature-list { margin-top: 26px; border-top: 1px solid var(--line); }
.feature-list li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.feature-list .n { font-family: var(--serif); font-style: italic; color: var(--mute); font-size: 14px; min-width: 30px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}

/* =================================================================
   CTA band
   ================================================================= */
.cta {
  background: var(--ink); color: var(--paper);
  text-align: center; padding-block: clamp(80px, 13vw, 200px);
  position: relative; overflow: hidden;
}
.cta--media::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../assets/img/textile-01.jpg") center/cover no-repeat;
  filter: grayscale(.4) contrast(1.05) brightness(.62);
  opacity: .55;
}
.cta--media::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 90% at 50% 50%, rgba(11,11,11,.35) 0%, rgba(11,11,11,.78) 78%);
}
.cta--media .wrap { position: relative; z-index: 1; }

/* CTA with dynamic video background */
.cta--video .cta__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cta--video .cta__media video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) contrast(1.05) brightness(.55); }
.cta--video .cta__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 95% at 50% 50%, rgba(11,11,11,.32) 0%, rgba(11,11,11,.82) 80%);
}
.cta--video .wrap { position: relative; z-index: 1; }
.cta h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 8vw, 128px); line-height: 1; letter-spacing: .01em; }
.cta h2 em { font-style: italic; font-weight: 400; }
.cta p { color: rgba(255,255,255,.7); margin: 26px auto 44px; max-width: 46ch; font-family: var(--mincho); }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  border: 1px solid currentColor; border-radius: 100px;
  padding: 16px 34px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
  transition: gap .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { gap: 22px; background: var(--paper); color: var(--ink); }
.cta .btn:hover { background: var(--paper); color: var(--ink); }
.btn--dark { color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: var(--paper); }

/* =================================================================
   Footer
   ================================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding-block: clamp(56px, 7vw, 96px); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 72px); }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 20px; font-family: var(--mincho); max-width: 34ch; line-height: 2; font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.footer-col h4 { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.82); font-size: 13.5px; padding: 5px 0; transition: color .3s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: clamp(44px, 6vw, 80px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 11px; letter-spacing: .1em; color: var(--mute); }
.footer-bottom .brand-en { font-family: var(--serif); font-style: italic; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

/* =================================================================
   Page hero (interior pages)
   ================================================================= */
.page-hero { padding-top: clamp(140px, 18vh, 220px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 10vw, 150px); line-height: .96; letter-spacing: .01em; }
.page-hero h1 em { font-style: italic; }
.page-hero .lead { font-family: var(--mincho); margin-top: 26px; max-width: 52ch; line-height: 2.1; color: var(--ink-soft); }
.breadcrumb { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 28px; display:flex; gap:10px; align-items:center; }
.breadcrumb span { color: var(--ink); }

/* Page hero with dynamic video background */
.page-hero--media {
  position: relative; overflow: hidden; background: var(--ink); color: var(--paper);
  min-height: 66vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: clamp(140px, 20vh, 240px);
}
.page-hero--media > .wrap { position: relative; z-index: 1; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media video, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.18) contrast(1.05); }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,.55) 0%, rgba(11,11,11,.12) 38%, rgba(11,11,11,.32) 68%, rgba(11,11,11,.82) 100%);
}
.page-hero--media .breadcrumb,
.page-hero--media .breadcrumb a { color: rgba(255,255,255,.72); }
.page-hero--media .breadcrumb span { color: #fff; }
.page-hero--media h1 { color: #fff; }
.page-hero--media .lead { color: rgba(255,255,255,.9); }

/* =================================================================
   Contact
   ================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 72px); }
.contact-mail { font-family: var(--serif); font-size: clamp(28px, 5vw, 64px); line-height: 1.1; display: inline-flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 16px; transition: gap .4s var(--ease); }
.contact-mail:hover { gap: 28px; }
.contact-info dt { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.contact-info dd { margin-bottom: 26px; font-size: 15px; line-height: 1.8; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr .7fr; } }

/* =================================================================
   Company / stats
   ================================================================= */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats div { background: var(--paper); padding: clamp(24px, 3vw, 44px); }
.stats .num { font-family: var(--serif); font-size: clamp(40px, 6vw, 86px); line-height: 1; }
.stats .lbl { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-top: 12px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.info-table { border-top: 1px solid var(--ink); }
.info-table .row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-table dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.info-table dd { font-size: 15.5px; line-height: 1.8; font-family: var(--mincho); }
@media (min-width: 760px) { .info-table .row { grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; } }

/* =================================================================
   Scroll reveal
   ================================================================= */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* =================================================================
   Estimator chatbot widget
   ================================================================= */
.chat-fab {
  position: fixed; right: clamp(16px,3vw,28px); bottom: clamp(16px,3vw,28px); z-index: 200;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 100px;
  padding: 13px 20px 13px 17px; box-shadow: 0 10px 34px rgba(0,0,0,.28);
  font-family: var(--sans); font-size: 12px; letter-spacing: .12em; cursor: pointer;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab svg { width: 18px; height: 18px; flex: none; }
body.chat-open .chat-fab, body.nav-open .chat-fab { opacity: 0; pointer-events: none; }

.chat-panel {
  position: fixed; right: clamp(16px,3vw,28px); bottom: clamp(16px,3vw,28px); z-index: 201;
  width: min(382px, calc(100vw - 32px)); height: min(564px, calc(100vh - 48px));
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0,0,0,.32);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
body.chat-open .chat-panel { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { background: var(--ink); color: var(--paper); padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; }
.chat-head .t { font-family: var(--serif); font-size: 18px; line-height: 1.1; }
.chat-head .t small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .24em; color: rgba(255,255,255,.55); margin-top: 4px; }
.chat-close { color: var(--paper); font-size: 22px; line-height: 1; cursor: pointer; background: none; border: 0; padding: 0 4px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 11px; background: var(--paper-2); }
.chat-msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.7; }
.chat-msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--ink); color: var(--paper); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg b { font-weight: 600; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 100%; }
.chat-chip { font-family: var(--sans); font-size: 12.5px; padding: 9px 14px; border: 1px solid var(--ink); border-radius: 100px; background: #fff; color: var(--ink); cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease); }
.chat-chip:hover { background: var(--ink); color: var(--paper); }
.chat-foot { display: flex; gap: 8px; padding: 11px; border-top: 1px solid var(--line); background: #fff; }
.chat-foot input { flex: 1; border: 1px solid var(--line); border-radius: 100px; padding: 10px 15px; font: inherit; font-size: 13px; outline: none; color: var(--ink); }
.chat-foot input:focus { border-color: var(--ink); }
.chat-foot button { border: 0; background: var(--ink); color: var(--paper); border-radius: 100px; padding: 0 17px; cursor: pointer; font-size: 12px; letter-spacing: .08em; }
@media (max-width: 480px) {
  .chat-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100dvh - 80px); }
  .chat-fab span { display: none; }
  .chat-fab { padding: 14px; }
}

/* =================================================================
   Mobile nav
   ================================================================= */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 8px; padding: var(--gutter);
    background: var(--ink); color: var(--paper);
    transform: translateX(100%); transition: transform .6s var(--ease);
  }
  body.nav-open .nav { transform: none; }
  .nav a { font-family: var(--serif); font-size: clamp(30px, 9vw, 56px); letter-spacing: .02em; text-transform: none; padding-block: 8px; }
  .nav a::after { display: none; }
  .nav .nav-cta { border: 0; padding: 0; margin-top: 12px; }
  .nav .nav-cta span { font-family: var(--sans); font-size: 13px; letter-spacing:.2em; text-transform: uppercase; border-bottom: 1px solid; padding-bottom: 4px; }
}
