/* ============================================================
   SOUBHAGYA VERMA — black & red editorial portfolio
   ============================================================ */

:root {
  --bg: #060506;
  --bg-2: #0b0809;
  --panel: #0e0a0b;
  --panel-2: #120c0e;
  --ink: #f6f1ec;
  --muted: #a4989b;
  --muted-2: #756a6d;
  --red: #ff2b30;
  --red-2: #d10f1c;
  --red-deep: #55070c;
  --line: rgba(246, 241, 236, 0.13);
  --line-red: rgba(255, 43, 48, 0.34);
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --nav-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 720px at 88% -8%, rgba(255, 43, 48, 0.13), transparent 62%),
    radial-gradient(900px 700px at -12% 28%, rgba(209, 15, 28, 0.07), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

::selection { background: var(--red); color: #0a0506; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, p { margin: 0; }

.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; }

/* ---------- fixed furniture ---------- */

.scroll-progress,
.grain {
  display: none;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.nav__inner {
  max-width: 1560px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.brand { display: flex; align-items: center; gap: 0.8rem; }

.brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  transition: background 0.3s ease, color 0.3s ease;
}

.brand:hover .brand__mark { background: var(--red); color: #0a0506; }

.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-size: 0.88rem; font-weight: 600; letter-spacing: -0.01em; }
.brand__text em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.59rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__links { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.4rem); }

.nav__links > a {
  position: relative;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav__links > a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s var(--ease);
}

.nav__links > a:hover { color: var(--ink); }
.nav__links > a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav__cta {
  padding: 0.68rem 1.1rem;
  border: 1px solid var(--line-red);
  color: var(--ink) !important;
  background: rgba(255, 43, 48, 0.08);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav__cta:hover { background: var(--red); color: #0a0506 !important; border-color: var(--red); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s ease;
}

.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- shared layout ---------- */

main { position: relative; }

.panel {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + clamp(1rem, 2.4vh, 2rem)) clamp(1.25rem, 5vw, 5rem) clamp(1.25rem, 3vh, 2.4rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  box-sizing: border-box;
}

.section__inner {
  position: relative;
  z-index: 2;
  width: min(1560px, 100%);
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.section-ghost {
  position: absolute;
  z-index: 0;
  right: -0.04em;
  top: 54%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: clamp(14rem, 28vw, 30rem);
  line-height: 0.72;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 43, 48, 0.075);
  pointer-events: none;
  user-select: none;
}

.section__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1rem, 2.6vh, 2rem);
}

.section__title {
  font-size: clamp(2.4rem, 5.4vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: 0.002em;
  margin-top: 0.5rem;
}

.section__sub {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  max-width: 34rem;
  padding-bottom: 0.4rem;
}

.section__sub strong, .hero__role strong, .hero__lede strong { color: var(--ink); font-weight: 500; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 43, 48, 0.95);
  flex: none;
}

.line { display: block; overflow: hidden; padding-bottom: 0.045em; }
.line__inner { display: block; will-change: transform; }
.line--accent { color: var(--red); }
.line--stroke { color: transparent; -webkit-text-stroke: 1.5px var(--red); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--red); color: #0a0506; }
.btn--primary:hover { background: var(--ink); color: #0a0506; }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }

.btn--block { width: 100%; }

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

.hero {
  padding-top: calc(var(--nav-h) + 0.4rem);
}

.hero__glow,
.hero__grid {
  display: none;
}

.hero__ghost {
  position: absolute;
  right: -0.02em;
  top: 50%;
  transform: translateY(-46%);
  font-family: var(--display);
  font-size: clamp(20rem, 43vw, 46rem);
  line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 43, 48, 0.09);
  pointer-events: none;
  user-select: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(1560px, 100%);
  margin: 0 auto;
}

.hero__stage {
  position: relative;
  z-index: 3;
}

.hero__headline {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.8rem);
  flex-wrap: nowrap;
}

