/* ── INDEX PAGE STYLES ── */

/* HERO */
#hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: var(--bg);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--ln) 1px, transparent 1px),
    linear-gradient(90deg, var(--ln) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 100%);
  opacity: .35;
}
.hero-bg-label {
  position: absolute; bottom: 100px; right: -30px;
  font-family: var(--fd); font-size: clamp(140px, 20vw, 300px);
  letter-spacing: .04em; color: var(--ln); opacity: .4;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 160px 56px 48px;
}
.hero-eyebrow {
  font-family: var(--fb); font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--d); margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--lnk); }
.hero-h1 {
  font-family: var(--fd);
  font-size: clamp(80px, 13vw, 180px);
  line-height: .86; letter-spacing: -.01em; color: var(--k);
}
.hero-h1 .out { -webkit-text-stroke: 1.5px var(--d2); color: transparent; display: block; }
.hero-h1 .sol { display: block; }
.hero-bot {
  position: relative; z-index: 2;
  padding: 24px 56px; border-top: 1px solid var(--ln);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.h-desc { font-family: var(--fb); font-size: 14px; color: var(--d); line-height: 1.8; max-width: 320px; }
.h-scroll {
  display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  font-family: var(--fb); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--d);
}
.h-line { width: 1px; height: 40px; background: var(--d2); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100%{opacity:.2;transform:scaleY(1)} 50%{opacity:.7;transform:scaleY(1.4)} }

/* HERO IMAGE */
.hero-img {
  position: absolute; top: 0; right: 0; width: 45%; height: 100%;
  overflow: hidden; z-index: 1;
}
.hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 30%, transparent 100%);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* NUMBERS */
.nums {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-bottom: 1px solid var(--dk-ln);
  background: var(--dark);
}
.num-c {
  padding: 48px 44px; border-right: 1px solid var(--dk-ln);
  transition: background .3s;
}
.num-c:last-child { border-right: none; }
.num-c:hover { background: var(--dk2); }
.num-v {
  font-family: var(--fd); font-size: clamp(48px, 6vw, 72px);
  letter-spacing: -.04em; line-height: 1; color: var(--dk-t); margin-bottom: 8px;
}
.num-l { font-family: var(--fb); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dk-d); }

/* SERVICES GRID */
.svc-wrap { border-bottom: 1px solid var(--ln); }
.svc-head {
  padding: 80px 56px 60px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  border-bottom: 1px solid var(--ln);
}
.svc-h { font-family: var(--fd); font-size: clamp(56px, 8vw, 110px); letter-spacing: -.01em; line-height: .88; color: var(--k); }
.svc-note { font-family: var(--fb); font-size: 13px; color: var(--d); line-height: 1.8; max-width: 240px; text-align: right; }
.svc-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.sc {
  border-right: 1px solid var(--ln); border-bottom: 1px solid var(--ln);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  cursor: pointer; transition: background .4s var(--ease);
  text-decoration: none; color: inherit;
}
.sc:last-child { border-right: none; }
.sc:hover { background: var(--k); }
.sc-vis {
  aspect-ratio: 1; overflow: hidden; position: relative;
  border-bottom: 1px solid var(--ln); transition: border-color .4s;
}
.sc-vis img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s, opacity 1.2s cubic-bezier(.23,1,.32,1); }
.sc:hover .sc-vis { border-color: transparent; }
.sc:hover .sc-vis img { transform: scale(1.08); filter: brightness(.6); }
.sc-foot { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; }
.sc-n { font-family: var(--fb); font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--d); transition: color .4s; }
.sc-title { font-family: var(--fb); font-size: 14px; font-weight: 600; color: var(--k); transition: color .4s; }
.sc-arr { font-size: 16px; color: var(--ln); transition: color .2s, transform .3s var(--ease); }
.sc:hover .sc-n, .sc:hover .sc-title { color: var(--bg); }
.sc:hover .sc-arr { color: var(--bg); transform: translate(3px,-3px); }

/* PROCESS */
.proc { border-bottom: 1px solid var(--ln); }
.proc-head {
  padding: 88px 56px 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.proc-h { font-family: var(--fd); font-size: clamp(56px,9vw,120px); letter-spacing: -.01em; line-height: .86; color: var(--k); }
.proc-h em { font-style: normal; -webkit-text-stroke: 1.5px var(--d2); color: transparent; }
.proc-panels { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 56px; border-top: 1px solid var(--ln); }
.pp { border-right: 1px solid var(--ln); }
.pp:last-child { border-right: none; }
.pp-img { aspect-ratio: 1; overflow: hidden; border-bottom: 1px solid var(--ln); background: var(--bg2); }
.pp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pp:hover .pp-img img { transform: scale(1.05); }
.pp-body { padding: 28px 24px; }
.pp-n { font-family: var(--fb); font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--d); margin-bottom: 14px; }
.pp-title { font-family: var(--fd); font-size: clamp(22px,3vw,34px); letter-spacing: -.01em; line-height: .92; color: var(--k); margin-bottom: 12px; }
.pp-body p { font-family: var(--fb); font-size: 13px; color: var(--d); line-height: 1.8; }

