/* =================================================================
   Panacle Construction — Editorial Construction Studio
   style.css — design system, components, sections
   ================================================================= */

/* ---------- 1. VARIABLES ---------- */
:root {
  --warm-white: #f5f3ee;
  --black: #111111;
  --brand-blue: #1b43e8;
  --brand-blue-tint: rgba(27, 67, 232, 0.12);

  --paper: #f5f3ee;
  --ink: #111111;
  --line: rgba(17, 17, 17, 0.14);
  --line-strong: rgba(17, 17, 17, 0.32);
  --muted: rgba(17, 17, 17, 0.62);
  --white: #ffffff;

  --font: "Archivo", -apple-system, system-ui, sans-serif;
  --font-narrow: "Archivo Narrow", "Archivo", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.7, 0, 0.2, 1);
  --dur: 0.9s;

  --gutter: clamp(20px, 5vw, 96px);
  --maxw: 1680px;
}

/* ---------- 2. RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
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;
}
::selection {
  background: var(--brand-blue);
  color: #fff;
}
body.is-loading {
  overflow: hidden;
}

/* ---------- 3. TYPOGRAPHY ---------- */
.display {
  font-family: var(--font);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.narrow {
  font-family: var(--font-narrow);
  font-weight: 600;
}
.meta {
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta--blue {
  color: var(--brand-blue);
}
.meta--white {
  color: rgba(255, 255, 255, 0.66);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
p {
  line-height: 1.6;
}
.lede {
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---------- 4. LAYOUT UTILITIES ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: clamp(90px, 13vw, 200px);
}
.section--tight {
  padding-block: clamp(70px, 9vw, 130px);
}
.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}
.grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.snum {
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: clamp(12px, 0.9vw, 14px);
  letter-spacing: 0.18em;
  color: var(--brand-blue);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 600;
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    gap 0.4s var(--ease),
    color 0.3s;
}
.link-arrow .arr {
  transition: transform 0.4s var(--ease);
}
.link-arrow:hover {
  color: var(--brand-blue);
}
.link-arrow:hover .arr {
  transform: translateX(8px);
}
.link-arrow--white {
  color: #fff;
}
.link-arrow--white:hover {
  color: #fff;
  opacity: 0.8;
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  background: var(--brand-blue);
  color: #fff;
  padding: 1.05em 1.8em;
  border-radius: 2px;
  font-weight: 600;
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    background 0.3s;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(27, 67, 232, 0.6);
}
.btn .arr {
  transition: transform 0.4s var(--ease);
}
.btn:hover .arr {
  transform: translateX(6px);
}

/* ---------- 6. PRELOADER ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  transition:
    opacity 0.8s var(--ease),
    visibility 0.8s;
}
#preloader.done {
  opacity: 0;
  visibility: hidden;
}
.preload-svg {
  width: clamp(120px, 16vw, 190px);
  height: auto;
  overflow: visible;
}
.preload-svg path,
.preload-svg line,
.preload-svg rect {
  stroke: var(--ink);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: square;
  stroke-dasharray: var(--len, 420);
  stroke-dashoffset: var(--len, 420);
}
.preload-svg .b1 {
  animation: draw 0.9s var(--ease) forwards;
}
.preload-svg .b2 {
  animation: draw 0.9s var(--ease) 0.35s forwards;
}
.preload-svg .b3 {
  animation: draw 0.9s var(--ease) 0.7s forwards;
}
.preload-svg .b4 {
  animation: draw 0.9s var(--ease) 1.05s forwards;
}
.preload-svg .b5 {
  animation: draw 0.7s var(--ease) 1.4s forwards;
}
.preload-svg .flag {
  stroke: var(--brand-blue);
  stroke-width: 3;
}
.preload-meta {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- 7. HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 26px var(--gutter);
  transition:
    padding 0.5s var(--ease),
    background 0.5s var(--ease),
    color 0.5s var(--ease),
    border-color 0.5s;
  border-bottom: 1px solid transparent;
  color: var(--ink);
}
.header.is-dark {
  color: #fff;
}
.header.scrolled {
  padding-block: 16px;
  background: rgba(245, 243, 238, 0.86);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.header.scrolled.is-dark {
  background: rgba(17, 17, 17, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
.header__left {
  display: flex;
  align-items: center;
  gap: 1.4em;
}
.header__num {
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
}
.header__nav {
  display: flex;
  gap: clamp(20px, 2.4vw, 42px);
  justify-content: center;
}
.header__nav a {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding: 0.3em 0;
}
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}
.header__nav a.active {
  color: var(--brand-blue);
}
.header.is-dark .header__nav a.active {
  color: #fff;
}
.header__num .header__num-current {
  color: var(--brand-blue);
}
.header.is-dark .header__num .header__num-current {
  color: #fff;
}
.header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4em;
}
.header__cta.btn {
  padding: 0.8em 1.5em;
  font-size: 12px;
}
.header__cta.btn:hover {
  transform: translateY(-2px);
}
.menu-btn {
  display: none;
  align-items: center;
  gap: 0.6em;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.menu-btn .bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}
.menu-btn .bars span {
  display: block;
  height: 1.6px;
  background: currentColor;
  transition:
    transform 0.4s var(--ease),
    opacity 0.3s;
}
.menu-btn .bars span:nth-child(2) {
  width: 70%;
  align-self: flex-end;
}
.logo {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
}
.logo .dot {
  width: 8px;
  height: 8px;
  background: var(--brand-blue);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-1px);
}

/* ---------- 8. FULLSCREEN MENU ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--black);
  color: #fff;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-2);
  display: flex;
  flex-direction: column;
  padding: 26px var(--gutter);
}
.menu.open {
  clip-path: inset(0 0 0 0);
}
.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu__close {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.menu__close .x {
  position: relative;
  width: 20px;
  height: 20px;
}
.menu__close .x::before,
.menu__close .x::after {
  content: "";
  position: absolute;
  inset: 0;
  top: 50%;
  height: 1.6px;
  background: #fff;
  transform-origin: center;
}
.menu__close .x::before {
  transform: translateY(-50%) rotate(45deg);
}
.menu__close .x::after {
  transform: translateY(-50%) rotate(-45deg);
}
.menu__body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 40px;
  padding-bottom: 6vh;
}
.menu__links {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vw, 14px);
}
.menu__links a {
  font-family: var(--font);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(40px, 8vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  color: rgba(255, 255, 255, 0.5);
  transition:
    color 0.4s var(--ease),
    transform 0.5s var(--ease);
}
.menu__links a .n {
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 0.22em;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  align-self: flex-start;
  margin-top: 0.6em;
}
.menu__links a:hover {
  color: #fff;
  transform: translateX(14px);
}
.menu__links a.active {
  color: #fff;
}
.menu__links a.active .n {
  color: var(--brand-blue);
}
.menu__side {
  display: flex;
  flex-direction: column;
  gap: 26px;
  justify-self: end;
  align-self: end;
  padding-bottom: 1em;
}
.menu__side .meta {
  color: rgba(255, 255, 255, 0.5);
}
.menu__side a.mail {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}
.menu__foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 22px;
}
.menu__foot .meta {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 9. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) clamp(40px, 7vw, 90px);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(245, 243, 238, 0.6) 0%,
    rgba(245, 243, 238, 0) 24%
  );
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(245, 243, 238, 0) 30%,
    rgba(245, 243, 238, 0.05) 60%,
    rgba(245, 243, 238, 0.55) 100%
  );
}
.hero__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 30px;
}
.hero__title {
  font-family: var(--font);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.035em;
  font-size: clamp(64px, 12.5vw, 210px);
}
.hero__title .row {
  display: block;
  overflow: hidden;
}
.hero__title .row span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.hero.is-in .hero__title .row span {
  transform: translateY(0);
}
.hero__title .row:nth-child(2) span {
  transition-delay: 0.12s;
}
.hero__title .row:nth-child(3) span {
  transition-delay: 0.24s;
}
.hero__title .accent {
  color: var(--brand-blue);
}
.hero__title .right {
  text-align: right;
}
.hero__meta {
  position: absolute;
  top: clamp(110px, 16vh, 150px);
  left: var(--gutter);
  z-index: 3;
  display: flex;
  gap: 2.4em;
  align-items: center;
}
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 7vw, 90px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__scroll .line {
  width: 1px;
  height: 54px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.hero__scroll .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-blue);
  transform: translateY(-100%);
  animation: scrollline 2.2s var(--ease) infinite;
}
@keyframes scrollline {
  0% {
    transform: translateY(-100%);
  }
  50% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

/* ---------- 10. STATEMENT ---------- */
.statement {
  padding-block: clamp(120px, 18vw, 260px);
}
.statement__grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
.statement__num {
  position: sticky;
  top: 120px;
}
.statement__text {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.statement__text em {
  font-style: normal;
  color: var(--brand-blue);
}
.statement__cta {
  margin-top: clamp(40px, 6vw, 80px);
}

/* ---------- 11. SELECTED PROJECTS ---------- */
.work {
  padding-block: clamp(80px, 10vw, 140px);
}
.work__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: clamp(50px, 7vw, 90px);
}
.work__head h2 {
  font-size: clamp(40px, 6vw, 92px);
}
.work__list {
  display: flex;
  flex-direction: column;
  gap: clamp(70px, 11vw, 170px);
}
.project {
  position: relative;
  display: grid;
  gap: clamp(16px, 2vw, 30px);
}
.project--01 {
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
}
.project--02 {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
}
.project--03 {
  grid-template-columns: 1fr;
  max-width: 62%;
  margin-inline-start: auto;
}
.project--04 {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.project__media {
  position: relative;
  overflow: hidden;
  background: var(--line);
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
  will-change: transform;
}
.project__media.r-portrait {
  aspect-ratio: 4/5;
}
.project__media.r-tall {
  aspect-ratio: 3/4;
}
.project__media.r-wide {
  aspect-ratio: 4/3;
}
.project__media.r-full {
  aspect-ratio: 16/10;
}
.project:hover .project__media img {
  transform: scale(1.04);
}
.project__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 0.6em;
}
.project--02 .project__info {
  padding-top: 2em;
}
.project__title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 2.4vw, 38px);
  line-height: 1;
}
.project__index {
  font-family: var(--font-narrow);
  font-weight: 600;
  color: var(--brand-blue);
  font-size: 13px;
  letter-spacing: 0.16em;
}
.view-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.project:hover .view-tag {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 12. PROJECT INDEX (black) ---------- */
.pindex {
  background: var(--black);
  color: #fff;
}
.pindex__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: clamp(50px, 7vw, 90px);
}
.pindex__head h2 {
  font-size: clamp(48px, 9vw, 150px);
  line-height: 0.86;
}
.pindex__head .meta {
  color: rgba(255, 255, 255, 0.5);
}
.pindex__list {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.prow {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 50px);
  padding: clamp(22px, 3vw, 38px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
}
.prow__n {
  font-family: var(--font-narrow);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: color 0.4s;
}
.prow__t {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(24px, 3.6vw, 52px);
  line-height: 1;
  transition:
    transform 0.5s var(--ease),
    color 0.4s;
}
.prow__l {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.prow__arr {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.4);
  transition:
    transform 0.5s var(--ease),
    color 0.4s;
}
.prow:hover .prow__n {
  color: var(--brand-blue);
}
.prow:hover .prow__t {
  transform: translateX(16px);
  color: #fff;
}
.prow:hover .prow__arr {
  transform: translateX(8px);
  color: var(--brand-blue);
}
.pindex__preview {
  position: fixed;
  pointer-events: none;
  z-index: 200;
  width: clamp(220px, 22vw, 340px);
  aspect-ratio: 4/5;
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition:
    opacity 0.4s var(--ease),
    transform 0.5s var(--ease);
  will-change: transform;
}
.pindex__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pindex__preview.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---------- 13. FEATURED PROJECT ---------- */
.featured {
  padding-block: clamp(80px, 11vw, 160px);
}
.featured__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.featured__title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.86;
  font-size: clamp(56px, 9vw, 150px);
}
.featured__title .accent {
  color: var(--brand-blue);
}
.featured__copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 38ch;
}
.featured__media {
  overflow: hidden;
  aspect-ratio: 5/4;
}
.featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.featured:hover .featured__media img {
  transform: scale(1.03);
}