.hero__title {
  margin: 0.55rem 0 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3.4rem, 8.4vw, 9.2rem);
  line-height: 0.8;
  letter-spacing: 0.004em;
  flex: 1 1 auto;
  min-width: 0;
}

.hero__media {
  position: relative;
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__square {
  position: relative;
  width: clamp(220px, 26vw, 380px);
  aspect-ratio: 1 / 1;
  padding: 7px;
  border: 1px solid rgba(255, 43, 48, 0.55);
  background: linear-gradient(180deg, rgba(255, 43, 48, 0.16), rgba(6, 5, 6, 0.4));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 56px rgba(255, 43, 48, 0.16);
  overflow: hidden;
}

.hero__square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.hero__square-shade {
  display: none;
}

.hero__badge {
  position: absolute;
  top: 14px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.55rem;
  background: rgba(6, 5, 6, 0.82);
  border: 1px solid var(--line-red);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.hero__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: none;
  justify-content: space-between;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 241, 236, 0.82);
}

@media (min-width: 1100px) {
  .hero__caption { display: flex; }
}

.hero__caption span::before {
  content: "/";
  color: var(--red);
  margin-right: 0.28rem;
}

.hero__side {
  position: absolute;
  right: -2.2rem;
  bottom: 0.4rem;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  color: var(--muted-2);
}

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: end;
  margin-top: clamp(1.1rem, 3.2vh, 2.4rem);
}

.hero__role {
  max-width: 40rem;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  color: var(--ink);
}

.hero__lede {
  margin-top: 0.55rem;
  max-width: 40rem;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  color: var(--muted);
}

.chips, .points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.chips li {
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.chips li:hover { border-color: var(--red); color: var(--ink); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

/* ---------- ventures ---------- */

.venture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.venture-card, .qual-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  height: 100%;
  padding: clamp(1.1rem, 1.8vw, 1.8rem);
  background:
    linear-gradient(140deg, rgba(255, 43, 48, 0.05), transparent 42%),
    var(--panel);
  border: 1px solid var(--line);
  text-align: left;
  overflow: hidden;
  transition: transform 0.55s var(--ease), border-color 0.4s ease, background 0.4s ease;
}

.venture-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -65% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 43, 48, 0.16), transparent 68%);
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.6s var(--ease);
  pointer-events: none;
}

.venture-card:hover, .venture-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--line-red);
  outline: none;
}

.venture-card:hover::before, .venture-card:focus-visible::before { opacity: 1; transform: scale(1.06); }

.venture-card--red {
  background:
    linear-gradient(140deg, rgba(255, 43, 48, 0.2), rgba(85, 7, 12, 0.34) 55%, transparent),
    var(--panel-2);
  border-color: var(--line-red);
}

.card__top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: auto;
}

.card__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-red);
  color: var(--red);
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  flex: none;
}

.card__tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.venture-card h3, .qual-card h3 {
  margin-top: 1.2rem;
  font-size: clamp(1.4rem, 1.9vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.venture-card p, .qual-card p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 36rem;
}

.card__open {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
}

.card__open svg { transition: transform 0.35s var(--ease); }
.venture-card:hover .card__open svg, .service-slide:hover .card__open svg { transform: translateX(4px); }

.expertise {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.expertise__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: baseline;
}

.expertise__item h4 {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.expertise__item p { color: var(--muted); font-size: 0.82rem; }

/* ---------- qualifications ---------- */

.quals__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}

.quals-grid {
  display: contents;
}

.qual-card { background: var(--panel); }

.quals__photo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: clamp(140px, 16vw, 200px);
}

.quals__photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line-red);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 50px rgba(255, 43, 48, 0.1);
}

.quals__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(0.9) contrast(1.05) brightness(0.92);
  transition: transform 1s var(--ease);
}

.quals__photo-frame:hover img { transform: scale(1.04); }

