:root {
  --bg: #07070c;
  --ink: #f4f2ee;
  --ink-dim: #9a9aa7;
  --accent: #ff5a2a;
  --accent-2: #ffb703;
  --line: rgba(255,255,255,.08);
  --panel: rgba(12,12,18,.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* --- 3D canvas behind everything --- */
#bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* --- Scroll progress bar --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 100;
  transition: width .1s linear;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7,7,12,.7), rgba(7,7,12,0));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0b12;
  font-size: 18px;
}
.brand-word { font-size: 18px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border-radius: 12px;
  background: transparent;
  transition: transform .25s, background .3s;
}
.brand:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.04);
}
/*
 * Dark-theme JPEG logo trick:
 * - invert(1) flips lightness (white bg → black, dark logo → light)
 * - hue-rotate(180deg) flips hue back (so brand reds stay red)
 * - mix-blend-mode: lighten makes the now-black "background" blend
 *   into the dark page, leaving only the logo mark visible
 */
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  filter: invert(1) hue-rotate(180deg) brightness(1.15) contrast(1.05);
  mix-blend-mode: lighten;
  transition: transform .35s ease, filter .3s;
}
.brand:hover .brand-logo {
  transform: scale(1.05);
  filter: invert(1) hue-rotate(180deg) brightness(1.3) contrast(1.1);
}
.nav nav { display: flex; gap: 28px; }
.nav nav a {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .25s;
}
.nav nav a:hover { color: var(--ink); }

/* --- Sections --- */
main { position: relative; z-index: 2; }
.section {
  position: relative;
  min-height: 100vh;
  padding: 120px 8vw 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-head { max-width: 780px; margin-bottom: 60px; }
.section-num {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head p {
  color: var(--ink-dim);
  font-size: clamp(16px, 1.3vw, 18px);
  max-width: 58ch;
  margin: 0;
}

/* --- Hero --- */
.section-hero {
  min-height: 100vh;
  justify-content: center;
}
.hero-copy { max-width: 1000px; }
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 26px;
}
.hero-copy h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 7.5vw, 112px);
  line-height: .98;
  margin: 0 0 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.accent {
  background: linear-gradient(135deg, var(--accent), #ff8a57);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent-2 {
  background: linear-gradient(135deg, var(--accent-2), #ffd35b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-dim);
  max-width: 60ch;
  margin: 0 0 40px;
}
.cta-row { display: flex; gap: 18px; flex-wrap: wrap; }
.cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  letter-spacing: .05em;
  transition: transform .2s, background .25s, border-color .25s;
  will-change: transform;
}
.cta.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0b12;
  font-weight: 700;
}
.cta.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.cta:hover { transform: translateY(-2px); }
.cta.ghost:hover { border-color: var(--accent); color: var(--accent); }
.cta.big { font-size: 28px; padding: 22px 40px; align-self: flex-start; }

.hero-hint {
  position: absolute;
  bottom: 32px;
  left: 8vw;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: .7;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: translateY(0); opacity: .4; }
  50%     { transform: translateY(6px); opacity: 1; }
}

/* --- Work cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transition: transform .2s ease-out, border-color .25s;
  cursor: pointer;
  overflow: hidden;
}
.card:hover { border-color: rgba(255,90,42,.45); }
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,90,42,.18), transparent 55%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card h3 {
  margin: 8px 0 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.card p { margin: 0; color: var(--ink-dim); font-size: 13.5px; line-height: 1.55; }
.card .card-tagline {
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: .04em;
  margin: 0 0 10px !important;
  font-style: italic;
}
.card .card-desc {
  margin: 0;
}
.card .card-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,90,42,.1);
  border: 1px solid rgba(255,90,42,.3);
  border-radius: 999px;
}
a.card.card-link { color: inherit; display: block; text-decoration: none; }
.card-visit {
  display: inline-block;
  margin-top: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--accent-2);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .3s, transform .3s;
}
.card:hover .card-visit { opacity: 1; transform: translateX(0); }
.card .card-img {
  position: relative;
  margin: -28px -28px 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #120d16;
  border-bottom: 1px solid var(--line);
}
.card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
  filter: saturate(1.05);
}
.card:hover .card-img img { transform: scale(1.06); }
.card .card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12,12,18,.7));
  pointer-events: none;
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.stat {
  padding: 32px 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.stat .num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat .lbl {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: .15em;
}

/* --- Team · each image has baked-in name / role / slogan,
       so the design just has to present it cleanly.          --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.member {
  position: relative;
  aspect-ratio: 5 / 3;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #f7f3ec;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: transform .35s ease, border-color .3s, box-shadow .35s;
  display: block;
}
.member:hover,
.member:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255,90,42,.55);
  box-shadow: 0 26px 50px -20px rgba(255,90,42,.4);
  outline: none;
}
.member-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;           /* show whole image, banner visible */
  object-position: center;
  display: block;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.member:hover .member-photo {
  transform: scale(1.04);
}
/* Hover caption — subtle bottom bar confirming details.
   Kept visually minimal because the image itself already shows them. */