/* ---------- 14. NUMBERS ---------- */
.numbers {
  padding-block: clamp(90px, 13vw, 180px);
}
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 5vw, 80px);
}
.numbers__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.numbers__item:first-child .num {
  color: var(--brand-blue);
}
.num {
  font-family: var(--font);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-size: clamp(72px, 12vw, 190px);
}
.num .plus {
  color: var(--brand-blue);
}
.numbers__label {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- 15. CAPABILITIES ---------- */
.caps {
  padding-block: clamp(80px, 11vw, 150px);
}
.caps__head {
  margin-bottom: clamp(50px, 7vw, 90px);
}
.caps__head h2 {
  font-size: clamp(40px, 5.5vw, 92px);
  line-height: 1;
  overflow: visible;
}
.caps__list {
  border-top: 1px solid var(--line);
}
.cap {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 50px);
  padding: clamp(26px, 3.4vw, 46px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}
.cap__n {
  font-family: var(--font-narrow);
  font-weight: 600;
  color: var(--brand-blue);
  font-size: 14px;
  letter-spacing: 0.12em;
}
.cap__body {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}
.cap__icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cap__icon img {
  width: 26px;
  height: 26px;
}
.cap__t {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1;
  transition: transform 0.5s var(--ease);
}
.cap__desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 34ch;
  letter-spacing: 0.02em;
}
.cap:hover {
  padding-inline: 14px;
}
.cap:hover .cap__t {
  transform: translateX(10px);
}

