/* ==========================================================================
   SOIL — brand site
   Palette: warm white / paper / soil brown / rust / leaf (yellow-green)
   Type:    Cormorant Garamond (Latin) + Shippori Mincho (Japanese)
   ========================================================================== */

:root {
  --white: #faf8f3;
  --paper: #f0ebe1;
  --ink: #2a2118;
  --stone: #8a8074;
  --line: #ddd6c9;
  --soil: #4a3626;
  --rust: #9c4f2a;
  --leaf: #b6cc3c;
  --black: #141210;

  --en: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }

.container { width: min(calc(100% - var(--pad) * 2), var(--max)); margin-inline: auto; }
.en { font-family: var(--en); }

/* --------------------------------------------------------------------------
   Splash (opening)
   -------------------------------------------------------------------------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  background: var(--white);
  display: grid; place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash__logo {
  display: grid; justify-items: center; gap: 20px;
  color: var(--ink);
  animation: splashIn 1s var(--ease-out) both;
}
.splash__logo svg { width: 68px; height: 68px; }
.splash__logo span {
  font-family: var(--en); font-size: 28px; font-weight: 500;
  letter-spacing: 0.34em; text-indent: 0.34em; line-height: 1;
}
.splash__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: rgba(42, 33, 24, 0.08); }
.splash__bar i { display: block; height: 100%; width: 0; background: var(--leaf); transition: width 0.35s var(--ease); }
.splash__count {
  position: absolute; right: var(--pad); bottom: 18px;
  font-family: var(--en); font-size: 14px; letter-spacing: 0.14em;
  color: var(--stone); font-variant-numeric: tabular-nums;
}
@keyframes splashIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Header (logo + brand name top-left, menu top-right)
   -------------------------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.9s var(--ease), color 0.5s var(--ease);
}
.header { pointer-events: none; }
body.is-loaded .header { opacity: 1; pointer-events: auto; }
.header.is-light, .header.is-open { color: #fff; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span {
  font-family: var(--en); font-size: 20px; font-weight: 500;
  letter-spacing: 0.3em; line-height: 1; padding-top: 3px;
}

.menu-btn { display: inline-flex; align-items: center; gap: 14px; font-family: var(--en); font-size: 15px; letter-spacing: 0.22em; padding: 6px 0; }
.menu-btn i { position: relative; display: block; width: 28px; height: 1px; background: currentColor; transition: transform 0.45s var(--ease); }
.menu-btn i::before { content: ""; position: absolute; left: 0; top: -7px; width: 100%; height: 1px; background: currentColor; transition: transform 0.45s var(--ease); }
.header.is-open .menu-btn i { transform: rotate(45deg); }
.header.is-open .menu-btn i::before { transform: translateY(7px) rotate(-90deg); }
.menu-btn .t-close { display: none; }
.header.is-open .menu-btn .t-menu { display: none; }
.header.is-open .menu-btn .t-close { display: inline; }

/* --------------------------------------------------------------------------
   Navigation overlay (the one place the green goes full-bleed)
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0; z-index: 50;
  background: var(--soil); color: #fff;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.75s var(--ease-out);
  display: grid; align-content: center;
  padding: 0 var(--pad);
}
.nav.is-open { clip-path: inset(0 0 0 0); }
.nav ul { display: grid; gap: clamp(4px, 1.2vh, 12px); }
.nav a {
  display: inline-flex; align-items: baseline; gap: 20px;
  font-family: var(--en); font-size: clamp(36px, 6vw, 62px); font-weight: 400; line-height: 1.15;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out);
  transition-delay: 0s;
}
.nav.is-open a { opacity: 1; transform: none; transition-delay: calc(0.18s + var(--i, 0) * 0.05s); }
.nav a:hover { color: var(--leaf); }
.nav a small { font-family: var(--jp); font-size: 12px; letter-spacing: 0.22em; opacity: 0.72; }
.nav__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  font-family: var(--en); font-size: 13px; letter-spacing: 0.16em; opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; height: 100svh; min-height: 600px;
  background: var(--soil); color: var(--white);
  overflow: hidden;
}
.hero__frame, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__frame { opacity: 0; filter: grayscale(1) contrast(1.08); }
.hero__frame.is-on { opacity: 1; }
.hero__img {
  opacity: 0; transform: scale(1.14);
  transition: opacity 0.9s var(--ease), transform 2s var(--ease-out);
}
.hero__img.is-in { opacity: 1; transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(20, 18, 16, 0.42), rgba(20, 18, 16, 0) 22%),
    linear-gradient(to top, rgba(20, 18, 16, 0.78), rgba(20, 18, 16, 0) 62%);
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero.is-ready .hero__shade { opacity: 1; }
.hero__area { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(36px, 7vh, 88px); z-index: 2; }
.hero__title { color: var(--leaf);
  font-family: var(--en); font-weight: 500;
  font-size: clamp(96px, 17vw, 236px); line-height: 0.86; letter-spacing: 0.04em;
  margin-left: -0.03em; overflow: hidden;
}
.hero__title span { display: block; transform: translateY(106%); transition: transform 1.2s var(--ease-out); }
.hero.is-ready .hero__title span { transform: none; }
.hero__sub {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.9s var(--ease) 0.5s, transform 0.9s var(--ease) 0.5s;
}
.hero.is-ready .hero__sub { opacity: 1; transform: none; }
.hero__sub strong { font-weight: 500; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: 0.24em; }
.hero__sub em { font-family: var(--en); font-style: italic; font-size: 17px; letter-spacing: 0.04em; opacity: 0.85; }
.hero__scroll {
  position: absolute; right: var(--pad); bottom: 40px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--en); font-size: 12px; letter-spacing: 0.26em;
  writing-mode: vertical-rl;
  opacity: 0; transition: opacity 1s var(--ease) 1.2s;
}
.hero.is-ready .hero__scroll { opacity: 0.8; }
.hero__scroll::after { content: ""; width: 1px; height: 52px; background: currentColor; }

/* --------------------------------------------------------------------------
   Sections (shared)
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(88px, 12vw, 160px); }
.section__head { display: flex; align-items: baseline; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head h2 { font-family: var(--en); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: 0.02em; }
.section__head span { font-size: 13px; letter-spacing: 0.24em; color: var(--stone); }

/* Concept */
.concept { padding-block: clamp(96px, 14vw, 180px); }
.concept__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.concept__lead {
  font-family: var(--en); font-style: italic; font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px); line-height: 1.12; letter-spacing: 0;
  max-width: 11em; color: var(--rust);
}
.concept__text { margin-top: clamp(40px, 6vw, 72px); display: flex; }
.concept__text p {
  writing-mode: vertical-rl; text-orientation: mixed;
  height: clamp(360px, 56vh, 560px);
  font-size: 15.5px; line-height: 2.5; letter-spacing: 0.14em;
}
.concept__fig { margin-top: 10px; }
.concept__fig img { width: 100%; aspect-ratio: 11 / 14; object-fit: cover; }
.concept__cap { margin-top: 14px; font-family: var(--en); font-size: 13px; letter-spacing: 0.1em; color: var(--stone); }

