:root {
  --ink: #080a0d;
  --night: #101419;
  --graphite: #20252b;
  --smoke: #8d969b;
  --mist: #e9eceb;
  --paper: #f7f4ef;
  --ember: #f47b20;
  --amber: #ffad47;
  --copper: #9a5734;
  --glass: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.75, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(circle at 15% 18%, rgba(244, 123, 32, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 48%, rgba(154, 87, 52, 0.28), transparent 24rem),
    linear-gradient(135deg, #07090c 0%, #12171c 44%, #2b3034 100%);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.74' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.55'/%3E%3C/svg%3E");
}

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

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

button,
a {
  cursor: pointer;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

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

.section {
  padding: 96px 0;
}

.section-band {
  width: 100%;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  min-height: 62px;
  padding: 10px 12px 10px 18px;
  color: rgba(247, 244, 239, 0.9);
  background: rgba(8, 10, 13, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.brand,
.nav-links,
.hero-actions,
.contact-actions,
.globe-controls {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(244, 123, 32, 0.14);
}

.nav-links {
  gap: 24px;
  color: rgba(247, 244, 239, 0.68);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-links a,
.nav-cta,
.ghost-btn,
.control-btn {
  transition: color 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--paper);
}

.nav-cta,
.ghost-btn,
.control-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-cta:hover,
.ghost-btn:hover,
.control-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 173, 71, 0.58);
  background: rgba(255, 173, 71, 0.12);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.78fr);
  align-items: center;
  min-height: 100svh;
  padding: 132px max(24px, calc((100vw - 1160px) / 2)) 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 62% 36%, rgba(255, 173, 71, 0.2), transparent 20rem),
    linear-gradient(90deg, rgba(8, 10, 13, 0.98), rgba(8, 10, 13, 0.74) 48%, rgba(32, 37, 43, 0.68)),
    url("assets/isac-profile.png");
  background-position: center;
  background-size: cover;
  filter: saturate(0.85);
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to bottom, transparent 58%, rgba(8, 10, 13, 0.96));
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(4.7rem, 11vw, 10.8rem);
  line-height: 0.82;
  text-transform: uppercase;
}

h2 {
  max-width: 760px;
  font-size: clamp(2.5rem, 5.4vw, 5.8rem);
  line-height: 0.92;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1;
}

.hero-text,
.section-lead,
.globe-copy p,
.about-copy p,
.service-list p {
  color: rgba(247, 244, 239, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-text {
  max-width: 620px;
  margin: 28px 0 0;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 900;
}

.primary-btn {
  gap: 12px;
  color: #120a05;
  background: linear-gradient(135deg, var(--amber), var(--ember));
  box-shadow: 0 18px 46px rgba(244, 123, 32, 0.26);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), filter 220ms var(--ease);
}

.primary-btn span {
  width: 24px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 22px 2px no-repeat,
    linear-gradient(45deg, transparent 45%, currentColor 45% 56%, transparent 56%) right center / 10px 10px no-repeat;
}

.primary-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 24px 56px rgba(244, 123, 32, 0.32);
}

.ghost-btn {
  min-width: 156px;
}

.hero-portrait {
  position: relative;
  justify-self: end;
  width: min(390px, 35vw);
  min-width: 280px;
  aspect-ratio: 1;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.portrait-ring {
  position: absolute;
  inset: -22px;
  z-index: -1;
  border: 1px solid rgba(255, 173, 71, 0.3);
  border-radius: 50%;
  border-left-color: transparent;
  animation: ringSpin 10s linear infinite;
}

.portrait-badge {
  position: absolute;
  right: -20px;
  bottom: 26px;
  display: grid;
  gap: 4px;
  max-width: 190px;
  padding: 14px;
  background: rgba(8, 10, 13, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.portrait-badge span {
  color: var(--amber);
  font-weight: 900;
}

.portrait-badge strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.hero-strip {
  position: absolute;
  right: max(24px, calc((100vw - 1160px) / 2));
  bottom: 24px;
  left: max(24px, calc((100vw - 1160px) / 2));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.hero-strip span {
  padding: 18px 16px;
  color: rgba(247, 244, 239, 0.72);
  background: rgba(8, 10, 13, 0.52);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.work-intro {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: 48px;
  align-items: end;
  padding-bottom: 36px;
}

.section-lead {
  margin: 0 0 10px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 245px;
  gap: 14px;
  padding-bottom: 104px;
}

.media-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--graphite);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.media-card.tall {
  grid-row: span 2;
}

.media-card.wide {
  grid-column: span 2;
}

.media-card img,
.generated-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms var(--ease), filter 550ms var(--ease);
}

.media-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--tone), transparent 34%), transparent 16rem),
    linear-gradient(to top, rgba(8, 10, 13, 0.9), rgba(8, 10, 13, 0.06) 62%);
}

