/* ==========================================================================
   SOIL — v3 layout (top / philosophy / works)
   Loaded after style.css. Below-hero sections follow the owner's mockup:
   concept (photo | text | agave) → mission / vision bands (rust | olive)
   → works grid → contact band (rust | olive | slats) → dark footer.
   ========================================================================== */

:root {
  --olive: #5e6029;
  --rust-deep: #4b2c1b;
  --bone: #ecebe4;
  --night: #23211d;
}

body { background: var(--bone); }

/* ---------- header: brand left, links centre, CTA + menu right ---------- */
.header { gap: 24px; transition: opacity 0.9s var(--ease), color 0.5s var(--ease), background-color 0.4s var(--ease), padding 0.4s var(--ease); }
.header.is-scrolled:not(.is-light):not(.is-open) { background: rgba(236, 235, 228, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.header.is-scrolled { padding-block: 14px; }
.gnav { display: flex; gap: clamp(20px, 2.6vw, 40px); margin-left: auto; }
.gnav a {
  position: relative; font-family: var(--en); font-weight: 500; font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase; padding-block: 4px;
}
.gnav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.cta {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--leaf); color: var(--ink);
  font-size: 13px; letter-spacing: 0.18em; padding: 11px 22px;
  transition: background 0.3s var(--ease);
}
.cta:hover { background: #c6da55; }
.cta svg { width: 22px; height: 8px; }
.header .menu-btn { margin-left: 4px; }
@media (min-width: 1025px) {
  .header .menu-btn .t-menu, .header .menu-btn .t-close { display: none; }
}
@media (max-width: 1024px) {
  .gnav { display: none; }
  .cta { margin-left: auto; padding: 9px 16px; font-size: 12px; }
}
@media (max-width: 600px) {
  .cta { display: none; }
}

/* ---------- shared label: "Concept ——" ---------- */
.label {
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--en); font-weight: 500; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
}
.label::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: 0.7; }

.jp-h { font-family: var(--jp); font-weight: 500; letter-spacing: 0.12em; line-height: 1.6; }

/* ---------- concept: photo | text | agave ---------- */
.c3 {
  display: grid; grid-template-columns: 40fr 44fr 16fr; align-items: stretch;
  padding: 16px 0 0 16px; background: var(--bone);
}
.c3__photo img, .c3__side img { width: 100%; height: 100%; object-fit: cover; }
.c3__photo { min-height: clamp(320px, 34vw, 480px); }
.c3__body { padding: clamp(40px, 5vw, 80px) clamp(28px, 5vw, 72px); align-self: center; }
.c3__body h2 { font-size: clamp(24px, 2.5vw, 34px); margin-top: 28px; }
.c3__body p { margin-top: 28px; font-size: 14.5px; line-height: 2.2; max-width: 30em; }
.c3__side { min-height: 100%; }

/* ---------- mission / vision bands ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; color: var(--white); }
.mv__item {
  position: relative; min-height: clamp(260px, 24vw, 360px);
  padding: clamp(48px, 6vw, 84px) clamp(28px, 7vw, 108px);
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: center;
}
.mv__item--rust { background-color: var(--rust-deep); background-image: linear-gradient(rgba(40, 22, 12, 0.28), rgba(40, 22, 12, 0.28)), url("../img/tex-rust-1.jpg"); }
.mv__item--olive { background-color: var(--olive); background-image: linear-gradient(rgba(54, 56, 18, 0.22), rgba(54, 56, 18, 0.22)), url("../img/tex-olive.jpg"); }
.mv__item h3 { font-size: clamp(20px, 2vw, 26px); margin-top: 26px; }
.mv__big { font-size: 1.4em; letter-spacing: 0.04em; }
.mv__item p { margin-top: 16px; font-size: 14px; line-height: 2.1; max-width: 27em; opacity: 0.92; }
.mv__more { margin-top: 26px; align-self: flex-start; font-size: 13px; letter-spacing: 0.16em; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ---------- works preview (top) ---------- */
.wprev { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }
.wprev__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px clamp(24px, 6vw, 72px); margin-bottom: clamp(28px, 3vw, 40px); }
.wprev__head h2 { font-size: clamp(22px, 2.4vw, 32px); }
.wprev__head .arrow-link { margin-left: auto; }
.wgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wgrid a { display: block; }
.wgrid img { width: 100%; aspect-ratio: 233 / 210; object-fit: cover; transition: filter 0.5s var(--ease); }
.wgrid a:hover img { filter: brightness(1.08); }
.wgrid figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; font-size: 13px; letter-spacing: 0.1em; }

