:root {
  --paper: #f3f0e9;
  --paper-bright: #fbfaf6;
  --ink: #061a31;
  --ink-soft: #516276;
  --steel: #7793ad;
  --line: rgba(6, 26, 49, 0.14);
  --acid: #b8d9a7;
  --sigapro: #0169bf;
  --sigapro-dark: #022a5b;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.ambient,
.ambient__grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  overflow: hidden;
}

.ambient::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(6, 26, 49, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 26, 49, 0.035) 1px, transparent 1px);
  background-size: clamp(48px, 5vw, 82px) clamp(48px, 5vw, 82px);
  content: "";
  mask-image: linear-gradient(to right, black, transparent 54%);
}

.ambient__grain {
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.ambient__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
}

.ambient__orb--one {
  top: -18vw;
  left: -14vw;
  width: 42vw;
  height: 42vw;
  border: 1px solid rgba(119, 147, 173, 0.22);
  animation: orbit 18s ease-in-out infinite alternate;
}

.ambient__orb--two {
  right: 20vw;
  bottom: -24vw;
  width: 38vw;
  height: 38vw;
  background: rgba(119, 147, 173, 0.08);
  filter: blur(70px);
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100svh;
  min-height: 568px;
  padding: clamp(20px, 3.2vw, 50px) clamp(22px, 3.8vw, 72px) clamp(18px, 2.5vw, 38px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.topbar {
  display: grid;
  align-items: center;
  padding-bottom: clamp(16px, 2.2vh, 26px);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  position: relative;
  display: block;
  width: 37px;
  height: 37px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--paper-bright);
}

.brand__mark img {
  position: absolute;
  top: -24px;
  left: -36px;
  width: 109px;
  max-width: none;
}

.brand__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand__name small {
  display: block;
  margin-top: 4px;
  color: var(--steel);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.38em;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.topbar__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--steel);
}

.hero {
  display: grid;
  min-height: 0;
  align-items: center;
  gap: clamp(34px, 4.4vw, 78px);
  grid-template-columns: minmax(390px, 0.82fr) minmax(610px, 1.18fr);
}

.hero__copy {
  padding-bottom: 1vh;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(50px, 5.55vw, 96px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

h1 em {
  color: var(--steel);
  font-weight: 400;
}

.hero__intro {
  max-width: 540px;
  margin: clamp(22px, 3.7vh, 40px) 0 0;
  color: var(--ink-soft);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(17px, 1.36vw, 23px);
  line-height: 1.42;
}

.hero__visual {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  perspective: 1300px;
}

.visual-deck {
  display: grid;
  width: 100%;
  max-width: 850px;
  height: min(64vh, 610px);
  min-height: 440px;
  align-items: center;
  gap: clamp(12px, 1.2vw, 20px);
  grid-template-columns: minmax(315px, 1.12fr) minmax(245px, 0.88fr);
}

.deck-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: clamp(22px, 1.8vw, 30px);
  isolation: isolate;
  transform: rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg));
  transition: transform 180ms ease-out, box-shadow 260ms ease, border-color 260ms ease;
  will-change: transform;
}

.studio-card {
  display: grid;
  width: 100%;
  height: 100%;
  padding: clamp(24px, 2vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at var(--spot-x, 72%) var(--spot-y, 18%), rgba(119, 147, 173, 0.32), transparent 31%),
    var(--ink);
  box-shadow: 0 28px 70px rgba(6, 26, 49, 0.2);
  color: white;
  grid-template-rows: auto auto minmax(94px, 1fr);
}

.studio-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  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);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.studio-card__glow,
.sigapro-card__glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(42px);
}