.media-card:hover img,
.media-card:hover .generated-frame {
  transform: scale(1.06);
  filter: saturate(1.15) contrast(1.05);
}

.media-overlay {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
}

.media-overlay span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-overlay p {
  max-width: 360px;
  margin: 10px 0 0;
  color: rgba(247, 244, 239, 0.68);
  line-height: 1.45;
}

.play-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(8, 10, 13, 0.58);
  backdrop-filter: blur(12px);
}

.play-button::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  content: "";
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--paper);
}

.generated-frame {
  position: relative;
  min-height: 100%;
  background-color: #151a1f;
}

.generated-frame::before,
.generated-frame::after {
  position: absolute;
  content: "";
}

.frame-event {
  background:
    linear-gradient(110deg, rgba(8, 10, 13, 0.94), rgba(37, 42, 48, 0.48)),
    radial-gradient(circle at 26% 24%, rgba(255, 173, 71, 0.9), transparent 7rem),
    radial-gradient(circle at 62% 58%, rgba(244, 123, 32, 0.48), transparent 8rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 38px);
}

.frame-event::before {
  right: 18%;
  bottom: 0;
  width: 24%;
  height: 62%;
  border-radius: 42% 42% 0 0;
  background: linear-gradient(#101419, #050608);
  box-shadow: -92px 28px 0 -24px rgba(8, 10, 13, 0.96), 86px 18px 0 -18px rgba(8, 10, 13, 0.9);
}

.frame-brand {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 173, 71, 0.8), transparent 9rem),
    linear-gradient(145deg, #080a0d, #363b3f 62%, #9a5734);
}

.frame-brand::before {
  top: 29%;
  left: 50%;
  width: 32%;
  aspect-ratio: 0.72;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: linear-gradient(160deg, #f47b20, #3a2114);
  transform: translateX(-50%) rotate(-8deg);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.36);
}

.frame-street {
  background:
    linear-gradient(180deg, rgba(8, 10, 13, 0.16), rgba(8, 10, 13, 0.88)),
    radial-gradient(circle at 18% 42%, rgba(244, 123, 32, 0.75), transparent 9rem),
    linear-gradient(110deg, #15191d, #3f474d 48%, #7d4a2f);
}

.frame-street::before {
  left: 10%;
  bottom: 0;
  width: 18%;
  height: 70%;
  border-radius: 40px 40px 0 0;
  background: #050608;
}

.frame-street::after {
  right: 16%;
  top: 20%;
  width: 22%;
  height: 34%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transform: rotate(8deg);
}

.globe-section {
  position: relative;
  overflow: hidden;
  padding: 112px 0;
  background:
    radial-gradient(circle at 70% 42%, rgba(244, 123, 32, 0.2), transparent 26rem),
    linear-gradient(180deg, rgba(8, 10, 13, 0.15), rgba(8, 10, 13, 0.56));
}

.globe-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(360px, 1fr);
  gap: 64px;
  align-items: center;
}

.globe-copy p {
  margin: 26px 0 0;
}

.globe-controls {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.control-btn {
  min-height: 46px;
  padding: 0 14px;
}

.featured-frame {
  display: grid;
  gap: 7px;
  max-width: 300px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.featured-frame span,
.featured-frame small {
  color: rgba(247, 244, 239, 0.62);
}

.featured-frame strong {
  color: var(--amber);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.35rem;
}

.media-globe {
  position: relative;
  width: min(620px, 90vw);
  aspect-ratio: 1;
  margin-inline: auto;
  perspective: 1200px;
  touch-action: none;
}

.globe-core {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 28%, rgba(255, 255, 255, 0.16), transparent 9rem),
    radial-gradient(circle at 55% 60%, rgba(244, 123, 32, 0.18), transparent 14rem),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset -40px -40px 90px rgba(0, 0, 0, 0.44), 0 34px 80px rgba(0, 0, 0, 0.3);
}

.globe-core::before,
.globe-core::after {
  position: absolute;
  inset: 7%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.globe-core::after {
  inset: 22%;
  border-color: rgba(255, 173, 71, 0.16);
}

.globe-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.globe-card {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  width: clamp(92px, 15vw, 138px);
  aspect-ratio: 0.78;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--night);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  transition: opacity 180ms var(--ease), filter 180ms var(--ease), box-shadow 180ms var(--ease);
}

.globe-card img,
.globe-card .generated-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.globe-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(8, 10, 13, 0.76), transparent 55%);
}