.arrow-link { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; letter-spacing: 0.16em; }
.arrow-link svg { width: 22px; height: 8px; transition: transform 0.4s var(--ease); }
.arrow-link:hover svg { transform: translateX(5px); }

/* ---------- contact band: rust | olive | slats ---------- */
.cband { display: grid; grid-template-columns: 38fr 43fr 19fr; color: var(--white); min-height: clamp(280px, 24vw, 340px); }
.cband__lead { padding: clamp(40px, 4.4vw, 64px) clamp(24px, 4.4vw, 56px); background: var(--rust-deep) var(--cband-rust, url("../img/tex-rust-2.jpg")) center / cover; }
.cband__lead h2 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: 0.08em; line-height: 1.6; margin-top: 22px; }
.cband__lead p { margin-top: 18px; font-size: 13px; line-height: 2; opacity: 0.9; }
.cband__act {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(40px, 4.4vw, 64px) clamp(24px, 8vw, 120px) clamp(40px, 4.4vw, 64px) clamp(24px, 30%, 360px);
  background: var(--olive) url("../img/tex-olive.jpg") center / cover;
}
.cband__act .cta { margin-left: 0; display: inline-flex; }
.cband__act p { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.5); font-size: 13px; line-height: 2; }
.cband__slats { background: #6b5a45 url("../img/m-slats.jpg") center / cover; }

/* ---------- inquiry form (top) ---------- */
.inquiry { padding-block: clamp(72px, 9vw, 120px); background: var(--bone); }
.inquiry__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); }
.inquiry h2 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 22px; }
.inquiry__note { margin-top: 20px; font-size: 13.5px; line-height: 2.1; max-width: 24em; }

/* ---------- footer (dark, single row like the mockup) ---------- */
.footer { background: var(--night); }
.footer__line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer__line .brand svg { width: 30px; height: 30px; }
.footer__line .brand span { font-size: 20px; }
.footer__sub { font-family: var(--en); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.7; margin-left: 20px; }
.footer nav a { font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- sub-page head ---------- */
.phead {
  position: relative; min-height: clamp(380px, 52vh, 520px); color: var(--white);
  display: flex; align-items: flex-end; padding-bottom: clamp(40px, 6vw, 72px);
  background: var(--night) center / cover no-repeat;
}
.phead::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 18, 16, 0.78), rgba(20, 18, 16, 0.25)); }
.phead > .container { position: relative; }
.phead h1 { font-family: var(--en); font-weight: 500; font-size: clamp(56px, 8vw, 112px); line-height: 0.95; letter-spacing: 0.02em; margin-top: 18px; }
.phead p { margin-top: 18px; font-size: 14.5px; letter-spacing: 0.14em; line-height: 2; max-width: 30em; }

/* ---------- philosophy ---------- */
.thought { padding-block: clamp(88px, 11vw, 150px); }
.thought__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.thought h2 { font-size: clamp(24px, 2.6vw, 34px); margin-top: 26px; }
.thought__text p { margin-top: 26px; font-size: 15px; line-height: 2.3; max-width: 32em; }
.thought__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.steps { padding-block: clamp(80px, 10vw, 140px); }
.steps h2 { font-size: clamp(22px, 2.3vw, 30px); margin-top: 22px; margin-bottom: clamp(36px, 5vw, 60px); }
.steps ol { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 26px 22px 0 0; border-right: 1px solid var(--line); margin-right: 22px; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.steps li b { display: block; font-family: var(--en); font-weight: 400; font-size: 36px; line-height: 1; color: var(--rust); }
.steps li h3 { font-family: var(--jp); font-weight: 500; font-size: 16px; letter-spacing: 0.12em; margin-top: 16px; }
.steps li p { margin-top: 10px; font-size: 13.5px; line-height: 2; }

.scope { padding-block: clamp(72px, 9vw, 120px); background: var(--paper); }
.scope h2 { font-size: clamp(22px, 2.3vw, 30px); margin-top: 22px; margin-bottom: clamp(32px, 4vw, 52px); }
.scope__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 96px); }
.scope__grid article { padding-block: 26px; border-top: 1px solid var(--line); }
.scope__grid h3 { font-family: var(--en); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; }
.scope__grid h3 small { display: block; margin-top: 8px; font-family: var(--jp); font-size: 13px; letter-spacing: 0.2em; color: var(--rust); }
.scope__grid p { margin-top: 14px; font-size: 14px; line-height: 2; max-width: 28em; }