/* ---------- 16. BEFORE / AFTER ---------- */
.compare {
  background: var(--black);
  color: #fff;
  padding-block: clamp(70px, 9vw, 130px);
}
.compare__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: clamp(40px, 5vw, 70px);
}
.compare__head h2 {
  font-size: clamp(40px, 6vw, 90px);
}
.compare__head .meta {
  color: rgba(255, 255, 255, 0.5);
}
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}
.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
  will-change: clip-path;
}
.ba__after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba__label {
  position: absolute;
  top: 24px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.5em 0.9em;
  background: rgba(17, 17, 17, 0.5);
  color: #fff;
  backdrop-filter: blur(4px);
}
.ba__label--before {
  left: 24px;
}
.ba__label--after {
  right: 24px;
}
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--brand-blue);
  transform: translateX(-50%);
  z-index: 5;
  cursor: ew-resize;
}
.ba__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-blue);
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.ba__handle::before {
  content: "⇔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

/* ---------- 17. JOURNAL ---------- */
.journal {
  padding-block: clamp(80px, 11vw, 150px);
}
.journal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: clamp(50px, 7vw, 90px);
}
.journal__head h2 {
  font-size: clamp(40px, 6vw, 92px);
}
.journal__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
  gap: clamp(30px, 3vw, 50px);
  align-items: start;
}
.jcard {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.jcard--2 {
  margin-top: clamp(40px, 5vw, 80px);
}
.jcard--3 {
  margin-top: clamp(20px, 3vw, 40px);
}
.jcard__media {
  overflow: hidden;
  background: var(--line);
}
.jcard--1 .jcard__media {
  aspect-ratio: 4/3;
}
.jcard--2 .jcard__media {
  aspect-ratio: 3/4;
}
.jcard--3 .jcard__media {
  aspect-ratio: 4/3;
}
.jcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.jcard:hover .jcard__media img {
  transform: scale(1.04);
}
.jcard__meta {
  display: flex;
  gap: 1.4em;
  align-items: center;
}
.jcard__t {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.05;
  max-width: 16ch;
}
.jcard__desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 32ch;
}