.studio-card__glow {
  top: -12%;
  right: -20%;
  width: 64%;
  aspect-ratio: 1;
  background: rgba(184, 217, 167, 0.1);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.card-topline--dark {
  color: rgba(2, 42, 91, 0.55);
}

.card-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.card-status--creating {
  color: rgba(255, 255, 255, 0.74);
}

.card-status--creating i {
  background: var(--acid);
  box-shadow: 0 0 0 5px rgba(184, 217, 167, 0.08);
  animation: pulse 2.8s ease-in-out infinite;
}

.card-status--available {
  color: var(--sigapro-dark);
}

.card-status--available i {
  background: var(--sigapro);
  box-shadow: 0 0 0 5px rgba(1, 105, 191, 0.1);
}

.studio-card__body {
  margin-top: clamp(30px, 4.6vh, 50px);
}

.card-kicker {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.studio-card h2 {
  margin: 0;
  font-size: clamp(42px, 3.45vw, 64px);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.studio-card h2 span {
  color: var(--steel);
}

.studio-system {
  align-self: end;
  width: 100%;
  height: clamp(94px, 16vh, 144px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(244, 246, 246, 0.065);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.studio-system__bar {
  display: flex;
  height: 28px;
  align-items: center;
  padding: 0 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 5px;
}

.studio-system__bar span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.studio-system__bar i {
  width: 29%;
  height: 3px;
  margin-left: auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.studio-system__flow {
  display: grid;
  height: calc(100% - 28px);
  align-items: center;
  padding: clamp(12px, 1.5vw, 20px);
  grid-template-columns: 1fr auto 1fr auto 1fr;
}

.studio-system__flow div {
  display: grid;
  gap: 5px;
}

.studio-system__flow div span {
  color: rgba(255, 255, 255, 0.34);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.studio-system__flow div b {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(9px, 0.75vw, 12px);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-system__flow > i {
  width: clamp(12px, 1.4vw, 23px);
  height: 1px;
  margin-inline: 6px;
  background: linear-gradient(to right, rgba(119, 147, 173, 0.2), var(--steel));
}

.sigapro-card {
  display: grid;
  width: 100%;
  height: 86%;
  padding: clamp(20px, 1.6vw, 27px);
  border: 1px solid rgba(1, 105, 191, 0.12);
  background:
    radial-gradient(circle at var(--spot-x, 22%) var(--spot-y, 14%), rgba(255, 255, 255, 0.88), transparent 29%),
    linear-gradient(155deg, #f9fcff 0%, #e8f2fb 54%, #c9e0f3 100%);
  box-shadow: 0 24px 60px rgba(2, 42, 91, 0.16);
  color: var(--sigapro-dark);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.sigapro-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(1, 105, 191, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 105, 191, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.sigapro-card__glow {
  right: -30%;
  bottom: -12%;
  width: 80%;
  aspect-ratio: 1;
  background: rgba(1, 105, 191, 0.14);
}

.sigapro-card__identity {
  align-self: center;
  margin: 0;
}

.sigapro-card__identity img {
  display: block;
  width: clamp(86px, 7.7vw, 125px);
  height: clamp(72px, 6.8vw, 106px);
  object-fit: contain;
  object-position: left center;
}

.sigapro-card__identity p {
  max-width: 210px;
  margin: 8px 0 0;
  color: rgba(2, 42, 91, 0.7);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.3;
}

.sigapro-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(2, 42, 91, 0.14);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sigapro-card__action i {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sigapro-dark);
  color: white;
  font-size: 13px;
  font-style: normal;
  place-items: center;
  transition: background 220ms ease, transform 220ms ease;
}

.sigapro-card:hover {
  border-color: rgba(1, 105, 191, 0.28);
  box-shadow: 0 30px 70px rgba(2, 42, 91, 0.2);
}

.sigapro-card:hover .sigapro-card__action i {
  background: var(--sigapro);
  transform: rotate(45deg);
}

.sigapro-card:focus-visible {
  outline: 3px solid rgba(1, 105, 191, 0.48);
  outline-offset: 5px;
}

.carousel-pagination {
  display: none;
}

.footer {
  padding-top: clamp(12px, 2vh, 22px);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 850ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.reveal--two { animation-delay: 160ms; }
.reveal--three { animation-delay: 300ms; }
.reveal--visual { animation-delay: 340ms; transform: translateY(20px) scale(0.985); }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes orbit {
  to { transform: translate(4vw, 3vw) scale(1.06); }
}

@media (max-width: 1200px) {
  .page {
    padding-inline: clamp(26px, 3.3vw, 42px);
  }

  .hero {
    gap: 34px;
    grid-template-columns: minmax(350px, 0.84fr) minmax(520px, 1.16fr);
  }

  h1 {
    font-size: clamp(50px, 5.7vw, 72px);
  }

  .visual-deck {
    grid-template-columns: minmax(275px, 1.12fr) minmax(220px, 0.88fr);
  }

  .studio-card h2 {
    font-size: clamp(40px, 4.1vw, 54px);
  }
}

@media (max-width: 920px) {
  .page {
    min-height: 568px;
    padding: 18px 18px 16px;
  }

  .topbar__meta {
    display: none;
  }

  .hero {
    display: grid;
    min-height: 0;
    align-items: stretch;
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .hero__copy {
    padding: clamp(26px, 6vh, 54px) 0 0;
  }

  h1 {
    max-width: 620px;
    font-size: clamp(43px, 11.9vw, 67px);
  }

  .hero__intro {
    max-width: 560px;
    margin-top: clamp(16px, 2.7vh, 24px);
    font-size: clamp(16px, 4.35vw, 20px);
    line-height: 1.38;
  }

  .hero__visual {
    width: calc(100% + 18px);
    max-height: clamp(226px, 38vh, 314px);
    align-self: end;
    margin-top: clamp(16px, 2.8vh, 24px);
    margin-right: -18px;
    grid-template-rows: minmax(0, 1fr) 8px;
    gap: 10px;
    place-items: stretch;
  }

  .visual-deck {
    display: flex;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 38px;
    gap: 12px;
    grid-template-columns: none;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
  }

  .visual-deck::-webkit-scrollbar {
    display: none;
  }

  .deck-card {
    height: 100%;
    min-height: 0;
    border-radius: 21px;
    flex: 0 0 min(82vw, 620px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transform: none;
  }

  .studio-card {
    padding: clamp(16px, 4.3vw, 22px);
    grid-template-rows: auto auto minmax(58px, 1fr);
  }

  .card-topline {
    font-size: 8px;
  }

  .studio-card__body {
    margin-top: clamp(14px, 2.7vh, 22px);
  }

  .card-kicker {
    margin-bottom: 7px;
    font-size: 8px;
  }

  .studio-card h2 {
    font-size: clamp(30px, 8.2vw, 42px);
    line-height: 0.92;
  }

  .studio-system {
    height: clamp(58px, 13vh, 104px);
    border-radius: 10px;
  }

  .studio-system__bar {
    height: 22px;
  }

  .studio-system__flow {
    height: calc(100% - 22px);
    padding: clamp(8px, 2.7vw, 14px);
  }

  .studio-system__flow div {
    gap: 2px;
  }

  .studio-system__flow div span {
    font-size: 7px;
  }

  .studio-system__flow div b {
    font-size: clamp(8px, 2.4vw, 11px);
  }

  .studio-system__flow > i {
    width: clamp(7px, 3vw, 20px);
    margin-inline: 3px;
  }

  .sigapro-card {
    height: 100%;
    padding: clamp(15px, 4.1vw, 21px);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .sigapro-card__identity {
    display: grid;
    align-items: center;
    align-self: center;
    margin: 0;
    gap: 6px 14px;
    grid-template-columns: auto 1fr;
  }

  .sigapro-card__identity img {
    width: clamp(58px, 16vw, 88px);
    height: clamp(54px, 13vh, 78px);
  }

  .sigapro-card__identity p {
    max-width: 180px;
    margin: 0;
    font-size: clamp(13px, 3.8vw, 17px);
  }

  .sigapro-card__action {
    margin-top: 9px;
    padding-top: 8px;
    font-size: 8px;
  }

  .sigapro-card__action i {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }

  .carousel-pagination {
    display: flex;
    width: calc(100% - 18px);
    align-items: center;
    justify-content: center;
    gap: 7px;
  }

  .carousel-pagination button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(6, 26, 49, 0.2);
    cursor: pointer;
    transition: width 220ms ease, background 220ms ease;
  }

  .carousel-pagination button.is-active {
    width: 20px;
    background: var(--ink);
  }

  .carousel-pagination button:focus-visible {
    outline: 2px solid var(--sigapro);
    outline-offset: 3px;
  }
}

@media (max-height: 720px) and (min-width: 921px) {
  .page {
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .hero {
    gap: 32px;
  }

  h1 {
    font-size: clamp(46px, 5.2vw, 68px);
  }

  .hero__intro {
    margin-top: 18px;
    font-size: 17px;
  }

  .visual-deck {
    height: 64vh;
    min-height: 390px;
  }

  .studio-card__body {
    margin-top: 26px;
  }

  .studio-card h2 {
    font-size: clamp(38px, 3.8vw, 50px);
  }

  .studio-system {
    height: 96px;
  }

  .sigapro-card__identity {
    margin: 0;
  }

  .sigapro-card__identity img {
    height: 68px;
  }

  .footer {
    padding-top: 12px;
  }
}

@media (max-width: 920px) and (max-height: 650px) {
  .hero__copy {
    padding-top: 20px;
  }

  h1 {
    font-size: clamp(38px, 10.8vw, 49px);
  }

  .hero__intro {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.32;
  }

  .hero__visual {
    max-height: clamp(196px, 35.5vh, 226px);
    margin-top: 12px;
  }

  .studio-card,
  .sigapro-card {
    padding: 14px;
  }

  .studio-card__body {
    margin-top: 10px;
  }

  .studio-card h2 {
    font-size: clamp(27px, 7.7vw, 34px);
  }

  .studio-system {
    height: clamp(50px, 11vh, 66px);
  }

  .sigapro-card__identity img {
    width: 54px;
    height: 48px;
  }

  .sigapro-card__identity p {
    font-size: 13px;
  }

  .sigapro-card__action {
    margin-top: 6px;
    padding-top: 6px;
  }
}

@media (max-width: 340px) and (max-height: 600px) {
  .studio-card,
  .sigapro-card {
    padding: 12px;
  }

  .studio-card__body {
    margin-top: 6px;
  }

  .card-kicker {
    margin-bottom: 4px;
  }

  .studio-card h2 {
    font-size: 25px;
  }

  .studio-system {
    height: 46px;
  }

  .studio-system__flow {
    padding: 6px;
  }
}

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