/* Services */
.services { background: var(--paper); }
.services__intro { max-width: 34em; margin-top: -16px; margin-bottom: clamp(32px, 4vw, 48px); }
.svc {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: center;
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.svc-list .svc:last-child { border-bottom: 1px solid var(--line); }
.svc:nth-child(even) { grid-template-columns: 7fr 5fr; }
.svc:nth-child(even) .svc__body { order: 2; }
.svc__body h3 { font-family: var(--en); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: 0.01em; }
.svc__body h3 small { display: block; font-family: var(--jp); font-size: 14px; letter-spacing: 0.26em; margin-top: 14px; color: var(--rust); }
.svc__body p { margin-top: 24px; max-width: 28em; }
.svc__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Works */
.works__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 40px) clamp(16px, 2.5vw, 32px); }
.work { display: block; }
.work:nth-child(1) { grid-column: 1 / 8; }
.work:nth-child(2) { grid-column: 9 / 13; margin-top: clamp(60px, 10vw, 140px); }
.work:nth-child(3) { grid-column: 3 / 10; margin-top: clamp(20px, 4vw, 60px); }
.work img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.work:nth-child(2) img { aspect-ratio: 4 / 5; }
.work figcaption { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.work figcaption b { font-weight: 500; font-size: 15px; letter-spacing: 0.12em; }
.works__note { margin-top: 48px; font-size: 12px; color: var(--stone); letter-spacing: 0.1em; }

/* Garment-label tags (the apparel nuance) */
.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; font-family: var(--sans); font-style: normal; font-weight: 600;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1;
  padding: 5px 8px 4px; border: 1px solid currentColor; opacity: 0.8;
}

