/* SYMMETRON 25 — home page: hero, drawing-to-built slider, capabilities,
   studio band. Loaded only on the S25 Home template. */

@keyframes heroImgHome { from { clip-path: inset(100% 0 0 0); transform: scale(1.14); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
@keyframes wmInHome { from { opacity: 0; } to { opacity: .06; } }

body.s25-home .section { padding: clamp(64px, 10vh, 120px) var(--gutter); }

/* ------------------------------------------------------------------ hero -- */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: stretch;
  padding-top: 72px;
  position: relative;
}
.hero-left {
  padding: clamp(30px, 7vh, 80px) clamp(24px, 4vw, 64px) clamp(40px, 7vh, 80px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-emblem-wm {
  position: absolute;
  left: -90px;
  bottom: -70px;
  width: min(46vw, 420px);
  opacity: .06;
  pointer-events: none;
  animation: wmInHome 1.6s var(--ease) .3s both;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: heroRise .9s var(--ease) .25s forwards;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--brass); }
.hero-statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -.015em;
  max-width: 15ch;
  opacity: 0;
  animation: heroRise 1s var(--ease) .4s forwards;
}
.hero-statement em { font-style: italic; }
.hero-statement .brass-text { font-weight: 400; }
.hero-sub {
  margin-top: 30px;
  max-width: 44ch;
  color: var(--mid);
  font-size: 15.5px;
  line-height: 1.65;
  opacity: 0;
  animation: heroRise 1s var(--ease) .58s forwards;
}
.hero-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--brass);
  padding: 14px 22px;
  border-radius: 2px;
  transition: background .35s, color .35s, gap .35s var(--ease);
  opacity: 0;
  animation: heroRise 1s var(--ease) .72s forwards;
}
.hero-cta:hover { background: var(--grad); color: #FAF8F3; border-color: transparent; gap: 18px; }
.hero-right { position: relative; overflow: hidden; background: var(--paper-2); }
.hero-right picture { position: absolute; inset: 0; display: block; }
.hero-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.1) saturate(.96) contrast(1.02) brightness(1.01);
  animation: heroImgHome 1.5s var(--ease) .15s both;
}
.hero-right::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: .06;
  mix-blend-mode: multiply;
}
.hero-tag {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #FAF8F3;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: heroRise .9s var(--ease) 1.1s forwards;
}
.hero-tag::before { content: ""; width: 26px; height: 1px; background: #FAF8F3; }

/* ------------------------------------------------------- drawing → built -- */

@property --pos {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 50%;
}

.dtb {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 10vh, 120px) var(--gutter) clamp(72px, 11vh, 130px);
  overflow: hidden;
}
.dtb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 80% -10%, rgba(176, 137, 76, .18), transparent 60%);
  pointer-events: none;
}
.dtb-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 5vh, 52px);
}
.dtb-head .sec-eyebrow { color: var(--brass-l); }
.dtb-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.8vw, 50px);
  line-height: 1.06;
  letter-spacing: -.015em;
  max-width: 16ch;
}
.dtb-title em { font-style: italic; }
.dtb-hint {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, .62);
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.dtb-hint .drag-ico {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-l), transparent);
  position: relative;
}
.dtb-hint .drag-ico::before,
.dtb-hint .drag-ico::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--brass-l);
  border-right: 1px solid var(--brass-l);
}
.dtb-hint .drag-ico::before { left: 0; transform: translateY(-50%) rotate(-135deg); }
.dtb-hint .drag-ico::after { right: 0; transform: translateY(-50%) rotate(45deg); }

.dtb-stage {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid rgba(250, 248, 243, .14);
  background: var(--paper);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .8);
}
.dtb-stage.sweep { transition: --pos 1s var(--ease); }
.dtb-built { position: absolute; inset: 0; }
.dtb-built picture { display: block; width: 100%; height: 100%; }
.dtb-built img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.08) saturate(.98) contrast(1.02) brightness(1.02);
}
.dtb-built::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: .07;
  mix-blend-mode: multiply;
}
.dtb-draw {
  position: absolute;
  inset: 0;
  background: var(--paper);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  will-change: clip-path;
}
.dtb-draw svg { width: 100%; height: 100%; display: block; }
.dtb-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 0;
  z-index: 4;
  pointer-events: none;
}
.dtb-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--grad);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.dtb-grip {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 8px 26px -8px rgba(0, 0, 0, .55);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.dtb-stage:hover .dtb-grip { transform: translate(-50%, -50%) scale(1.06); }
.dtb-grip i { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.dtb-grip i.l { border-right: 7px solid var(--brass-d); }
.dtb-grip i.r { border-left: 7px solid var(--brass-d); }
.dtb-stage:focus-visible { outline: 2px solid var(--brass-l); outline-offset: 3px; }
.dtb-tag {
  position: absolute;
  top: 16px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  transition: opacity .3s;
}
.dtb-tag.draw { left: 16px; color: var(--brass-d); background: rgba(250, 248, 243, .78); border: 1px solid var(--hair); }
.dtb-tag.built { right: 16px; color: var(--paper); background: rgba(32, 27, 18, .42); border: 1px solid rgba(250, 248, 243, .22); }
.dtb-foot {
  position: relative;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(250, 248, 243, .6);
}
.dtb-foot b { color: var(--brass-l); font-weight: 500; }

/* ---------------------------------------------------- capabilities band --- */

.cap-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(50px, 8vh, 90px) var(--gutter);
  background: var(--paper-2);
}
.cap-band .cap-item { transition: transform .4s var(--ease); }
.cap-band .cap-item h3 {
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cap-band .cap-item h3 b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--brass); }
.cap-band .cap-item p { color: var(--mid); font-size: 14.5px; line-height: 1.6; }

/* --------------------------------------------------------- studio strip --- */

.studio {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}
.studio-statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 33px);
  line-height: 1.3;
  letter-spacing: -.005em;
}
.studio-statement em { font-style: italic; }
.studio-facts {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--mid);
}
.studio-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 14px 22px; }
.studio-facts dt { text-transform: uppercase; color: var(--ink); }
.studio-facts dd { text-align: right; }
.studio-facts .row { grid-column: 1 / -1; height: 1px; background: var(--hair); }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { min-height: 56vh; }
  .studio { grid-template-columns: 1fr; gap: 36px; }
  .cap-band { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .dtb-stage { aspect-ratio: 4/5; }
  .dtb-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-statement,
  .hero-sub,
  .hero-cta,
  .hero-tag { opacity: 1 !important; transform: none !important; }
  .hero-emblem-wm { opacity: .06 !important; }
  .hero-right img { clip-path: none !important; transform: none !important; }
  .dtb-stage.sweep { transition: none !important; }
}