/* ---------- 18. CONTACT (blue) ---------- */
.cta {
  background: var(--brand-blue);
  color: #fff;
  padding-block: clamp(100px, 15vw, 220px);
}
.cta__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}
.cta__title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.86;
  font-size: clamp(56px, 11vw, 180px);
}
.cta__sub {
  font-size: clamp(18px, 2vw, 26px);
  max-width: 24ch;
  line-height: 1.4;
  margin-top: 30px;
  font-weight: 400;
}

/* ---------- 19. FOOTER ---------- */
.footer {
  background: var(--paper);
  color: var(--ink);
  padding-block: clamp(70px, 9vw, 120px) 40px;
}
.footer__mark {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-size: clamp(48px, 9vw, 140px);
}
.footer__mark .accent {
  color: var(--brand-blue);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-top: clamp(50px, 7vw, 90px);
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line);
}
.footer__col h4 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a {
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}
.footer__col a:hover {
  color: var(--brand-blue);
}
.footer__col .ico-row {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.footer__col .ico-row a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.footer__col .ico-row a:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}
.footer__col .ico-row img {
  width: 18px;
  height: 18px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(50px, 7vw, 90px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer__bottom .meta {
  color: var(--muted);
}

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed;
  right: max(20px, var(--gutter));
  bottom: max(20px, env(safe-area-inset-bottom, 0px) + 20px);
  z-index: 850;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, 0.7);
  animation: wa-bob 2.6s var(--ease) infinite;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.wa-float:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 36px -10px rgba(37, 211, 102, 0.8);
  animation: none;
}
.wa-float__icon {
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1;
}
.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: wa-pulse 2.2s var(--ease) infinite;
  pointer-events: none;
}
.wa-float__pulse--delay {
  animation-delay: 0.7s;
}
@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}
@keyframes wa-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ---------- 20. INTERIOR PAGE HEADER ---------- */
.pagehead {
  position: relative;
  padding-top: clamp(130px, 18vh, 200px);
  padding-bottom: clamp(50px, 7vw, 90px);
}
.pagehead__crumb {
  display: flex;
  gap: 1.4em;
  margin-bottom: 30px;
}
.pagehead h1 {
  font-size: clamp(48px, 9vw, 150px);
  line-height: 0.86;
  letter-spacing: -0.035em;
}
.pagehead__meta {
  display: flex;
  gap: 2.4em;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ---------- 21. PROJECT DETAIL ---------- */
.pdetail__hero {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--line);
}
.pdetail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdetail__info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: clamp(40px, 5vw, 70px) 0;
  border-block: 1px solid var(--line);
}
.pdetail__info dt {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.pdetail__info dd {
  font-weight: 600;
  font-size: clamp(16px, 1.4vw, 22px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pdetail__body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  padding-block: clamp(50px, 7vw, 90px);
}
.pdetail__body p {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.6;
}
.pdetail__body p + p {
  margin-top: 1.4em;
}
.pdetail__full {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--line);
}
.pdetail__full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdetail__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 30px);
  margin-top: clamp(16px, 2vw, 30px);
}
.pdetail__pair figure {
  overflow: hidden;
  background: var(--line);
}
.pdetail__pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdetail__pair .p1 {
  aspect-ratio: 4/5;
}
.pdetail__pair .p2 {
  aspect-ratio: 4/5;
}
.pdetail__next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding-block: clamp(60px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.pdetail__next .nt {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 5vw, 72px);
  line-height: 0.95;
}