.globe-card span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  left: 9px;
  z-index: 1;
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.globe-card.is-active {
  border-color: rgba(255, 173, 71, 0.72);
  box-shadow: 0 22px 52px rgba(244, 123, 32, 0.28);
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.about-copy p {
  max-width: 560px;
  margin: 24px 0 0;
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-list div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 6px 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.service-list span {
  grid-row: span 2;
  color: var(--amber);
  font-weight: 900;
}

.service-list strong {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.35rem;
}

.service-list p {
  margin: 0;
}

.contact {
  padding: 92px 0;
  background:
    linear-gradient(90deg, rgba(244, 123, 32, 0.16), rgba(8, 10, 13, 0.5)),
    rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact h2 {
  max-width: 740px;
}

.contact-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  min-width: 310px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 42px;
  color: rgba(247, 244, 239, 0.58);
  font-size: 0.92rem;
}

.site-footer span:first-child {
  color: var(--paper);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .site-header {
    top: 10px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
    min-height: auto;
    padding-top: 124px;
  }

  .hero-portrait {
    justify-self: start;
    width: min(380px, 82vw);
  }

  .hero-strip,
  .work-intro,
  .globe-layout,
  .about {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-column: 1;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 16px;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-card.wide {
    grid-column: span 2;
  }

  .contact-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-actions {
    justify-content: flex-start;
    min-width: 0;
  }
}

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

  .section {
    padding: 72px 0;
  }

  .site-header {
    width: calc(100% - 20px);
    padding-left: 12px;
  }

  .brand span:last-child {
    max-width: 152px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-cta {
    padding: 11px 12px;
  }

  .hero {
    padding-inline: 14px;
    padding-bottom: 58px;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.25rem, 12vw, 3.7rem);
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .portrait-badge {
    right: 0;
    bottom: 0;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
    padding-bottom: 76px;
  }

  .media-card.tall,
  .media-card.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .globe-section {
    padding: 80px 0;
  }

  .globe-layout {
    gap: 36px;
  }

  .media-globe {
    width: min(430px, 96vw);
  }

  .globe-card {
    width: 86px;
  }

  .service-list div {
    grid-template-columns: 1fr;
  }

  .service-list span {
    grid-row: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}




h1 span {
  display: block;
}


.media-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms var(--ease), filter 550ms var(--ease);
}

.media-card:hover video,
.media-card:focus-visible video {
  transform: scale(1.06);
  filter: saturate(1.15) contrast(1.05);
}

.media-card:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.media-card[data-open]::after {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 8px 10px;
  content: "Abrir";
  color: rgba(247, 244, 239, 0.88);
  background: rgba(8, 10, 13, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  backdrop-filter: blur(12px);
}

.media-card[data-open]:hover::after,
.media-card[data-open]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 5, 7, 0.88);
  backdrop-filter: blur(18px);
}

.lightbox-panel {
  width: min(980px, 100%);
  max-height: min(86svh, 820px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(16, 20, 25, 0.94);
  box-shadow: var(--shadow);
}

.lightbox-viewport {
  display: grid;
  place-items: center;
  min-height: min(70svh, 680px);
  background: #050608;
}

.lightbox-viewport img,
.lightbox-viewport video {
  max-width: 100%;
  max-height: min(70svh, 680px);
  object-fit: contain;
}

.lightbox-caption {
  min-height: 58px;
  padding: 18px 20px;
  color: rgba(247, 244, 239, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 51;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(8, 10, 13, 0.7);
  transition: transform 220ms var(--ease), background 220ms var(--ease);
}

.lightbox-close::before,
.lightbox-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  content: "";
  background: var(--paper);
}

.lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-close:hover {
  background: rgba(244, 123, 32, 0.22);
  transform: rotate(6deg) scale(1.04);
}

.globe-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.globe-card.is-video::before {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 36%, var(--paper) 36% 50%, transparent 50%) 58% center / 12px 12px no-repeat,
    rgba(8, 10, 13, 0.62);
  backdrop-filter: blur(10px);
}

@media (max-width: 640px) {
  .media-lightbox {
    padding: 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-viewport {
    min-height: 58svh;
  }

  .lightbox-viewport img,
  .lightbox-viewport video {
    max-height: 58svh;
  }
}

@media (max-width: 760px), (pointer: coarse) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    background: linear-gradient(145deg, #07090c 0%, #12171c 54%, #23282d 100%);
  }

  body::before,
  body::after {
    display: none;
  }

  .site-header,
  .portrait-badge,
  .hero-strip span,
  .play-button,
  .media-lightbox,
  .globe-card.is-video::before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .media-card:hover img,
  .media-card:hover video,
  .media-card:hover .generated-frame,
  .media-card:focus-visible video,
  .primary-btn:hover,
  .nav-cta:hover,
  .ghost-btn:hover,
  .control-btn:hover {
    transform: none;
    filter: none;
  }

  .media-card[data-open]::after {
    display: none;
  }

  .media-globe {
    touch-action: pan-y;
    perspective: 800px;
  }

  .globe-card {
    transition: none;
    will-change: transform;
  }

  .globe-controls [data-spin="toggle"] {
    display: none;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1160px);
  }

  .section {
    padding: 64px 0;
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    min-height: 56px;
    padding: 8px 9px 8px 11px;
    background: rgba(8, 10, 13, 0.86);
  }

  .brand {
    min-width: 0;
    gap: 8px;
    font-size: 0.86rem;
  }

  .brand span:last-child {
    max-width: 128px;
  }

  .brand-mark {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 4px rgba(244, 123, 32, 0.14);
  }

  .nav-cta {
    flex: 0 0 auto;
    padding: 10px 9px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .hero {
    gap: 28px;
    min-height: 100svh;
    padding-top: 96px;
    padding-inline: 12px;
    padding-bottom: 48px;
  }

  .hero-bg {
    background-position: 56% top;
    filter: none;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.85rem, 14vw, 4rem);
    line-height: 0.9;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3.1rem);
    line-height: 0.98;
  }

  h3 {
    font-size: 1.16rem;
  }

  .hero-text,
  .section-lead,
  .globe-copy p,
  .about-copy p,
  .service-list p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-text {
    margin-top: 22px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .primary-btn,
  .ghost-btn {
    min-height: 48px;
  }

  .hero-portrait {
    justify-self: center;
    width: min(300px, 78vw);
    min-width: 0;
  }

  .portrait-ring {
    inset: -12px;
    animation: none;
  }

  .portrait-badge {
    max-width: 164px;
    padding: 10px;
  }

  .portrait-badge strong {
    font-size: 0.82rem;
  }

  .hero-strip span {
    padding: 13px 14px;
    font-size: 0.78rem;
  }

  .work-intro {
    gap: 22px;
    padding-bottom: 24px;
  }

  .media-grid {
    grid-auto-rows: 238px;
    gap: 12px;
    padding-bottom: 64px;
  }

  .media-card {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  }

  .media-card::before {
    background: linear-gradient(to top, rgba(8, 10, 13, 0.9), rgba(8, 10, 13, 0.08) 64%);
  }

  .media-overlay {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .media-overlay p {
    margin-top: 8px;
    font-size: 0.92rem;
  }

  .globe-section {
    padding: 66px 0;
  }

  .globe-layout {
    gap: 28px;
  }

  .globe-controls {
    margin-top: 22px;
  }

  .featured-frame {
    max-width: none;
    margin-top: 20px;
    padding: 15px;
  }

  .media-globe {
    width: min(330px, 92vw);
  }

  .globe-core {
    inset: 16%;
    box-shadow: inset -24px -24px 54px rgba(0, 0, 0, 0.38), 0 18px 42px rgba(0, 0, 0, 0.24);
  }

  .globe-card {
    width: clamp(68px, 21vw, 78px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  }

  .globe-card span {
    right: 7px;
    bottom: 7px;
    left: 7px;
    font-size: 0.58rem;
  }

  .about {
    gap: 28px;
  }

  .service-list div {
    padding: 18px;
  }

  .contact {
    padding: 66px 0;
  }

  .contact-actions {
    width: 100%;
  }

  .lightbox-panel {
    max-height: 82svh;
  }
}

@supports (content-visibility: auto) {
  @media (max-width: 760px) {
    .media-grid,
    .globe-section,
    .about,
    .contact {
      content-visibility: auto;
      contain-intrinsic-size: 640px;
    }
  }
}
@media (max-width: 480px) {
  .hero,
  .hero-copy,
  .hero-actions,
  .primary-btn,
  .ghost-btn {
    max-width: 100%;
  }

  .hero {
    overflow-x: clip;
    padding-inline: 10px;
  }

  .hero-copy {
    min-width: 0;
  }

  .eyebrow {
    font-size: clamp(0.62rem, 3vw, 0.7rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  h1 {
    width: 100%;
    font-size: clamp(2.35rem, 11.6vw, 3.08rem);
    line-height: 0.96;
  }

  h1 span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-text {
    max-width: 100%;
    font-size: clamp(0.92rem, 4vw, 1rem);
  }

  .hero-actions {
    width: 100%;
    gap: 10px;
  }

  .primary-btn,
  .ghost-btn {
    min-width: 0;
    padding-inline: 12px;
    font-size: 0.95rem;
  }

  .primary-btn span {
    flex: 0 0 auto;
  }
}

@media (max-width: 370px) {
  .brand span:last-child {
    max-width: 106px;
  }

  .nav-cta {
    padding-inline: 8px;
  }

  h1 {
    font-size: clamp(2.18rem, 11vw, 2.55rem);
  }
}