.profile { padding-block: clamp(72px, 9vw, 120px); }
.profile__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); }
.profile h2 { font-size: clamp(22px, 2.3vw, 30px); margin-top: 22px; }

/* ---------- works page ---------- */
.wlist { padding-block: clamp(80px, 10vw, 140px); }
.wlist__intro { max-width: 34em; font-size: 14.5px; line-height: 2.2; margin-bottom: clamp(48px, 7vw, 96px); }
.witem { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.witem:nth-of-type(even) { grid-template-columns: 5fr 7fr; }
.witem:nth-of-type(even) .witem__fig { order: 2; }
.witem__fig img { width: 100%; aspect-ratio: 233 / 210; object-fit: cover; }
.witem h2 { font-size: clamp(20px, 2vw, 26px); }
.witem .tags { margin-top: 16px; }
.witem p { margin-top: 18px; font-size: 14px; line-height: 2.1; max-width: 26em; }
.witem dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin-top: 22px; font-size: 13px; }
.witem dt { color: var(--stone); letter-spacing: 0.18em; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .steps ol { grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .steps li { border-right: 0; margin-right: 0; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .c3 { grid-template-columns: 1fr; padding: 0; }
  .c3__photo { min-height: 0; }
  .c3__photo img { aspect-ratio: 410 / 268; height: auto; }
  .c3__side { display: none; }
  .c3__body { padding: 56px var(--pad) 64px; }
  .mv { grid-template-columns: 1fr; }
  .wgrid { grid-template-columns: 1fr 1fr; gap: 24px 8px; }
  .cband { grid-template-columns: 1fr; }
  .cband__act { padding: 44px var(--pad); min-height: 220px; }
  .cband__slats { display: none; }
  .inquiry__grid, .thought__grid, .profile__grid { grid-template-columns: 1fr; }
  .scope__grid { grid-template-columns: 1fr; }
  .witem, .witem:nth-of-type(even) { grid-template-columns: 1fr; }
  .witem:nth-of-type(even) .witem__fig { order: 0; }
  .footer__sub { display: none; }
}
@media (max-width: 600px) {
  .steps ol { grid-template-columns: 1fr; }
  .wprev__head .arrow-link { margin-left: 0; }
}

/* 2026-10-09: the new rust textures have light tan patches; darken them slightly so white text stays readable */
.cband__lead { box-shadow: inset 0 0 0 100vmax rgba(34, 18, 9, 0.34); }
.mv__item--rust { box-shadow: inset 0 0 0 100vmax rgba(34, 18, 9, 0.14); }
.cband__lead .cband__h { font-size: clamp(16px, 1.4vw, 19px); line-height: 2; letter-spacing: 0.08em; max-width: 20em; }

/* ---------- Works: before / after (2026-10-09) ---------- */
.ba-item { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.ba { position: relative; aspect-ratio: var(--ar, 3/2); overflow: hidden; --x: 50%; background: #222; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity 0.6s ease; }
.ba__before { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; z-index: 2; pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,0.35); }
.ba__handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--soil);
  display: grid; place-items: center; font-family: var(--en); font-size: 20px; letter-spacing: 0.1em; box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.ba__range:focus-visible ~ .ba__handle::after { outline: 2px solid var(--rust); outline-offset: 3px; }
.ba__tag { position: absolute; top: 14px; z-index: 2; pointer-events: none; font-family: var(--en); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: #fff; background: rgba(20, 18, 16, 0.55); padding: 6px 12px; }
.ba__tag--b { left: 14px; }
.ba__tag--a { right: 14px; }
.ba-item__body h2 { font-size: clamp(20px, 2vw, 26px); }
.ba-item__body .tags { margin-top: 16px; }
.ba-item__body p { margin-top: 18px; font-size: 14px; line-height: 2.1; }
.ba-item__body dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin-top: 22px; font-size: 13px; }
.ba-item__body dt { color: var(--stone); letter-spacing: 0.18em; }
.ba-switch { display: inline-flex; margin-top: 22px; border: 1px solid var(--soil); }
.ba-switch button { padding: 9px 22px; font-family: var(--en); font-size: 13px; letter-spacing: 0.2em; color: var(--soil); }
.ba-switch button.is-on { background: var(--soil); color: #fff; }
@media (max-width: 820px) { .ba-item { grid-template-columns: 1fr; } }