.quals__photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 52%, rgba(6, 5, 6, 0.72)),
    linear-gradient(200deg, rgba(255, 43, 48, 0.16), transparent 48%);
  pointer-events: none;
}

.quals__photo-tag {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.quals__photo figcaption {
  margin-top: 0.65rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted-2);
}

.points { gap: 0.45rem; margin-top: 1.15rem; }

.points li {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.32rem 0.55rem;
}

/* ---------- horizontal services ---------- */

.services {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  background: var(--bg);
}

.services__wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.services__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex: none;
}

.services__title {
  margin-top: 0.4rem;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: 0.002em;
}

.services__title .line { display: block; }

.services__meta {
  display: flex;
  align-items: flex-end;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-bottom: 0.35rem;
}

.services__meta p { max-width: 22rem; color: var(--muted); font-size: 0.88rem; }

.services__viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin-top: 0.75rem;
}

.services__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.2vw, 1.1rem);
  height: 100%;
  width: 100%;
  padding: 0;
}

.service-slide {
  position: relative;
  min-height: 0;
  height: 100%;
  padding: clamp(1rem, 1.8vw, 1.6rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(145deg, rgba(255, 43, 48, 0.07), transparent 44%),
    var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.service-slide--red {
  background:
    linear-gradient(145deg, rgba(255, 43, 48, 0.24), rgba(85, 7, 12, 0.2) 58%, transparent),
    var(--panel-2);
  border-color: var(--line-red);
}

.service-slide:hover, .service-slide:focus-visible {
  border-color: var(--red);
  outline: none;
}

.service-slide__num {
  position: absolute;
  right: 0.8rem;
  top: -0.08em;
  font-family: var(--display);
  font-size: clamp(5.2rem, 9vw, 8.5rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 43, 48, 0.24);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.4s ease;
}

.service-slide:hover .service-slide__num { -webkit-text-stroke-color: rgba(255, 43, 48, 0.55); }

.service-slide__body { position: relative; z-index: 2; max-width: 34rem; }

.service-slide h3 {
  margin-top: 0.5rem;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.service-slide p { margin-top: 0.5rem; color: var(--muted); font-size: 0.86rem; }

/* ---------- giant fading name ---------- */

.name-band {
  position: relative;
  min-height: 42svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 90% at 50% 50%, rgba(255, 43, 48, 0.11), transparent 70%),
    var(--bg);
  box-sizing: border-box;
}

.name-band__inner {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.name-band__layer {
  grid-area: 1 / 1;
  font-family: var(--display);
  font-size: clamp(4.4rem, 19.6vw, 21rem);
  line-height: 0.78;
  letter-spacing: -0.01em;
  white-space: nowrap;
  user-select: none;
}

.name-band__layer--fill {
  color: var(--red);
  text-shadow: 0 0 90px rgba(255, 43, 48, 0.38), 0 0 12px rgba(255, 43, 48, 0.35);
  animation: namePulse 5.6s ease-in-out infinite;
}

.name-band__layer--stroke {
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 241, 236, 0.22);
  animation: namePulse 5.6s ease-in-out infinite reverse;
}

.name-band__layer--offset {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 43, 48, 0.34);
  transform: translate3d(0.045em, 0.035em, 0);
  animation: nameDrift 7.5s ease-in-out infinite;
}

@keyframes namePulse {
  0%, 100% { opacity: 0.09; transform: scale(0.985); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes nameDrift {
  0%, 100% { opacity: 0.15; transform: translate3d(0.045em, 0.035em, 0) scale(0.99); }
  50% { opacity: 0.75; transform: translate3d(-0.02em, 0.035em, 0) scale(1.01); }
}

.name-band__note {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.name-band__note span { width: 46px; height: 1px; background: var(--line); }

/* ---------- contact ---------- */

.contact .section__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.contact__head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1rem, 2.4vh, 1.8rem);
  flex: none;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.78fr) minmax(0, 1.03fr);
  gap: clamp(1.1rem, 2.2vw, 2.2rem);
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.contact__list { border-top: 1px solid var(--line); }

.contact__list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.contact__label {
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}

.contact__list a {
  font-size: 0.88rem;
  color: var(--ink);
  transition: color 0.25s ease;
  word-break: break-word;
}

.contact__list a:hover { color: var(--red); }

.contact__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.contact__socials a {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.4rem 0.6rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.contact__socials a:hover { border-color: var(--red); color: var(--ink); }

.contact__photo {
  margin: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact__photo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-red);
  width: min(220px, 100%);
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 43, 48, 0.1);
}

.contact__photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.contact__photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(6, 5, 6, 0.75)),
    linear-gradient(200deg, rgba(255, 43, 48, 0.16), transparent 45%);
  pointer-events: none;
}