/* ---------- 22. STUDIO PAGE ---------- */
.studio__lede {
  font-size: clamp(26px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 20ch;
  margin-block: clamp(40px, 6vw, 80px);
}
.studio__media {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--line);
}
.studio__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.studio__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  padding-block: clamp(60px, 8vw, 120px);
}
.studio__cols h3 {
  font-size: clamp(22px, 2.4vw, 34px);
  margin-bottom: 20px;
}
.studio__cols p {
  color: var(--muted);
  font-size: 17px;
}
.studio__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-block: clamp(50px, 7vw, 90px);
  border-top: 1px solid var(--line);
}

/* ---------- 23. CAPABILITIES PAGE ---------- */
.caplist {
  padding-block: clamp(50px, 7vw, 90px);
}
.caplist__row {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.4fr auto;
  gap: clamp(20px, 3vw, 50px);
  align-items: start;
  padding: clamp(34px, 4vw, 60px) 0;
  border-bottom: 1px solid var(--line);
}
.caplist__row:first-child {
  border-top: 1px solid var(--line);
}
.caplist__n {
  font-family: var(--font-narrow);
  font-weight: 600;
  color: var(--brand-blue);
  font-size: 14px;
  letter-spacing: 0.12em;
}
.caplist__t {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(26px, 3.4vw, 52px);
  line-height: 1;
}
.caplist__icon {
  width: 30px;
  height: 30px;
  margin-top: 14px;
}
.caplist__icon img {
  width: 100%;
  height: 100%;
}
.caplist__d {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  padding-top: 0.6em;
}