/* Instagram */
.insta { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.insta__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 32px; margin-bottom: 36px; }
.insta__head h2 { font-family: var(--en); font-weight: 400; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; }
.insta__head p { font-size: 14px; letter-spacing: 0.16em; }
.insta__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.insta__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.link { position: relative; font-family: var(--en); font-size: 17px; letter-spacing: 0.12em; padding-bottom: 3px; white-space: nowrap; }
.link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform-origin: left; transition: transform 0.5s var(--ease); }
.link:hover::after { transform: scaleX(0); transform-origin: right; }

/* Company + Contact */
.info { background: var(--paper); }
.info__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 8vw, 120px); }
.info h2 { font-family: var(--en); font-weight: 400; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; margin-bottom: 32px; }
.company dl { display: grid; grid-template-columns: auto 1fr; }
.company dt, .company dd { padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.9; }
.company dt { letter-spacing: 0.22em; color: var(--stone); white-space: nowrap; padding-right: 32px; }
.company dd { letter-spacing: 0.08em; }
.company dl > :nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
.company .pending { color: var(--stone); }
.contact__lead { font-size: 17px; letter-spacing: 0.14em; margin-bottom: 32px; }
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; letter-spacing: 0.24em; color: var(--stone); }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: transparent; padding: 10px 0;
  font: inherit; letter-spacing: 0.06em; line-height: 1.7; color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--rust); box-shadow: 0 1px 0 var(--rust); }
.btn {
  justify-self: start; display: inline-flex; align-items: center;
  padding: 16px 40px; border: 1px solid var(--rust); color: var(--rust);
  font-size: 14px; letter-spacing: 0.26em; text-indent: 0.26em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.btn:hover { background: var(--rust); color: #fff; }
.form__note { font-size: 12px; color: var(--stone); letter-spacing: 0.1em; line-height: 1.9; }
.form__done { display: none; font-size: 15px; letter-spacing: 0.12em; }
.form__fields { display: contents; }
.form.is-sent .form__fields { display: none; }
.form.is-sent .form__done { display: block; }

/* Footer */
.footer { background: var(--soil); color: #fff; padding: clamp(56px, 8vw, 96px) 0 32px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer .brand svg { width: 44px; height: 44px; }
.footer .brand span { font-size: 24px; }
.footer__tag { margin-top: 18px; font-size: 13px; letter-spacing: 0.22em; opacity: 0.8; }
.footer nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer nav a { font-family: var(--en); font-size: 16px; letter-spacing: 0.14em; opacity: 0.85; transition: opacity 0.3s; }
.footer nav a:hover { opacity: 1; }
.footer__bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--en); font-size: 13px; letter-spacing: 0.14em; opacity: 0.7;
}

/* Reveal (images only, once) */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .concept__grid { grid-template-columns: 1fr; }
  .concept__text p { writing-mode: horizontal-tb; height: auto; max-width: 32em; line-height: 2.2; }
  .svc, .svc:nth-child(even) { grid-template-columns: 1fr; }
  .svc:nth-child(even) .svc__body { order: 0; }
  .svc__fig { order: -1; }
  .work:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .work:nth-child(2) img { aspect-ratio: 7 / 5; }
  .info__grid { grid-template-columns: 1fr; }
  .company dl { grid-template-columns: 1fr; gap: 0; }
  .company dt { padding-bottom: 0; border-top: 1px solid var(--line); }
  .company dd { padding-top: 4px; border-top: 0; }
  .company dl > :nth-last-child(-n + 2) { border-bottom: 0; }
  .company dl > :last-child { border-bottom: 1px solid var(--line); }
  .hero__scroll { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .brand span { font-size: 17px; }
  .brand svg { width: 30px; height: 30px; }
  .header { padding: 18px var(--pad); }
  .hero { min-height: 560px; }
  .hero__title { font-size: clamp(84px, 24vw, 120px); }
  .insta__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Motion preferences / no-JS
   -------------------------------------------------------------------------- */
body.no-anim *, body.no-anim *::before, body.no-anim *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