.contact__photo-tag {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.contact__photo figcaption {
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--muted-2);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.1rem, 1.8vw, 1.5rem);
  background: var(--panel);
  border: 1px solid var(--line);
  height: 100%;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field label {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.6rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field select option { background: var(--panel); color: var(--ink); }

.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--red); }

.form-note {
  min-height: 1.1rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem clamp(1.25rem, 5vw, 5rem) 1.6rem;
  background: var(--bg);
  isolation: isolate;
}

.footer__inner {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.footer__brand > div { display: flex; flex-direction: column; line-height: 1.3; }
.footer__brand strong { font-size: 0.82rem; font-weight: 600; }
.footer__brand em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__note, .footer__copy {
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__copy { color: var(--muted-2); }

/* ---------- section rail ---------- */

.rail {
  position: fixed;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-end;
}

.rail a { display: flex; align-items: center; gap: 0.6rem; }

.rail a span {
  width: 18px;
  height: 1px;
  background: var(--muted-2);
  transition: width 0.35s var(--ease), background 0.3s ease;
}

.rail a em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rail:hover em,
.rail a:focus-visible em { opacity: 1; transform: none; }

.rail a em {
  padding: 0.22rem 0.42rem;
  background: rgba(6, 5, 6, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rail a.is-active span { width: 34px; background: var(--red); }

/* ---------- modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 4, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.35s ease both;
}

.modal__panel {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  max-height: 86svh;
  overflow-y: auto;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  background:
    linear-gradient(145deg, rgba(255, 43, 48, 0.1), transparent 50%),
    #0d090a;
  border: 1px solid var(--line-red);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75), 0 0 80px rgba(255, 43, 48, 0.14);
  animation: modalIn 0.55s var(--ease) both;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(34px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.modal__close:hover { color: var(--ink); border-color: var(--red); transform: rotate(90deg); }

.modal__head { display: flex; align-items: center; gap: 0.8rem; }

.modal__mark {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.5rem;
  border: 1px solid var(--line-red);
  color: var(--red);
  font-family: var(--display);
  font-size: 0.95rem;
}

.modal__tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal__title {
  margin-top: 1.4rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.modal__body { margin-top: 0.9rem; color: var(--muted); font-size: 0.95rem; }

.modal__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
}

.modal__points li {
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.38rem 0.6rem;
  border: 1px solid var(--line);
  color: var(--muted);
}

.modal__cta { margin-top: 1.7rem; }

/* ---------- scroll reveal ---------- */

html.js [data-anim] {
  opacity: 0;
  transition:
    opacity 0.9s var(--ease),
    transform 1.15s var(--ease);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

html.js [data-anim="left"] { transform: translate3d(-90px, 0, 0); }
html.js [data-anim="right"] { transform: translate3d(90px, 0, 0); }
html.js [data-anim="up"] { transform: translate3d(0, 54px, 0); }

html.js [data-anim].is-in { opacity: 1; transform: none; }

html.js .line__inner[data-anim="left"] { transform: translate3d(-115%, 0, 0); opacity: 0; transition: transform 1.25s var(--ease), opacity 0.65s ease; }
html.js .line__inner[data-anim="right"] { transform: translate3d(115%, 0, 0); opacity: 0; transition: transform 1.25s var(--ease), opacity 0.65s ease; }
html.js .line__inner[data-anim].is-in { transform: none; opacity: 1; }

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

@media (max-width: 1180px) {
  .rail { display: none; }
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(230px, 0.8fr); }
  .contact__form { grid-column: 1 / -1; }
  .hero__badge { display: none; }
  .hero__side { display: none; }
}

@media (max-width: 980px) {
  .nav { background: var(--bg); }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-115%);
    transition: transform 0.5s var(--ease);
  }

  .nav__links.is-open { transform: none; }

  .nav__links > a {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.75rem;
  }

  .nav__links > a.nav__cta {
    margin-top: 0.8rem;
    width: auto;
    border-bottom: 0;
    padding: 0.75rem 1rem;
  }

  .nav__toggle { display: block; }

  .panel, .name-band, .services {
    height: auto;
    max-height: none;
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + 1.4rem);
    padding-bottom: 1.6rem;
    overflow: hidden;
  }

  .services { overflow: hidden; }

  .hero__headline { align-items: flex-end; }
  .hero__title { font-size: clamp(3.2rem, 12vw, 6.6rem); }
  .hero__square { width: clamp(200px, 34vw, 300px); }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__actions { justify-content: flex-start; margin-top: 0.4rem; }

  .section__top, .contact__head { grid-template-columns: 1fr; align-items: start; gap: 1.2rem; }
  .section__sub { padding-bottom: 0; }

  .quals__body {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .quals__photo { width: clamp(110px, 18vw, 160px); }

  .services__head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .services__meta { width: 100%; }
  .services__meta p { font-size: 0.8rem; }
  .services__track { gap: 0.6rem; }
  .service-slide { padding: 0.8rem 0.9rem; }
  .service-slide h3 { font-size: clamp(1.05rem, 3.2vw, 1.45rem); }
  .service-slide p { font-size: 0.76rem; margin-top: 0.35rem; }
  .service-slide .points { display: none; }
  .service-slide__num { font-size: clamp(3.6rem, 12vw, 5.6rem); }
}

@media (max-width: 760px) {
  .brand__text em { display: none; }
  .hero__headline { flex-wrap: wrap; }
  .hero__title { font-size: clamp(3.2rem, 15vw, 5.8rem); flex: 1 1 100%; }
  .hero__media { width: 100%; justify-content: flex-start; }
  .hero__square { width: min(70vw, 280px); }
  .hero__actions { gap: 0.55rem; }
  .btn { padding: 0.82rem 1.1rem; }

  .venture-grid, .expertise { grid-template-columns: 1fr; }
  .quals__body {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "photo photo"
      "ca bc";
  }
  .quals__photo {
    grid-area: photo;
    width: min(42vw, 160px);
    margin: 0 auto;
  }
  .quals__body > .qual-card:first-of-type { grid-area: ca; }
  .quals__body > .qual-card:last-of-type { grid-area: bc; }
  .expertise__item { grid-template-columns: 1fr; gap: 0.25rem; }
  .service-slide .points { display: none; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__photo { order: 2; }
  .contact__form { order: 3; grid-column: auto; }
  .contact__photo-frame { width: min(180px, 52vw); }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .name-band__layer { font-size: clamp(3.6rem, 17.5vw, 8rem); }
}

@media (max-width: 520px) {
  .section__title { font-size: clamp(2.35rem, 11vw, 3.6rem); }
  .services__title { font-size: clamp(2.2rem, 10.5vw, 3.4rem); }
  .eyebrow { font-size: 0.6rem; letter-spacing: 0.14em; }
  .contact__list li { grid-template-columns: 6.2rem 1fr; }
  .contact__list a { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js [data-anim], html.js .line__inner[data-anim] { opacity: 1; transform: none; }
}
