:root {
  --ink: #ffffff;
  --muted: #9aa3b8;
  --black: #000000;
  --navy: #0a0e1a;
  --panel: #10162a;
  --blue: #2e5bff;
  --blue-bright: #4d78ff;
  --blue-deep: #1a3fd4;
  --accent: #ffb020;
  --accent-deep: #ff7a18;
  --accent-ink: #121212;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Oswald", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 8% -5%, rgba(46, 91, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 35% at 95% 5%, rgba(26, 63, 212, 0.22), transparent 50%),
    linear-gradient(180deg, #0c1222 0%, var(--navy) 40%, var(--black) 100%);
  font-family: var(--font-body);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  padding: 18px 0 28px;
  overflow: hidden;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(46, 91, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 91, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(46, 91, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 91, 255, 0.2) 1px, transparent 1px);
  background-size:
    16px 16px,
    16px 16px,
    48px 48px,
    48px 48px,
    96px 96px,
    96px 96px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  pointer-events: none;
  animation: nested-grid 20s linear infinite;
}

@keyframes nested-grid {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 16px 16px, 16px 16px, 48px 48px, 48px 48px, 96px 96px, 96px 96px;
  }
}

.nav,
.hero-grid,
.highlights,
.footer,
.contact-rail {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand span {
  margin: 0 0.2em;
  color: var(--accent);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.22);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.intro {
  margin: 0 0 16px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--accent-ink);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(255, 122, 24, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 122, 24, 0.48);
}

.ghost-link {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 2px;
}

.ghost-link:hover {
  color: var(--blue-bright);
  border-color: var(--blue-bright);
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-contact a:hover {
  color: var(--blue-bright);
}

.portrait-wrap {
  display: flex;
  justify-content: center;
}

.portrait-frame {
  width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(46, 91, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 30px 70px rgba(0, 0, 0, 0.55);
  background: #10162a;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.contact-rail {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}

.contact-rail a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 10px 24px rgba(255, 122, 24, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-rail a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 122, 24, 0.48);
}

.contact-rail svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlights {
  padding: 8px 0 40px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section-support {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 22, 42, 0.96), rgba(0, 0, 0, 0.92));
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  outline: none;
  transform: translateY(-4px);
  border-color: rgba(46, 91, 255, 0.5);
  box-shadow: var(--shadow);
}

.card-art {
  position: relative;
  flex: 1;
  min-height: 130px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(46, 91, 255, 0.3), transparent 55%),
    #0a0e1a;
}

.card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 320ms ease;
}

.portfolio-card:hover .card-art img {
  transform: scale(1.05);
}

.card-art.has-image {
  padding: 0;
}

.card-art.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.card-art.has-image.is-logo {
  min-height: 160px;
  aspect-ratio: 4 / 3;
  background: #f2f2f0;
}

.card-art.has-image.is-logo::after {
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.28));
}

.card-art.has-image.is-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.card-art.has-image .art-mark {
  display: none;
}

.card-interviews .card-art {
  background:
    linear-gradient(145deg, rgba(26, 63, 212, 0.5), transparent 60%),
    #0a0e1a;
}

.card-product .card-art {
  background:
    linear-gradient(160deg, rgba(46, 91, 255, 0.22), transparent 50%),
    linear-gradient(20deg, rgba(255, 255, 255, 0.05), transparent 40%),
    #0a0e1a;
}

.card-speeches .card-art {
  background:
    linear-gradient(200deg, rgba(77, 120, 255, 0.28), transparent 55%),
    #0a0e1a;
}

.art-mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}

.art-label {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.4);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.card-art.has-image .art-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  margin: 0;
}

.card-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}

.card-number {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.card-tag {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 176, 32, 0.16);
  color: var(--accent);
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}

.portfolio-card:hover .card-arrow {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--accent-ink);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 14px 0 22px;
}

.footer-inner {
  display: flex;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.72);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 24px auto;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(46, 91, 255, 0.35);
  background: linear-gradient(180deg, #10162a, #000000);
  box-shadow: var(--shadow);
  animation: modal-in 260ms ease;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.modal-kicker {
  margin: 0 0 8px;
  color: var(--blue-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.modal-panel > p:not(.modal-kicker) {
  margin: 0;
  color: var(--muted);
}

.modal-panel > p:empty {
  display: none;
}

.modal-content {
  margin-top: 18px;
}

.modal-empty {
  padding: 20px 16px;
  border: 1px dashed rgba(46, 91, 255, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.modal-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.modal-open {
  overflow: hidden;
}

.reveal-hero,
.reveal-rail,
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 700ms ease forwards;
  animation-delay: var(--delay, 0s);
}

.reveal-on-scroll {
  animation: none;
}

.reveal-on-scroll.is-visible {
  animation: rise-in 700ms ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portrait-wrap {
    order: -1;
  }

  .portrait-frame {
    width: min(100%, 280px);
  }

  .contact-rail {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    margin-bottom: 32px;
  }

  .status {
    display: none;
  }

  .hero {
    padding-bottom: 36px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    padding: 22px 18px 24px;
  }
}