/* MANIFESTO */
.manifesto { background: var(--dark); border-bottom: 1px solid var(--dk-ln); }
.man-line {
  padding: 48px 56px; border-bottom: 1px solid var(--dk-ln);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  transition: background .3s var(--ease); cursor: default;
}
.man-line:last-child { border-bottom: none; }
.man-line:hover { background: rgba(255,255,255,.03); }
.man-t { font-family: var(--fd); font-size: clamp(26px,4.2vw,58px); letter-spacing: -.01em; line-height: 1; color: var(--dk-t); }
.man-tag {
  font-family: var(--fb); font-size: 11px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dk-d); white-space: nowrap;
  opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s var(--ease);
}
.man-line:hover .man-tag { opacity: 1; transform: none; }

/* ML SECTION */
.ml-sec {
  padding: 100px 56px; border-bottom: 1px solid var(--ln);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.ml-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* CONTACT */
.contact-sec {
  padding: 120px 56px; border-bottom: 1px solid var(--ln);
  display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start;
  position: relative; overflow: hidden;
}
.contact-sec::before {
  content: 'CONTACT'; position: absolute; font-family: var(--fd);
  font-size: clamp(80px,16vw,220px); letter-spacing: .04em;
  color: var(--ln); opacity: .3;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.c-email {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fb); font-size: clamp(14px,1.8vw,18px); font-weight: 600;
  letter-spacing: -.01em; color: var(--k); transition: opacity .2s;
}
.c-email::after { content: '↗'; font-weight: 400; font-size: 14px; }
.c-email:hover { opacity: .5; }
.c-form { display: flex; flex-direction: column; }
.cf { border-bottom: 1px solid var(--ln); padding: 20px 0; display: flex; flex-direction: column; gap: 6px; }
.cf-l { font-family: var(--fb); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--d); }
.cf-i, .cf-ta {
  background: none; border: none; outline: none;
  font-family: var(--fb); font-size: 14px; color: var(--k); width: 100%; resize: none;
}
.cf-i::placeholder, .cf-ta::placeholder { color: var(--lnk); }
.cf-foot { margin-top: 28px; display: flex; align-items: center; gap: 20px; }
.cf-note { font-family: var(--fb); font-size: 12px; color: var(--d); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-inner { padding: 140px 28px 36px; }
  .hero-bot { padding: 20px 28px; grid-template-columns: 1fr 1fr; }
  .hero-img { width: 50%; opacity: .4; }
  .nums { grid-template-columns: repeat(2,1fr); }
  .num-c:nth-child(2) { border-right: none; }
  .num-c:nth-child(3), .num-c:nth-child(4) { border-top: 1px solid var(--dk-ln); }
  .svc-head { padding: 60px 28px 48px; flex-direction: column; align-items: flex-start; }
  .svc-note { text-align: left; max-width: none; }
  .svc-grid { grid-template-columns: repeat(2,1fr); }
  .proc-head { padding: 64px 28px 0; flex-direction: column; align-items: flex-start; gap: 20px; }
  .proc-panels { grid-template-columns: 1fr 1fr; }
  .man-line { padding: 32px 28px; }
  .ml-sec { padding: 80px 28px; grid-template-columns: 1fr; gap: 48px; }
  .contact-sec { padding: 88px 28px; grid-template-columns: 1fr; gap: 52px; }
}
@media (max-width: 640px) {
  .hero-inner { padding: 120px 20px 28px; }
  .hero-bot { grid-template-columns: 1fr; padding: 16px 20px; }
  .hero-img { display: none; }
  .h-scroll { justify-content: flex-start; }
  .nums { grid-template-columns: 1fr 1fr; }
  .num-c { padding: 32px 24px; }
  .svc-head, .ml-sec, .contact-sec { padding-left: 20px; padding-right: 20px; }
  .svc-grid { grid-template-columns: 1fr; }
  .proc-head { padding: 52px 20px 0; }
  .proc-panels { grid-template-columns: 1fr; }
  .pp { border-right: none; border-bottom: 1px solid var(--ln); }
  .man-line { padding: 24px 20px; }
}
