/* ============================================================
   REZA REXA — Warm system
   Shared pieces for every page. Loads after style.css and
   reuses its palette, type and the homepage "ref-*" sections.
   ============================================================ */

:root {
  --w-cream: #f7f1e8;
  --w-cream-2: #f4ebdf;
  --w-cream-3: #f1e2d4;
  --w-head: #999089;      /* giant headlines */
  --w-text: #7c736a;      /* running copy */
  --w-soft: #a79d92;      /* supporting copy */
  --w-mute: #b7a796;
  --w-peach: #ffb58d;
  --w-peach-2: #f0a574;
  --w-brown: #2d211c;
  --w-brown-2: #1d1411;
  --w-brown-3: #342825;
  --w-line: rgba(152, 144, 138, 0.38);
  --w-wide: min(92vw, 1880px);
}

/* ---------- Base ---------- */
body.warm {
  background: var(--w-cream-2);
  color: var(--w-text);
  font-family: var(--font-goga);
  font-weight: 500;
  line-height: 1.5;
}
body.warm::before,
body.warm::after { display: none; }
body.warm ::selection { background: rgba(240, 165, 116, 0.34); color: #4b3a30; }
body.warm :focus-visible { outline: 2px solid var(--w-peach-2); outline-offset: 3px; }
body.warm .scroll-progress {
  height: 2px;
  background: linear-gradient(90deg, #ef9f6f, #ffb58d);
  box-shadow: none;
}
.w-main {
  display: block;
  position: relative;
  overflow: clip;
  background:
    radial-gradient(120% 60% at 50% 100%, rgba(245, 191, 153, 0.16), transparent 48%),
    linear-gradient(180deg, #f7f1e8 0%, #f4ebdf 82%, #f1e2d4 100%);
}
.pg-in { width: var(--w-wide); margin: 0 auto; }

/* ---------- Top bar: works outside the hero, adapts to light sections ---------- */
.hw-top { --peach: #f5cfac; --peach-bright: #f0a874; }
.hw-word,
.hw-nav,
.hw-social-pill,
.hw-nav-btn,
.hw-social-pill a { transition: color 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
a.hw-nav-logo { transition: transform 0.4s var(--ease); }
a.hw-nav-logo:hover { transform: scale(1.06) rotate(-3deg); }
.hw-nav-btn.is-current { color: #fff; }
.hw-nav-btn.is-current::before { transform: scale(1); opacity: 1; }

.hw-top.is-light .hw-word { color: #8f867d; }
.hw-top.is-light .hw-word span { color: var(--w-peach-2); }
.hw-top.is-light .hw-nav,
.hw-top.is-light .hw-social-pill {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(152, 144, 138, 0.2);
  box-shadow: 0 10px 30px rgba(185, 140, 110, 0.1);
}
.hw-top.is-light .hw-nav-btn,
.hw-top.is-light .hw-social-pill a { color: #857c73; }
.hw-top.is-light .hw-nav-btn:hover,
.hw-top.is-light .hw-nav-btn.is-current,
.hw-top.is-light .hw-social-pill a:hover { color: #fff; }

@media (max-width: 860px) {
  /* style.css hides the pill on phones, which leaves no way to reach About / Work */
  .hw-nav { display: inline-flex; }
  .hw-nav-logo { display: none; }
  .hw-social-pill { display: none; }
  .hw-nav-btn { padding: 9px 17px; font-size: 0.9rem; }
}
@media (max-width: 480px) {
  /* the giant name was wider than a phone screen and lost its first and last letters */
  .hw-bigname { gap: 8px; padding: 0 14px; }
  .hw-bigname .hw-n { font-size: 13vw; }
  .hw-card { width: 22vw; border-radius: 12px; }
}

/* ---------- Homepage: work rows ---------- */
a.ref-card { display: block; color: inherit; }
.ref-card img,
.ref-card video { transition: transform 0.9s var(--ease); }
a.ref-card:hover img,
a.ref-card:hover video { transform: scale(1.045); }
.ref-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.8em;
  padding: 3em 0.95em 0.85em;
  background: linear-gradient(180deg, transparent, rgba(29, 20, 17, 0.78));
  color: #ffe6d5;
  font-size: clamp(11px, 0.9vw, 16px);
  font-weight: 600;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.ref-cap i { font-style: normal; color: var(--w-peach); white-space: nowrap; }
a.ref-card:hover .ref-cap,
a.ref-card:focus-visible .ref-cap { opacity: 1; transform: none; }
@media (hover: none) { .ref-cap { opacity: 1; transform: none; } }

.ref-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.4em;
  padding: 0.7em 1.15em;
  border: 1px solid var(--w-line);
  border-radius: 999px;
  color: #8a8178;
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ref-more:hover { background: var(--w-brown-3); border-color: var(--w-brown-3); color: var(--w-peach); }

.ref-services { padding-top: clamp(96px, 8.4vw, 160px); }   /* clears the fixed top bar when linked as #work */

/* "Engines & stacks" block: selection frames and tool cards drawn in CSS */
.ref-service-webflow { position: relative; }   /* anchors the two tool cards to this row */
.ref-frame {
  position: absolute;
  border: 1px solid var(--w-peach-2);
  background:
    linear-gradient(var(--w-peach-2), var(--w-peach-2)) 0 0 / 7px 7px no-repeat,
    linear-gradient(var(--w-peach-2), var(--w-peach-2)) 100% 0 / 7px 7px no-repeat,
    linear-gradient(var(--w-peach-2), var(--w-peach-2)) 0 100% / 7px 7px no-repeat,
    linear-gradient(var(--w-peach-2), var(--w-peach-2)) 100% 100% / 7px 7px no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
}
.ref-frame::before {
  content: attr(data-label);
  position: absolute;
  left: -1px;
  bottom: 100%;
  padding: 3px 7px;
  background: var(--w-peach-2);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.ref-frame-a { width: 112%; height: 46%; top: 2%; left: -6%; transform: translateY(18px); }
.ref-frame-b { width: 92%; height: 46%; top: 50%; left: 4%; transform: translateY(28px); --w-peach-2: #b9aa9b; }
.ref-frame-b::before { bottom: auto; top: 100%; left: auto; right: -1px; }
.ref-service.reveal.in .ref-frame { opacity: 1; transform: none; }
.ref-tool-card {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.4vw 1.7vw;
  background: #f8f2e9;
  border: 1px solid var(--w-peach-2);
}
.ref-tool-card + .ref-tool-card { border-color: #b9aa9b; }
.ref-tool-tab {
  position: absolute;
  left: -1px;
  bottom: 100%;
  padding: 4px 9px;
  background: var(--w-peach-2);
  color: #fff;
  font-size: clamp(10px, 0.78vw, 13px);
  font-weight: 600;
  line-height: 1;
}
.ref-tool-card + .ref-tool-card .ref-tool-tab { background: #b9aa9b; }
.ref-tool-card ul { list-style: none; margin: 0; padding: 0; }
.ref-tool-card li {
  color: #8f867d;
  font-size: clamp(13px, 1.3vw, 25px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.03em;
}
@media (max-width: 980px) {
  .ref-tool-card { width: 42vw; height: auto; min-height: 26vw; padding: 3vw; }
  .ref-tool-card li { font-size: clamp(13px, 2.2vw, 20px); }
}
@media (max-width: 760px) {
  .ref-services-tag { font-size: 12px; }
  .ref-service-copy p { font-size: 14px; }   /* was 8px */
  .ref-tool-card { width: 44vw; height: auto; min-height: 120px; padding: 14px; }
  .ref-tool-card li { font-size: 13px; }
}

/* ---------- Homepage: ventures index ---------- */
.vent {
  position: relative;
  padding: clamp(70px, 8vw, 150px) 0 clamp(60px, 7vw, 130px);
  background: linear-gradient(180deg, #f1e2d4 0%, #efddcc 100%);
}
.vent-head {
  width: var(--w-wide);
  margin: 0 auto clamp(30px, 3.4vw, 64px);
}
.vent-title {
  margin: 0;
  max-width: 11.5em;
  color: var(--w-head);
  font-family: var(--font-goga);
  font-size: clamp(40px, 5.6vw, 108px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.07em;
}
.vent-list {
  list-style: none;
  width: var(--w-wide);
  margin: 0 auto;
  padding: 0;
  border-bottom: 1px solid var(--w-line);
}
.vent-row {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto 3rem;
  align-items: center;
  gap: 1rem;
  padding: clamp(18px, 1.9vw, 36px) 0;
  border-top: 1px solid var(--w-line);
  color: var(--w-head);
  transition: padding 0.5s var(--ease), color 0.35s var(--ease);
}
.vent-n { color: var(--w-mute); font-size: 0.95rem; font-weight: 600; }
.vent-name {
  font-size: clamp(34px, 5vw, 96px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.065em;
}
.vent-role {
  color: var(--w-soft);
  font-size: clamp(14px, 1.15vw, 21px);
  font-weight: 600;
  text-align: right;
}
.vent-arrow { justify-self: end; font-size: clamp(22px, 2vw, 38px); transition: transform 0.5s var(--ease); }
.vent-row:hover { padding-left: 1.2vw; color: var(--w-peach-2); }
.vent-row:hover .vent-arrow { transform: translateX(8px); }
.vent-thumb {
  position: absolute;
  right: 24%;
  top: 50%;
  z-index: 3;
  width: clamp(140px, 15vw, 280px);
  aspect-ratio: 1 / 0.77;
  max-width: none;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 26px 60px rgba(120, 80, 55, 0.3);
  opacity: 0;
  transform: translateY(-50%) rotate(-5deg) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.vent-row:hover .vent-thumb { opacity: 1; transform: translateY(-50%) rotate(-2deg) scale(1); }
@media (max-width: 760px) {
  .vent-row { grid-template-columns: 2.2rem minmax(0, 1fr) 1.6rem; row-gap: 0.3rem; }
  .vent-role { grid-column: 2; grid-row: 2; text-align: left; }
  .vent-arrow { grid-column: 3; grid-row: 1; }
  .vent-thumb { display: none; }
}

/* ---------- Homepage: portrait scene uses one photo, graded twice ---------- */
.ref-benefits { padding: 0; }   /* the generic section padding left dark bands above and below the pinned scene */
.ref-benefits-dark { filter: brightness(0.44) saturate(0.9); }
.ref-benefits-figure { filter: brightness(0.94); }
.ref-benefits-light {
  left: 0;
  right: auto;
  width: 145%;
  max-width: none;
  object-position: 50% 22%;
  filter: brightness(0.7) saturate(1.02);
}
.ref-benefits-step2::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(24, 15, 12, 0.74) 0%, rgba(24, 15, 12, 0.44) 40%, transparent 68%);
}
@media (min-width: 761px) {
  /* keep the second beat inside one screen on short laptop displays */
  .ref-benefits-step2 { padding-top: clamp(124px, 15vh, 14vw); }
  .ref-benefits-head { margin-bottom: min(3vw, 2.6vh); }
  .ref-benefits-head h3 { font-size: min(clamp(66px, 7vw, 128px), 12vh); }
  .ref-benefits-list li {
    padding-top: min(2vw, 1.85vh);
    padding-bottom: min(2vw, 1.85vh);
    font-size: min(clamp(17px, 1.52vw, 29px), 2.8vh);
  }
  .ref-benefits-list li::before { top: min(2vw, 1.85vh); }
  .ref-benefits-btn { margin-top: min(5vw, 2.4vh); }
  /* the tagline sits left of the figure instead of across the logo on the shirt */
  .ref-benefits-step1 p { align-self: flex-start; margin-left: 4vw; }
}
@media (max-width: 760px) {
  .ref-benefits-light { width: 100%; object-position: 50% 22%; filter: brightness(0.42) saturate(0.95); }
  .ref-benefits-figure { filter: brightness(0.62); }
  .ref-benefits-step2::before { background: rgba(24, 15, 12, 0.38); }
  /* both beats have to fit one phone screen: the scene is pinned and clips anything taller */
  .ref-benefits-step1 h2 { font-size: 17vw; }
  .ref-benefits-step1 p { max-width: none; }
  .ref-benefits-step2 { padding-top: 104px; }
  .ref-benefits-head h3 { font-size: clamp(38px, 11.5vw, 56px); }
  .ref-benefits-list li { padding: 13px 0 13px 28px; font-size: 16px; }
  .ref-benefits-list li::before { top: 13px; font-size: 0.95rem; }
  .ref-benefits-btn { margin-top: 20px; }
}

/* ---------- Footer: own film, graded warm ---------- */
.ref-footer-video video { filter: brightness(0.72) saturate(0.85) sepia(0.22); }
.ref-footer-col a { transition: color 0.3s var(--ease), opacity 0.3s var(--ease); }
.ref-footer-col a:hover { color: #fff; }
.ref-footer-names a { display: block; }

/* ---------- Page hero ---------- */
.pg-hero { position: relative; padding: clamp(140px, 14vw, 240px) 0 clamp(36px, 4.6vw, 86px); }
.pg-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 clamp(18px, 1.8vw, 30px);
  color: #958c83;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.pg-tag a { color: var(--w-peach-2); }
.pg-tag a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pg-tag i { font-style: normal; opacity: 0.5; }
.pg-icon {
  width: clamp(64px, 6vw, 108px);
  height: auto;
  aspect-ratio: 1;
  margin-bottom: clamp(18px, 1.8vw, 32px);
  border-radius: 23%;
  box-shadow: 0 18px 40px rgba(150, 100, 70, 0.3);
}
.pg-title {
  margin: 0;
  color: var(--w-head);
  font-family: var(--font-goga);
  font-size: clamp(64px, 12.5vw, 240px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.075em;
}
.pg-title.is-md { font-size: clamp(54px, 9.6vw, 184px); }
.pg-title.is-sm { font-size: clamp(42px, 7.2vw, 138px); letter-spacing: -0.068em; }
.pg-title em { font-style: normal; color: var(--w-peach-2); }
.pg-lead {
  margin: clamp(22px, 2.4vw, 44px) 0 0;
  max-width: 23em;
  color: #8f867d;
  font-size: clamp(20px, 2.15vw, 40px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.035em;
}
.pg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(24px, 2.4vw, 42px); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.62em 1.05em;
  border: 1px solid var(--w-line);
  border-radius: 999px;
  color: #8a8178;
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.chip.is-status { border-color: transparent; background: rgba(255, 255, 255, 0.62); color: #7c736a; }
.chip.is-status::before { content: ''; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--w-mute); }
.chip.is-live::before { background: var(--w-peach-2); box-shadow: 0 0 0 0.28em rgba(240, 165, 116, 0.25); }
.pg-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: clamp(26px, 2.6vw, 48px); }
.btn-w { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--w-peach); }
.btn-w span {
  padding: 1rem 1.55rem;
  border-radius: 999px;
  background: var(--w-brown-3);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
}
.btn-w i {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--w-peach);
  color: var(--w-brown-3);
  font-style: normal;
  font-size: 1rem;
  transition: transform 0.45s var(--ease);
}
.btn-w:hover i { transform: translateX(6px); }
.btn-w.is-ghost { color: #8a8178; }
.btn-w.is-ghost span { background: transparent; box-shadow: inset 0 0 0 1px var(--w-line); }
.btn-w.is-ghost i { background: transparent; box-shadow: inset 0 0 0 1px var(--w-line); color: #8a8178; }

/* ---------- Screens ---------- */
.pg-shots { padding: clamp(6px, 1vw, 20px) 0 clamp(40px, 5vw, 96px); }
.shots-wide {
  width: var(--w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55vw;
}
.shots-wide .shot:first-child,
.shots-wide .shot:last-child:nth-child(even) { grid-column: 1 / -1; }
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 30px rgba(185, 140, 110, 0.1);
}
.shot img { width: 100%; height: auto; }
/* two captures of different proportions in one row: the shorter one is cropped to match, not left with a gap */
.shots-wide .shot { display: flex; flex-direction: column; }
.shots-wide .shot img { flex: 1 1 auto; min-height: 0; object-fit: cover; }
.shot.is-plain figcaption { display: none; }   /* captures that already carry their own caption */
.shot figcaption {
  position: absolute;
  left: 0.8em;
  bottom: 0.8em;
  padding: 0.55em 0.9em;
  border-radius: 999px;
  background: rgba(29, 20, 17, 0.56);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffe2cf;
  font-size: clamp(11px, 0.82vw, 14px);
  font-weight: 600;
  line-height: 1;
}
.shots-phones {
  width: var(--w-wide);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(10px, 1.3vw, 26px);
}
.shots-wide + .shots-phones { margin-top: clamp(30px, 3.6vw, 70px); }
.shots-phones .shot {
  flex: 0 1 clamp(150px, 17vw, 330px);
  border-radius: clamp(14px, 1.7vw, 32px);
  box-shadow: 0 24px 50px rgba(120, 80, 55, 0.22);
}
.shots-phones .shot:nth-child(even) { margin-top: clamp(16px, 2.6vw, 50px); }
.shots-phones .shot figcaption { display: none; }
.pg-art {
  width: var(--w-wide);
  margin: 0 auto;
  aspect-ratio: 16 / 6.2;
  border-radius: 4px;
}
.pg-art b { font-size: clamp(40px, 9vw, 180px); }
.pg-note { width: var(--w-wide); margin: 1.1em auto 0; color: var(--w-soft); font-size: clamp(13px, 0.95vw, 16px); font-weight: 600; }
.pg-note a { color: var(--w-peach-2); }
@media (max-width: 760px) {
  .shots-wide { grid-template-columns: 1fr; gap: 8px; }
  .shots-phones {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 16px 22px;
    scroll-snap-type: x proximity;
  }
  .shots-phones .shot { flex: 0 0 56vw; scroll-snap-align: center; }
  .shots-phones .shot:nth-child(even) { margin-top: 0; }
  .pg-art { aspect-ratio: 16 / 10; }
}

/* ---------- Story + facts ---------- */
.pg-about { padding: clamp(30px, 4.4vw, 90px) 0 clamp(40px, 5vw, 100px); }
.pg-about .pg-in {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(30px, 6vw, 140px);
  align-items: start;
}
.pg-h2 {
  margin: 0 0 clamp(20px, 2vw, 38px);
  max-width: 12em;
  color: var(--w-head);
  font-family: var(--font-goga);
  font-size: clamp(36px, 4.4vw, 86px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.pg-body p {
  margin: 0 0 1.05em;
  max-width: 34em;
  color: var(--w-text);
  font-size: clamp(17px, 1.32vw, 25px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.012em;
}
.pg-body p:last-child { margin-bottom: 0; }
.pg-body a { color: var(--w-peach-2); border-bottom: 1px solid rgba(240, 165, 116, 0.4); }
.facts { margin: 0; border-bottom: 1px solid var(--w-line); }
.facts div {
  display: grid;
  grid-template-columns: minmax(90px, 34%) minmax(0, 1fr);
  gap: 1em;
  padding: clamp(14px, 1.25vw, 22px) 0;
  border-top: 1px solid var(--w-line);
}
.facts dt { color: var(--w-mute); font-size: clamp(13px, 0.9vw, 16px); font-weight: 600; line-height: 1.5; }
.facts dd { margin: 0; color: #8a8178; font-size: clamp(15px, 1.12vw, 21px); font-weight: 600; line-height: 1.3; }
.facts dd a { color: var(--w-peach-2); border-bottom: 1px solid rgba(240, 165, 116, 0.4); }

/* ---------- Feature list ---------- */
.pg-feats { padding: clamp(30px, 4vw, 80px) 0 clamp(60px, 7vw, 130px); }
.feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(30px, 6vw, 140px);
  border-bottom: 1px solid var(--w-line);
}
.feat {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  align-content: start;
  padding: clamp(20px, 2vw, 36px) 0;
  border-top: 1px solid var(--w-line);
}
.feat > b { padding-top: 0.5em; color: var(--w-peach-2); font-size: 0.95rem; font-weight: 600; }
.feat h3 {
  margin: 0 0 0.4em;
  color: var(--w-head);
  font-family: var(--font-goga);
  font-size: clamp(24px, 2.05vw, 40px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}
.feat p {
  grid-column: 2;
  margin: 0;
  max-width: 30em;
  color: var(--w-text);
  font-size: clamp(15px, 1.08vw, 20px);
  line-height: 1.42;
}
.feat p a { color: var(--w-peach-2); border-bottom: 1px solid rgba(240, 165, 116, 0.4); }
@media (max-width: 860px) {
  .pg-about .pg-in { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
}

/* ---------- Next project ---------- */
.pg-next {
  display: block;
  width: var(--w-wide);
  margin: 0 auto;
  padding: clamp(28px, 3vw, 56px) 0 clamp(34px, 4vw, 76px);
  border-top: 1px solid var(--w-line);
  color: var(--w-head);
}
.pg-next small { display: block; margin-bottom: 0.9em; color: #958c83; font-size: 15px; font-weight: 600; }
.pg-next strong {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.3em;
  font-size: clamp(48px, 9vw, 176px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.07em;
  transition: color 0.4s var(--ease);
}
.pg-next strong i { font-style: normal; font-size: 0.5em; transition: transform 0.5s var(--ease); }
.pg-next:hover strong { color: var(--w-peach-2); }
.pg-next:hover strong i { transform: translateX(0.25em); }

/* ---------- Type tiles (projects without a capture) ---------- */
.tile {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(120% 120% at 18% 8%, #ffe9d6 0%, #f8c9a4 42%, #ee9f6f 100%);
  color: #fff8f1;
}
.tile::before,
.tile::after {
  content: '';
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff, #f4dcc6 42%, #e7a273 100%);
  box-shadow: 0 34px 70px rgba(214, 140, 92, 0.28), inset -8px -10px 30px rgba(190, 110, 70, 0.25);
}
.tile::before { width: 46%; left: -11%; bottom: -30%; }
.tile::after { width: 20%; right: 7%; top: 9%; }
.tile b {
  position: relative;
  z-index: 1;
  padding: 0 0.5em;
  font-family: var(--font-goga);
  font-size: clamp(26px, 3.3vw, 66px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-align: center;
  text-shadow: 0 6px 24px rgba(160, 90, 50, 0.28);
}
.tile.is-dark { background: radial-gradient(120% 120% at 18% 8%, #54402f 0%, #2d211c 55%, #1d1411 100%); color: var(--w-peach); }
.tile.is-dark::before,
.tile.is-dark::after { background: radial-gradient(circle at 34% 28%, #7a5b47, #4a372e 46%, #241a16 100%); box-shadow: 0 34px 70px rgba(0, 0, 0, 0.3); }
.tile.is-dark b { text-shadow: none; }

/* ---------- Work index ---------- */
.wk-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(26px, 2.6vw, 48px); }
.wk-filter {
  appearance: none;
  cursor: pointer;
  padding: 0.72em 1.15em;
  border: 1px solid var(--w-line);
  border-radius: 999px;
  background: transparent;
  color: #8a8178;
  font-family: var(--font-goga);
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.wk-filter sup { margin-left: 0.4em; font-size: 0.66em; opacity: 0.7; }
.wk-filter:hover { border-color: #8a8178; }
.wk-filter[aria-pressed="true"] { background: var(--w-brown-3); border-color: var(--w-brown-3); color: var(--w-peach); }
.wk-grid {
  width: var(--w-wide);
  margin: 0 auto;
  padding: clamp(6px, 1vw, 20px) 0 clamp(60px, 7vw, 130px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.2vw, 64px) clamp(10px, 1.2vw, 24px);
}
.wk-card { display: block; color: inherit; }
.wk-card[hidden] { display: none; }
.wk-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 0.77;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 30px rgba(185, 140, 110, 0.1);
}
.wk-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.wk-media.tile { display: grid; }
.wk-card:hover .wk-media img { transform: scale(1.045); }
.wk-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; padding-top: 0.95em; }
.wk-meta b {
  color: #8f867d;
  font-size: clamp(20px, 1.75vw, 34px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  transition: color 0.3s var(--ease);
}
.wk-card:hover .wk-meta b { color: var(--w-peach-2); }
.wk-meta i { font-style: normal; color: var(--w-soft); font-size: clamp(13px, 0.95vw, 17px); font-weight: 600; text-align: right; }
.wk-more { padding: 0 0 clamp(60px, 7vw, 130px); }
.wk-more[hidden] { display: none; }
.wk-more .pg-in {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 140px);
  align-items: start;
  padding-top: clamp(28px, 3vw, 56px);
  border-top: 1px solid var(--w-line);
}
.wk-more .facts.cv div { grid-template-columns: minmax(130px, 32%) minmax(0, 1fr); }
@media (max-width: 860px) { .wk-more .pg-in { grid-template-columns: 1fr; } }
@media (max-width: 1040px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .wk-grid { grid-template-columns: 1fr; }
  .wk-meta { flex-direction: column; gap: 0.35em; }
  .wk-meta i { text-align: left; }
}

/* ---------- About ---------- */
.ab-intro { padding: clamp(10px, 2vw, 40px) 0 clamp(50px, 6vw, 110px); }
.ab-intro .pg-in {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 6vw, 140px);
  align-items: start;
}
.ab-portrait {
  position: sticky;
  top: 110px;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(150, 100, 70, 0.22);
}
.ab-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 30%; }
.ab-intro .facts { margin-top: clamp(30px, 3.4vw, 64px); }
.ab-list { padding: clamp(40px, 5vw, 100px) 0; }
.ab-list .vent-list { border-bottom: 1px solid var(--w-line); }
.ab-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem clamp(20px, 4vw, 90px);
  padding: clamp(20px, 2.1vw, 40px) 0;
  border-top: 1px solid var(--w-line);
}
.ab-row h3 {
  margin: 0;
  color: var(--w-head);
  font-family: var(--font-goga);
  font-size: clamp(30px, 3.9vw, 76px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.ab-row p { margin: 0; max-width: 30em; color: var(--w-text); font-size: clamp(16px, 1.2vw, 22px); line-height: 1.42; }
.ab-cv { padding: clamp(10px, 2vw, 40px) 0 clamp(30px, 4vw, 80px); }
.ab-cv .pg-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 140px);
  align-items: start;
}
.facts.cv div { grid-template-columns: minmax(104px, 28%) minmax(0, 1fr); }
.facts.cv dt { padding-top: 0.3em; }
.facts.cv dd { color: var(--w-head); font-size: clamp(18px, 1.5vw, 28px); line-height: 1.12; letter-spacing: -0.03em; }
.facts.cv dd i {
  display: block;
  margin-top: 0.45em;
  font-style: normal;
  color: #8a8178;
  font-size: clamp(14px, 1.02vw, 18px);
  line-height: 1.3;
  letter-spacing: 0;
}
.ab-nums {
  width: var(--w-wide);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 100px) 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 48px);
}
.ab-num { padding-top: clamp(16px, 1.6vw, 28px); border-top: 1px solid var(--w-line); }
.ab-num b {
  display: block;
  color: var(--w-peach-2);
  font-size: clamp(64px, 9vw, 176px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.075em;
}
.ab-num span { display: block; margin-top: 0.9em; max-width: 14em; color: #8a8178; font-size: clamp(14px, 1.1vw, 20px); font-weight: 600; line-height: 1.3; }
.ab-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-flags .chip { background: rgba(255, 255, 255, 0.5); border-color: transparent; }
.w-faq { border-bottom: 1px solid var(--w-line); }
.w-faq details { border-top: 1px solid var(--w-line); }
.w-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  padding: clamp(18px, 1.8vw, 34px) 0;
  cursor: pointer;
  list-style: none;
  color: var(--w-head);
  font-size: clamp(22px, 2.3vw, 44px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  transition: color 0.3s var(--ease);
}
.w-faq summary::-webkit-details-marker { display: none; }
.w-faq summary::after { content: '+'; flex: none; color: var(--w-peach-2); font-weight: 500; transition: transform 0.35s var(--ease); }
.w-faq summary:hover { color: var(--w-peach-2); }
.w-faq details[open] summary::after { transform: rotate(45deg); }
.w-faq details p { margin: 0; padding: 0 0 clamp(20px, 2vw, 38px); max-width: 38em; color: var(--w-text); font-size: clamp(16px, 1.25vw, 23px); line-height: 1.45; }
@media (max-width: 860px) {
  .ab-cv .pg-in { grid-template-columns: 1fr; }
  .ab-intro .pg-in { grid-template-columns: 1fr; }
  .ab-portrait { position: static; aspect-ratio: 4 / 3.4; }
  .ab-row { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .ab-row p { grid-column: 2; }
  .ab-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .ref-card img, .ref-card video, .wk-media img, .vent-row, .vent-thumb, .btn-w i, .pg-next strong i { transition: none; }
}