.member-hover {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, transparent, rgba(7,7,12,.92));
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .35s ease, opacity .3s;
  pointer-events: none;
}
.member:hover .member-hover,
.member:focus-visible .member-hover {
  transform: translateY(0);
  opacity: 1;
}
.member-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
}
.member-role {
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.member-slogan {
  font-size: 12px;
  color: var(--ink-dim);
  font-style: italic;
  margin-top: 2px;
}

/* ---- Team modal ---- */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.team-modal.is-open { display: flex; animation: fadeIn .25s ease; }
.team-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5,5,10,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.team-modal__card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: min(900px, 100%);
  max-height: 90vh;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f0d15;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.8);
  animation: popIn .35s cubic-bezier(.17,.67,.42,1.25);
}
.team-modal__photo {
  aspect-ratio: 5 / 4;
  background: #f7f3ec;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.team-modal__photo img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}
.team-modal__body {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-modal__role {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  margin-bottom: 16px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,90,42,.12);
  border: 1px solid rgba(255,90,42,.35);
  border-radius: 999px;
}
.team-modal__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.team-modal__bio {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.65;
  margin: 0;
}
.team-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12,12,18,.8);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
  transition: background .25s, color .25s, transform .25s;
}
.team-modal__close:hover { background: var(--accent); color: #0b0b12; transform: rotate(90deg); }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes popIn  { from { opacity: 0; transform: scale(.94) translateY(20px) } to { opacity: 1; transform: scale(1) translateY(0) } }
@media (max-width: 720px) {
  .team-modal__card { grid-template-columns: 1fr; }
  .team-modal__photo { aspect-ratio: 16 / 11; }
  .team-modal__body { padding: 28px 24px; }
  .team-modal__name { font-size: 28px; }
}

/* --- Jewels · 3D display-case cards --- */
.jewels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  perspective: 1400px;
}
.jewel {
  position: relative;
  margin: 0;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 0% 0%, rgba(255,90,42,.12), transparent 45%),
    linear-gradient(180deg, rgba(28,22,36,.95), rgba(15,14,22,.95));
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  align-items: start;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2,.7,.3,1), border-color .3s, box-shadow .4s;
  overflow: hidden;
}
.jewel::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at var(--mx,50%) var(--my,30%), rgba(255,183,3,.18), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.jewel:hover {
  transform: translateY(-6px);
  border-color: rgba(255,183,3,.55);
  box-shadow: 0 30px 60px -25px rgba(255,90,42,.45);
}
.jewel:hover::before { opacity: 1; }

/* Solid light pedestal so transparent PNG icons are always readable */
.jewel .case {
  position: relative;
  width: 110px; height: 110px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 25%, #fff 0%, #f5ece0 55%, #e7d7bd 100%);
  box-shadow:
    0 14px 28px -8px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.12),
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -6px 12px rgba(255,90,42,.08);
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transform: translateZ(20px);
  transition: transform .5s ease, box-shadow .4s;
}
.jewel .case::after {
  content: '';
  position: absolute; inset: -10px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,90,42,.45), rgba(255,183,3,.45));
  filter: blur(18px);
  opacity: .3;
  z-index: -1;
  transition: opacity .4s;
}
.jewel:hover .case {
  transform: translateZ(28px) rotateY(-12deg) rotateX(6deg);
  box-shadow:
    0 24px 40px -10px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,255,255,.15),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.jewel:hover .case::after { opacity: .8; }
.jewel img {
  width: 82px; height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
  animation: jewelBob 5.5s ease-in-out infinite;
}
.jewel:nth-child(odd)  img { animation-delay: -2.5s; }
.jewel:nth-child(3n)   img { animation-delay: -3.8s; }
.jewel:hover img { transform: scale(1.08) rotate(-4deg); }
@keyframes jewelBob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}
.jewel figcaption {
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
  transform: translateZ(10px);
}
.jewel .jewel-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,90,42,.1);
  border: 1px solid rgba(255,90,42,.3);
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
}
.jewel strong {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 2px;
}
.jewel .jewel-desc {
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 4px 0 0;
}
@media (max-width: 520px) {
  .jewel {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .jewel .case { margin-bottom: 4px; }
}

/* --- Contact --- */
.section-contact { gap: 40px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.contact-col {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.contact-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: color .25s, padding-left .25s;
}
.contact-line:last-child { border-bottom: none; }
.contact-line:not(.static):hover { color: var(--accent); padding-left: 6px; }
.contact-line .flag {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  width: 28px;
  text-align: center;
}
.contact-line em {
  display: block;
  font-style: normal;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 3px;
}
.contact-line > span:last-child {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
.foot {
  margin-top: auto;
  padding-top: 60px;
  display: flex;
  justify-content: space-between;
  color: var(--ink-dim);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}

/* --- Reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav nav { display: none; }
  .section { padding: 100px 6vw 100px; }
  .jewels li { flex-direction: column; gap: 4px; align-items: flex-start; }
  .foot { flex-direction: column; gap: 10px; }
}