/* ---------- 24. JOURNAL PAGE ---------- */
.jlist {
  padding-block: clamp(40px, 6vw, 80px);
}
.jlist__item {
  display: grid;
  grid-template-columns: 200px 1fr 1.3fr auto;
  gap: clamp(24px, 3vw, 50px);
  align-items: center;
  padding: clamp(28px, 3.4vw, 46px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}
.jlist__item:first-child {
  border-top: 1px solid var(--line);
}
.jlist__date {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.jlist__cat {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 600;
  margin-top: 8px;
}
.jlist__t {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1;
  transition: transform 0.5s var(--ease);
}
.jlist__d {
  font-size: 15px;
  color: var(--muted);
  max-width: 36ch;
}
.jlist__item:hover {
  padding-inline: 14px;
}
.jlist__item:hover .jlist__t {
  transform: translateX(10px);
  color: var(--brand-blue);
}

/* ---------- 25. ARTICLE ---------- */
.article__head {
  padding-top: clamp(130px, 18vh, 200px);
  padding-bottom: clamp(40px, 5vw, 70px);
}
.article__head h1 {
  font-size: clamp(40px, 6.5vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.article__meta {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  margin-top: 26px;
}
.article__hero {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--line);
}
.article__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article__body {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(50px, 7vw, 90px);
}
.article__body p {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.7;
}
.article__body p + p {
  margin-top: 1.5em;
}
.article__body h3 {
  font-size: clamp(26px, 3vw, 40px);
  margin: 1.6em 0 0.6em;
  letter-spacing: -0.02em;
}
.article__body figure {
  margin: 2em -8vw;
}
.article__body figure img {
  width: 100%;
}
.article__body figcaption {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 12px;
}

/* ---------- 26. CONTACT PAGE ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  padding-block: clamp(40px, 6vw, 80px);
}
.contact__title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.86;
  font-size: clamp(48px, 7vw, 116px);
}
.contact__title .accent {
  color: var(--brand-blue);
}
.form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 0;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  transition: border-color 0.3s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.contact__details h4 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.contact__details .val {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
}

/* ---------- 27. REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.mask {
  position: relative;
  overflow: hidden;
}
.mask img {
  transform: scale(1.12);
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 1.2s var(--ease),
    transform 1.4s var(--ease);
}
.mask.in img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}
.line-reveal {
  display: block;
  overflow: hidden;
}
.line-reveal > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.line-reveal.in > span {
  transform: translateY(0);
}
.stagger .line-reveal:nth-child(2) > span {
  transition-delay: 0.1s;
}
.stagger .line-reveal:nth-child(3) > span {
  transition-delay: 0.2s;
}

/* ---------- 28. CURSOR INDICATOR ---------- */
.cursor-view {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 800;
  pointer-events: none;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.3s,
    transform 0.3s;
  will-change: transform;
}
.cursor-view.show {
  opacity: 1;
  transform: scale(1);
}

/* ---------- 29. HORIZONTAL SCROLL SECTION ---------- */
.hscroll {
  position: relative;
}
.hscroll__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hscroll__track {
  display: flex;
  gap: clamp(30px, 4vw, 70px);
  padding-inline: var(--gutter);
  will-change: transform;
}
.hscroll__track .hcard {
  flex: none;
  width: clamp(320px, 38vw, 560px);
}
.hscroll__track .hcard .media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--line);
}
.hscroll__track .hcard .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hscroll__track .hcard .info {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.hscroll__bar {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 40px;
  height: 1px;
  background: var(--line);
}
.hscroll__bar i {
  display: block;
  height: 100%;
  background: var(--brand-blue);
  width: 0;
  transition: width 0.1s linear;
}
.hscroll__label {
  position: absolute;
  top: clamp(90px, 12vh, 120px);
  left: var(--gutter);
  z-index: 3;
}
.hscroll__label .meta {
  margin-top: 6px;
}
.hscroll__hint {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  max-width: 24ch;
}
.hscroll__hint h2 {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.92;
}
.hscroll__hint .meta {
  margin-top: 16px;
}

/* ---------- 30. MISC ---------- */
.is-dark-section {
  background: var(--black);
  color: #fff;
}
.is-blue-section {
  background: var(--brand-blue);
  color: #fff;
}
.center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.spacer {
  height: clamp(40px, 6vw, 80px);
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal,
  .mask img,
  .line-reveal > span,
  .hero__title .row span {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
