:root {
  --bg: #09090b;
  --bg-soft: #101013;
  --paper: #eee7da;
  --paper-2: #e1d6c4;
  --text: #f4f1e9;
  --muted: #9c9a95;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #e4c07a;
  --gold-deep: #aa8242;
  --accent: #e4c07a;
  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1440px, calc(100vw - 96px));
  --header-h: 82px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--gold);
  color: #111;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  background: var(--paper);
  color: #111;
  border-radius: 100px;
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: none;
}

.grain {
  position: fixed;
  z-index: 300;
  inset: -50%;
  pointer-events: none;
  opacity: .035;
  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='.8'/%3E%3C/svg%3E");
  animation: grain 1s steps(2) infinite;
}

@keyframes grain {
  0% { transform: translate3d(-2%, -1%, 0); }
  25% { transform: translate3d(1%, 2%, 0); }
  50% { transform: translate3d(2%, -2%, 0); }
  75% { transform: translate3d(-1%, 1%, 0); }
  100% { transform: translate3d(-2%, -1%, 0); }
}

.page-progress {
  position: fixed;
  z-index: 500;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, .04);
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #8f6731, #f6dfa7, #a77939);
  will-change: transform;
}

.cursor {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  pointer-events: none;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  transform: translate3d(-100px, -100px, 0);
  transition: width .25s ease, height .25s ease, margin .25s ease, background .25s ease;
  mix-blend-mode: difference;
}

.cursor span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: opacity .2s ease;
}

.cursor.is-view {
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  mix-blend-mode: normal;
}

.cursor.is-view span {
  opacity: 1;
}

.cursor.is-link {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
}

.site-header {
  position: fixed;
  z-index: 400;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: max(32px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid transparent;
  transition: height .35s ease, background .35s ease, border-color .35s ease, color .35s ease;
}

.site-header.is-scrolled {
  height: 68px;
  background: rgba(9, 9, 11, .82);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, #f6dda2, #b7863e);
  box-shadow: 0 8px 30px rgba(228, 192, 122, .18);
  color: #15120d;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand-name span {
  color: var(--gold);
}

.brand-role {
  color: #7e7d79;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.main-nav a {
  position: relative;
  color: #bbb9b3;
  font-size: 13px;
  font-weight: 500;
  transition: color .25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--gold);
  transition: transform .3s ease;
}

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

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  min-width: 132px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  transition: background .25s ease, border-color .25s ease;
}

.header-cta:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .34);
}

.header-cta svg {
  width: 17px;
  fill: #28a8e9;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  width: 19px;
  height: 1px;
  background: currentColor;
  transition: transform .25s ease;
}

.hero {
  --mx: 75%;
  --my: 38%;
  position: relative;
  min-height: max(760px, 100svh);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  z-index: -4;
  inset: 0;
  opacity: .15;
  background-image: linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: clamp(70px, 8vw, 120px) clamp(70px, 8vw, 120px);
  -webkit-mask-image: linear-gradient(to right, transparent 5%, #000 40%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 5%, #000 40%, #000 80%, transparent 100%);
}

.hero-glow {
  position: absolute;
  z-index: -3;
  width: 900px;
  height: 900px;
  top: -260px;
  right: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 159, 77, .16), rgba(14, 77, 78, .07) 38%, transparent 70%);
  filter: blur(12px);
}

.hero-gallery,
.hero-reveal {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
}

.hero-gallery {
  opacity: .065;
  filter: grayscale(1) contrast(1.2);
}

.hero-reveal {
  opacity: .46;
  -webkit-mask-image: radial-gradient(circle 210px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.95) 42%, transparent 100%);
  mask-image: radial-gradient(circle 210px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.95) 42%, transparent 100%);
  filter: saturate(1.15) contrast(1.08);
}

.hero-shard {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
}

.hero-shard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.72) saturate(.86) contrast(1.08);
  transition: transform .9s cubic-bezier(.2,.8,.2,1), filter .6s ease;
}

.shard-a {
  width: 35vw;
  height: 48vh;
  top: 13%;
  right: 3%;
  transform: rotate(5deg) translate3d(var(--shard-a-x, 0), var(--shard-a-y, 0), 0);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 92%);
}

.shard-a img { filter: brightness(.88) saturate(.9) contrast(1.06); }

.hero-shard:hover img {
  filter: brightness(.92) saturate(1) contrast(1.06);
  transform: scale(1.035);
}

.shard-b {
  width: 30vw;
  height: 39vh;
  top: 42%;
  right: 18%;
  transform: rotate(-7deg) translate3d(var(--shard-b-x, 0), var(--shard-b-y, 0), 0);
  clip-path: polygon(0 8%, 92% 0, 100% 92%, 8% 100%);
}

.shard-c {
  width: 25vw;
  height: 34vh;
  right: -2%;
  bottom: -2%;
  transform: rotate(9deg) translate3d(var(--shard-c-x, 0), var(--shard-c-y, 0), 0);
  clip-path: polygon(8% 0, 100% 10%, 92% 100%, 0 90%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: max(760px, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 38px);
  padding-bottom: 45px;
}

.availability {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  margin-bottom: clamp(18px, 2.5vh, 30px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 100px;
  background: rgba(255, 255, 255, .025);
  color: #aaa8a2;
  font-size: 12px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.live-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #47da83;
  box-shadow: 0 0 0 5px rgba(71, 218, 131, .09), 0 0 18px rgba(71, 218, 131, .5);
  animation: pulse 2.1s ease-in-out infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(71, 218, 131, 0), 0 0 18px rgba(71, 218, 131, .2); }
}

.hero-title {
  max-width: 1090px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(76px, 8.1vw, 132px);
  font-weight: 500;
  letter-spacing: -.052em;
  line-height: .78;
}

.mobile-break {
  display: none;
}

.hero-title em,
.hero-title span {
  display: block;
}

.hero-title em {
  width: max-content;
  margin-left: clamp(40px, 10vw, 155px);
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.035em;
  transform: translate3d(var(--kinetic-x, 0), 0, 0) skewX(var(--kinetic-skew, 0deg));
  text-shadow: 0 0 60px rgba(228, 192, 122, .12);
  transition: transform .18s ease-out;
}

.hero-title span {
  margin-top: .15em;
  margin-left: clamp(0px, 3vw, 42px);
  font-size: .79em;
  letter-spacing: -.045em;
}

.hero-bottom {
  width: min(940px, 78%);
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: end;
  gap: 56px;
  margin-top: clamp(35px, 5vh, 62px);
}

.hero-copy {
  max-width: 650px;
  margin: 0;
  color: #aaa8a2;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 10px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: color .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(115deg, #f3dda5, #c6974d);
  color: #16130e;
  box-shadow: 0 14px 38px rgba(199, 151, 77, .18);
}

.button-primary:hover {
  box-shadow: 0 18px 50px rgba(228, 192, 122, .3);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .05);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(820px, 76%);
  gap: 25px;
  margin-top: clamp(36px, 5.2vh, 65px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-proof > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.hero-proof strong {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.hero-proof strong span {
  color: var(--gold);
}

.hero-proof > div > span {
  color: #74736f;
  font-size: 10px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #65645f;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: rotate(90deg) translateX(100%);
  transform-origin: right bottom;
}

.scroll-cue i {
  position: relative;
  width: 60px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 15% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

.marquee,
.principles {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0c0c0f;
}

.marquee-track,
.principles-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 34px;
  padding-block: 22px;
  animation: marquee 34s linear infinite;
}

.marquee-track span {
  color: #b8b4ab;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.marquee-track i,
.principles-track i {
  color: var(--gold);
  font-style: normal;
  font-size: 10px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.works {
  position: relative;
  padding: 150px 0 180px;
  background: #09090b;
}

.works::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -20%;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent), transparent 66%);
  pointer-events: none;
  transition: background .7s ease;
}

.section-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, .42fr) 1.58fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 90px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 17px;
  color: #888680;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.eyebrow span {
  color: var(--gold);
}

.section-intro h2,
.services-heading h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 6.2vw, 98px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .94;
}

.section-intro h2 em,
.services-heading h2 em,
.contact h2 em {
  color: var(--gold);
  font-weight: 400;
}

.section-intro > div:last-child > p,
.services-heading > p {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.featured-stack {
  position: relative;
  padding-bottom: 110px;
}

.featured-card {
  position: sticky;
  top: 88px;
  height: calc(100svh - 112px);
  min-height: 620px;
  overflow: hidden;
  margin-bottom: 14vh;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 32px;
  background: #101013;
  box-shadow: 0 50px 120px rgba(0, 0, 0, .55);
}

.featured-card:last-child {
  margin-bottom: 0;
}

.featured-card > a {
  position: absolute;
  inset: 0;
}

.featured-media,
.project-tint {
  position: absolute;
  inset: 0;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.025) translate3d(0, var(--media-shift, 0), 0);
  transition: transform .8s cubic-bezier(.2,.75,.2,1), filter .7s ease;
  will-change: transform;
}

.featured-aurora .featured-media img {
  filter: brightness(1.7) saturate(.8) contrast(1.14);
}

.featured-smile .featured-media img {
  filter: saturate(.9) brightness(.8);
}

.project-tint {
  background: linear-gradient(90deg, rgba(5, 7, 7, .93) 0%, rgba(5, 7, 7, .68) 36%, rgba(5, 7, 7, .16) 70%, rgba(5, 7, 7, .38) 100%), linear-gradient(0deg, rgba(5, 7, 7, .74), transparent 60%);
}

.featured-smile .project-tint {
  background: linear-gradient(90deg, rgba(3, 24, 30, .9) 0%, rgba(4, 29, 34, .72) 36%, rgba(3, 18, 24, .12) 74%), linear-gradient(0deg, rgba(3, 22, 26, .66), transparent 60%);
}

.featured-card:hover .featured-media img {
  transform: scale(1.055) translate3d(0, var(--media-shift, 0), 0);
}

.featured-index {
  position: absolute;
  top: 28px;
  right: 32px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 100px;
  background: rgba(0, 0, 0, .28);
  color: rgba(255, 255, 255, .74);
  font-size: 10px;
  letter-spacing: .15em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.featured-copy {
  position: absolute;
  z-index: 2;
  left: clamp(32px, 6vw, 90px);
  bottom: clamp(36px, 7vh, 90px);
  max-width: 720px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-meta span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 100px;
  color: rgba(255, 255, 255, .75);
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.featured-copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(66px, 7.5vw, 118px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .82;
}

.featured-copy h3 em {
  color: var(--gold);
  font-weight: 400;
}

.featured-smile .featured-copy h3 em {
  display: block;
  color: #8debf1;
  font-size: .54em;
  line-height: 1.2;
}

.featured-copy p {
  max-width: 570px;
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, .68);
  font-size: 15px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-link b {
  color: var(--gold);
  font-size: 17px;
  transition: transform .25s ease;
}

.featured-card:hover .project-link b {
  transform: translate(4px, -4px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 90px 30px;
}

.project-card a {
  display: block;
}

.project-card:nth-child(even) {
  padding-top: 105px;
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: #111;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .75s cubic-bezier(.2,.75,.2,1), filter .5s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.045);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  color: #73716c;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.project-card-top span:first-child {
  color: var(--gold);
}

.project-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 3.6vw, 55px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
}

.project-card p {
  margin: 12px 0 0;
  color: #888680;
  font-size: 13px;
}

/* Calm, predictable portfolio grid. Every project has the same visual weight. */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 30px;
}

.portfolio-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: rgba(16, 16, 19, .92);
  transition: transform .35s cubic-bezier(.2,.75,.2,1), border-color .35s ease, box-shadow .35s ease;
}

.portfolio-card.reveal {
  opacity: 1;
  transform: none;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(228, 192, 122, .42);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .3);
}

.portfolio-card > a {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background:
    linear-gradient(135deg, rgba(228,192,122,.08), transparent 45%),
    #111216;
}

.portfolio-media::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(228, 192, 122, .72);
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -.04em;
  text-align: center;
}

.portfolio-preview {
  position: absolute;
  z-index: 1;
  inset: 0 auto auto 0;
  width: 200%;
  height: 200%;
  border: 0;
  background: #111216;
  pointer-events: none;
  transform: scale(.5);
  transform-origin: 0 0;
  transition: transform .65s cubic-bezier(.2,.75,.2,1), filter .45s ease;
}

.portfolio-live {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(8, 8, 10, .72);
  color: #f4f0e7;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.portfolio-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #65dc9a;
  box-shadow: 0 0 12px #65dc9a;
  animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {
  50% { opacity: .4; transform: scale(.72); }
}

.portfolio-card:hover .portfolio-preview {
  transform: scale(.512);
}

.portfolio-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px 28px 28px;
}

.portfolio-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  color: #77756f;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portfolio-meta span:first-child {
  color: var(--gold);
}

.portfolio-meta span:last-child {
  text-align: right;
}

.portfolio-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(43px, 4vw, 62px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .92;
}

.portfolio-card h3 em {
  color: var(--gold);
  font-weight: 400;
}

.portfolio-card p {
  max-width: 540px;
  margin: 16px 0 25px;
  color: #96938c;
  font-size: 13px;
  line-height: 1.6;
}

.portfolio-action {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.28);
  color: #d2cec5;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.portfolio-action b {
  color: var(--gold);
  font-size: 15px;
  transition: transform .25s ease;
}

.portfolio-card:hover .portfolio-action b {
  transform: translate(3px, -3px);
}

.balanse-art {
  overflow: hidden;
  padding: 45px;
  background: linear-gradient(135deg, #ff725e 0 48%, #164d51 48% 100%);
  color: #fff8ea;
}

.balanse-art::before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 14px;
}

.balanse-art strong {
  position: relative;
  z-index: 2;
  display: block;
  font-size: clamp(32px, 4vw, 66px);
  letter-spacing: -.08em;
  line-height: .76;
}

.balanse-art strong em {
  color: #ffe45c;
  font-style: normal;
}

.balanse-art small {
  position: absolute;
  z-index: 2;
  left: 48px;
  bottom: 38px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
}

.balanse-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
}

.orbit-one {
  width: 56%;
  aspect-ratio: 1;
  right: -10%;
  top: -23%;
}

.orbit-two {
  width: 38%;
  aspect-ratio: 1;
  right: 11%;
  bottom: -24%;
}

.exam-art {
  overflow: hidden;
  padding: 38px;
  background: radial-gradient(circle at 78% 80%, rgba(24, 200, 219, .17), transparent 30%), linear-gradient(145deg, #0b1427, #070b14);
  color: #f5f7fb;
}

.exam-art::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(rgba(58, 224, 238, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(58, 224, 238, .16) 1px, transparent 1px);
  background-size: 54px 54px;
}

.exam-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
}

.exam-nav b { margin-right: auto; }
.exam-nav b span { color: #ff8d18; }
.exam-nav i { width: 38px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.16); }

.exam-art > strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 11%;
  font-size: clamp(28px, 4vw, 62px);
  line-height: .9;
  letter-spacing: -.055em;
}

.exam-art > strong span { color: #33d7e5; }

.exam-art > small {
  position: absolute;
  z-index: 2;
  left: 38px;
  bottom: 30px;
  color: #7f91ad;
  font-size: 9px;
  letter-spacing: .08em;
}

.exam-chart {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: 12%;
  width: 34%;
  height: 34%;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(61, 218, 232, .25);
  border-radius: 14px;
  background: rgba(7, 14, 27, .74);
}

.exam-chart i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#39d6e3, #176678);
}

.exam-chart i:nth-child(1) { height: 28%; }
.exam-chart i:nth-child(2) { height: 45%; }
.exam-chart i:nth-child(3) { height: 38%; }
.exam-chart i:nth-child(4) { height: 68%; }
.exam-chart i:nth-child(5) { height: 88%; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.2,1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* The hero is the first meaningful paint: it must never wait for JavaScript. */
.hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.services {
  position: relative;
  padding: 155px 0 170px;
  overflow: hidden;
  background: var(--paper);
  color: #151515;
  color-scheme: light;
}

.services::before {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  left: -270px;
  bottom: -330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 133, 60, .15), transparent 70%);
}

.services-heading {
  display: grid;
  grid-template-columns: .42fr 1.12fr .55fr;
  gap: 45px;
  align-items: start;
  margin-bottom: 95px;
}

.eyebrow.dark {
  color: #716c63;
}

.eyebrow.dark::before {
  background: #7f5c2e;
}

.services-heading h2 {
  font-size: clamp(56px, 5.6vw, 89px);
}

.services-heading h2 em {
  color: #9b6d30;
}

.services-heading > p {
  margin-top: 15px;
  color: #716c63;
  font-size: 14px;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, .78fr);
  gap: clamp(60px, 7vw, 120px);
  align-items: center;
}

.service-list {
  border-top: 1px solid rgba(22, 22, 22, .18);
}

.service-row {
  position: relative;
  width: 100%;
  min-height: 112px;
  display: grid;
  grid-template-columns: 50px minmax(190px, .7fr) 1fr 32px;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(22, 22, 22, .18);
  background: transparent;
  color: #161616;
  text-align: left;
  cursor: pointer;
}

.service-row::before {
  content: "";
  position: absolute;
  inset: 0 -20px;
  z-index: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  background: rgba(255, 255, 255, .46);
  transition: transform .35s cubic-bezier(.2,.75,.2,1);
}

.service-row.is-active::before,
.service-row:hover::before {
  transform: scaleY(1);
}

.service-row > * {
  position: relative;
  z-index: 1;
}

.service-row > span {
  color: #9b6d30;
  font-family: var(--serif);
  font-size: 18px;
}

.service-row strong {
  font-family: var(--serif);
  font-size: clamp(25px, 2.15vw, 34px);
  font-weight: 600;
  line-height: 1;
}

.service-row small {
  color: #777169;
  font-size: 11px;
  line-height: 1.5;
}

.service-row > i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22, 22, 22, .2);
  border-radius: 50%;
  font-style: normal;
  font-size: 13px;
  transform: rotate(45deg);
  transition: transform .35s ease, background .35s ease, color .35s ease;
}

.service-row.is-active > i,
.service-row:hover > i {
  transform: rotate(0);
  background: #171717;
  color: var(--paper);
}

.service-stage {
  position: sticky;
  top: 110px;
  overflow: hidden;
  aspect-ratio: 1 / .78;
  border: 1px solid rgba(22, 22, 22, .28);
  border-radius: 24px;
  background: #191919;
  color: #f5f0e6;
  box-shadow: 0 35px 80px rgba(56, 42, 23, .22);
}

.stage-top,
.browser-bar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
}

.stage-top > span,
.browser-bar > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6a6864;
}

.stage-top > span:first-child,
.browser-bar > span:first-child { background: var(--gold); }

.stage-top small,
.browser-bar small {
  margin-left: auto;
  color: #74716b;
  font-size: 8px;
  letter-spacing: .05em;
}

.stage-top small b,
.browser-bar small b {
  color: #b5afa4;
  font-weight: 500;
}

.stage-canvas {
  --stage-accent: #e4c07a;
  position: relative;
  height: calc(100% - 46px);
  overflow: hidden;
  padding: clamp(30px, 4.2vw, 64px);
  background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--stage-accent) 22%, transparent), transparent 42%), #121214;
  transition: background .45s ease;
}

.stage-canvas::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  top: -150px;
  right: -70px;
  border: 1px solid color-mix(in srgb, var(--stage-accent) 42%, transparent);
  border-radius: 50%;
  transition: border-radius .5s ease, transform .5s ease;
}

.stage-canvas[data-stage-canvas="corporate"] { --stage-accent: #83a8db; }
.stage-canvas[data-stage-canvas="bitrix"] { --stage-accent: #6bd3b1; }
.stage-canvas[data-stage-canvas="design"] { --stage-accent: #f27b60; }

.stage-canvas[data-stage-canvas="corporate"]::before {
  border-radius: 0;
  transform: rotate(23deg);
}

.stage-canvas[data-stage-canvas="bitrix"]::before {
  border-radius: 30% 70% 65% 35%;
  transform: rotate(-24deg);
}

.stage-canvas[data-stage-canvas="design"]::before {
  border-radius: 18px;
  transform: rotate(45deg);
}

.stage-label {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 15%;
  color: var(--stage-accent);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .18em;
  transition: color .35s ease;
}

.stage-canvas > strong {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 480px;
  font-family: var(--serif);
  font-size: clamp(37px, 4.1vw, 62px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .94;
}

.stage-canvas > strong em {
  color: var(--stage-accent);
  font-weight: 400;
  transition: color .35s ease;
}

.stage-canvas > p {
  position: relative;
  z-index: 2;
  max-width: 390px;
  margin: 20px 0 0;
  color: #8e8b84;
  font-size: 11px;
}

.stage-ui {
  position: absolute;
  right: 6%;
  bottom: 7%;
  width: 42%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  transform: rotate(-3deg);
}

.stage-ui span {
  display: block;
  aspect-ratio: 1.65;
  border: 1px solid color-mix(in srgb, var(--stage-accent) 35%, rgba(255,255,255,.08));
  border-radius: 9px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--stage-accent) 11%, transparent), rgba(255,255,255,.02));
  transition: border-radius .4s ease, transform .4s ease;
}

.stage-canvas[data-stage-canvas="corporate"] .stage-ui span { border-radius: 2px; }
.stage-canvas[data-stage-canvas="bitrix"] .stage-ui span:nth-child(2),
.stage-canvas[data-stage-canvas="bitrix"] .stage-ui span:nth-child(3) { transform: translateX(18px); }
.stage-canvas[data-stage-canvas="design"] .stage-ui span { border-radius: 50%; }

.process {
  position: relative;
  padding: 160px 0 190px;
  overflow: clip;
  background: #09090b;
}

.process::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  left: -420px;
  top: 33%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 112, 113, .12), transparent 68%);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(430px, .9fr) minmax(0, .75fr);
  gap: clamp(70px, 9vw, 150px);
  align-items: start;
}

.process-visual-wrap {
  position: sticky;
  top: 105px;
  height: calc(100svh - 145px);
  display: grid;
  place-items: center;
}

.process-visual {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: #111114;
  box-shadow: 0 45px 100px rgba(0, 0, 0, .45);
}

.artifact {
  --process-accent: #e4c07a;
  min-height: 480px;
  display: grid;
  grid-template-columns: 64px 1fr;
  background: radial-gradient(circle at 85% 22%, color-mix(in srgb, var(--process-accent) 13%, transparent), transparent 38%), #0f0f12;
  transition: background .45s ease;
}

.process-visual[data-process-visual="design"] .artifact { --process-accent: #ef846d; }
.process-visual[data-process-visual="develop"] .artifact { --process-accent: #63cfb1; }
.process-visual[data-process-visual="launch"] .artifact { --process-accent: #75b6ed; }

.artifact-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding-top: 28px;
  border-right: 1px solid rgba(255,255,255,.08);
}

.artifact-sidebar span {
  width: 24px;
  height: 24px;
  display: block;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 7px;
}

.artifact-sidebar span.active {
  border-color: var(--process-accent);
  background: color-mix(in srgb, var(--process-accent) 22%, transparent);
  box-shadow: 0 0 25px color-mix(in srgb, var(--process-accent) 25%, transparent);
}

.artifact-main {
  position: relative;
  overflow: hidden;
  padding: clamp(35px, 5vw, 72px);
}

.artifact-main::after {
  content: "";
  position: absolute;
  right: -75px;
  bottom: -90px;
  width: 270px;
  height: 270px;
  border: 1px solid color-mix(in srgb, var(--process-accent) 42%, transparent);
  border-radius: 50%;
  transition: border-radius .5s ease, transform .5s ease;
}

.process-visual[data-process-visual="design"] .artifact-main::after {
  border-radius: 25%;
  transform: rotate(30deg);
}

.process-visual[data-process-visual="develop"] .artifact-main::after {
  border-radius: 12px;
  transform: rotate(-20deg);
}

.process-visual[data-process-visual="launch"] .artifact-main::after {
  border-radius: 50% 10% 50% 10%;
  transform: rotate(40deg);
}

.artifact-kicker {
  color: var(--process-accent);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .18em;
}

.artifact h3 {
  position: relative;
  z-index: 2;
  margin: 45px 0 28px;
  font-family: var(--serif);
  font-size: clamp(52px, 5.2vw, 82px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .78;
}

.artifact h3 em {
  color: var(--process-accent);
  font-weight: 400;
}

.artifact-lines {
  width: 55%;
  display: grid;
  gap: 8px;
}

.artifact-lines i {
  height: 5px;
  border-radius: 4px;
  background: rgba(255,255,255,.1);
}

.artifact-lines i:nth-child(2) { width: 80%; }
.artifact-lines i:nth-child(3) { width: 55%; }

.artifact-cards {
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: 11%;
  width: 43%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.artifact-cards span {
  aspect-ratio: .8;
  border: 1px solid color-mix(in srgb, var(--process-accent) 34%, rgba(255,255,255,.06));
  border-radius: 7px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--process-accent) 10%, transparent), rgba(255,255,255,.015));
  transition: transform .45s ease, border-radius .45s ease;
}

.process-visual[data-process-visual="design"] .artifact-cards span:nth-child(2) { transform: translateY(-24px); }
.process-visual[data-process-visual="develop"] .artifact-cards span { border-radius: 50%; }
.process-visual[data-process-visual="launch"] .artifact-cards span:nth-child(1) { transform: rotate(-10deg); }
.process-visual[data-process-visual="launch"] .artifact-cards span:nth-child(3) { transform: rotate(10deg); }

.process-status {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 0 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #77746e;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.process-status > i {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

.process-status > i b {
  position: absolute;
  inset: 0;
  width: var(--process-width, 25%);
  background: var(--gold);
  transition: width .5s ease, background .4s ease;
}

.process-status strong {
  color: #d1cdc4;
  font-size: 10px;
}

.process-steps {
  padding-top: 5vh;
}

.process-step {
  min-height: 65vh;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-content: center;
  opacity: .32;
  transition: opacity .45s ease;
}

.process-step.is-active {
  opacity: 1;
}

.process-step > span {
  padding-top: 7px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 20px;
}

.process-step h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(43px, 4vw, 63px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .95;
}

.process-step p {
  max-width: 520px;
  margin: 0 0 20px;
  color: #94918b;
  font-size: 14px;
  line-height: 1.75;
}

.process-step small {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: #716f6a;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.principles {
  background: var(--gold);
  color: #18140f;
  border: 0;
}

.principles-track {
  gap: 40px;
  padding-block: 26px;
  animation-duration: 42s;
}

.principles-track span {
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 45px);
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
}

.principles-track i {
  color: #4a3520;
}

.contact {
  position: relative;
  min-height: 94svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 110px;
  background: #0c0c0f;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.contact::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 90px 90px;
  -webkit-mask-image: radial-gradient(circle at 60% 50%, #000, transparent 68%);
  mask-image: radial-gradient(circle at 60% 50%, #000, transparent 68%);
}

.contact-glow {
  position: absolute;
  z-index: -2;
  width: 800px;
  height: 800px;
  right: -150px;
  top: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228,192,122,.18), rgba(22,92,91,.08) 38%, transparent 70%);
}

.contact-inner {
  position: relative;
  z-index: 2;
}

.contact h2 {
  max-width: 1110px;
  margin-top: 35px;
  font-size: clamp(72px, 8.4vw, 134px);
  line-height: .8;
}

.contact h2 em {
  display: inline-block;
  margin-left: clamp(30px, 7vw, 120px);
}

.contact-inner > p {
  max-width: 610px;
  margin: 48px 0 0;
  color: #96938c;
  font-size: 16px;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: clamp(40px, 7vw, 105px);
  margin-top: 55px;
}

.contact-orb {
  position: relative;
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3dca4, #b9853d);
  box-shadow: 0 22px 80px rgba(207, 159, 83, .22);
  color: #18130d;
  transition: box-shadow .35s ease;
}

.contact-orb::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(54, 39, 21, .24);
  border-radius: 50%;
}

.contact-orb:hover {
  box-shadow: 0 30px 100px rgba(228, 192, 122, .36);
}

.contact-orb span {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: .88;
}

.contact-orb i {
  position: absolute;
  top: 39px;
  right: 41px;
  font-style: normal;
  font-size: 17px;
}

.contact-details {
  display: grid;
  align-items: start;
  gap: 6px;
}

.contact-details span {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  color: #85827c;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-details a {
  width: max-content;
  color: #cfcbc2;
  font-family: var(--serif);
  font-size: 25px;
  transition: color .25s ease;
}

.contact-details a:hover { color: var(--gold); }

.contact-word {
  position: absolute;
  z-index: -1;
  right: -1vw;
  bottom: -7vw;
  color: rgba(255,255,255,.018);
  font-family: var(--serif);
  font-size: 22vw;
  font-weight: 600;
  letter-spacing: -.08em;
  line-height: .7;
  white-space: nowrap;
}

.site-footer {
  min-height: 145px;
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  align-items: center;
  gap: 50px;
  padding: 35px max(32px, calc((100vw - 1440px) / 2));
  color: #6e6c67;
  background: #09090b;
  font-size: 10px;
}

.site-footer .brand { color: var(--text); }
.site-footer .brand-mark { width: 36px; height: 36px; font-size: 21px; border-radius: 10px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a:hover { color: var(--text); }

body.case-dialog-open {
  overflow: hidden;
}

.case-dialog {
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  max-height: min(860px, calc(100svh - 48px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 28px;
  background: #0c0c0f;
  color: var(--text);
  box-shadow: 0 45px 140px rgba(0, 0, 0, .68);
}

.case-dialog::backdrop {
  background: rgba(3, 3, 5, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.case-dialog[open] {
  animation: caseDialogIn .42s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes caseDialogIn {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.case-dialog-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  min-height: min(720px, calc(100svh - 48px));
}

.case-dialog-close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(9,9,11,.68);
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background .25s ease, transform .25s ease;
}

.case-dialog-close:hover {
  background: rgba(255,255,255,.12);
  transform: rotate(4deg);
}

.case-dialog-close span {
  position: absolute;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.case-dialog-close span:first-child { transform: rotate(45deg); }
.case-dialog-close span:last-child { transform: rotate(-45deg); }

.case-dialog-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #121216;
}

.case-dialog-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,5,7,.5));
  pointer-events: none;
}

.case-dialog-media iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  background: #121216;
}

.case-portal-status {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(7,7,9,.7);
  color: #e7e1d7;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.case-portal-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65dc9a;
  box-shadow: 0 0 13px rgba(101,220,154,.8);
  animation: livePulse 1.8s ease-in-out infinite;
}

.case-dialog-media > span {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 22px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(7,7,9,.58);
  font-size: 10px;
  letter-spacing: .12em;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.case-dialog-content {
  padding: 70px 52px 46px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0, rgba(228,192,122,.12), transparent 34%),
    #0c0c0f;
}

.case-dialog-kicker {
  color: var(--gold);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.case-dialog-content h2 {
  margin: 22px 0 20px;
  font-family: var(--serif);
  font-size: clamp(54px, 5vw, 78px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .84;
}

.case-dialog-lead {
  margin: 0;
  color: #b3b0a9;
  font-size: 14px;
  line-height: 1.65;
}

.case-dialog-facts {
  display: grid;
  gap: 22px;
  margin: 36px 0 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.case-dialog-facts > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
}

.case-dialog-facts span {
  color: #716f6a;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.case-dialog-facts p,
.case-dialog-facts ul {
  margin: 0;
  color: #d2cfc7;
  font-size: 12px;
  line-height: 1.6;
}

.case-dialog-facts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  list-style: none;
}

.case-dialog-facts li {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #bbb8b1;
  font-size: 9px;
  letter-spacing: .04em;
}

.case-dialog-cta {
  width: max-content;
}

.case-dialog-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 2px;
}

.case-dialog-secondary {
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  color: #d2cfc7;
  font-size: 11px;
  transition: color .25s ease, border-color .25s ease;
}

.case-dialog-secondary:hover {
  color: var(--cream);
  border-color: var(--gold);
}

@media (max-width: 1180px) {
  :root {
    --shell: min(100% - 56px, 1120px);
  }

  .hero-title { font-size: clamp(72px, 9vw, 104px); }
  .hero-title span { font-size: .75em; }
  .hero-bottom { width: 82%; }
  .hero-proof { width: 78%; }
  .shard-a { width: 43vw; right: -7%; }
  .shard-b { width: 38vw; right: 9%; }

  .services-heading {
    grid-template-columns: .4fr 1.4fr;
  }

  .services-heading > p {
    grid-column: 2;
    margin-top: -18px;
  }

  .services-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr);
    gap: 45px;
  }

  .service-row {
    grid-template-columns: 42px 1fr 32px;
  }

  .service-row small { display: none; }

  .process-layout {
    grid-template-columns: minmax(390px, .9fr) minmax(0, .7fr);
    gap: 60px;
  }
}

@media (max-width: 900px) {
  :root {
    --shell: calc(100% - 38px);
    --header-h: 72px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 19px;
  }

  .site-header.is-scrolled { height: 64px; }
  .brand-role { display: none; }
  .brand-mark { width: 38px; height: 38px; border-radius: 10px; font-size: 22px; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; justify-self: end; }

  .main-nav {
    position: fixed;
    z-index: -1;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 90px 28px 40px;
    visibility: hidden;
    opacity: 0;
    background: rgba(9,9,11,.98);
    transition: opacity .3s ease, visibility .3s ease;
  }

  .main-nav a {
    font-family: var(--serif);
    font-size: clamp(42px, 13vw, 64px);
    line-height: 1.05;
  }

  .menu-open .main-nav { visibility: visible; opacity: 1; }
  .menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  .hero { min-height: 950px; }
  .hero-inner { min-height: 950px; padding-top: 108px; justify-content: flex-start; }
  .hero-title { font-size: clamp(60px, 10.4vw, 84px); line-height: .85; }
  .hero-title em { margin-left: 7vw; }
  .hero-title span { margin-top: .18em; font-size: .72em; }
  .hero-bottom { width: 76%; grid-template-columns: 1fr; gap: 25px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-proof { width: 82%; grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .shard-a { width: 58vw; height: 42vh; top: 20%; right: -24%; }
  .shard-b { width: 50vw; height: 34vh; top: 48%; right: -3%; }
  .shard-c { width: 42vw; right: -20%; }
  .scroll-cue { display: none; }

  .works,
  .services,
  .process { padding: 110px 0 125px; }

  .section-intro,
  .services-heading {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 65px;
  }

  .services-heading > p { grid-column: auto; margin-top: 0; }
  .eyebrow { padding-top: 0; }

  .featured-stack { padding-bottom: 85px; }
  .featured-card {
    top: 76px;
    height: 76svh;
    min-height: 600px;
    margin-bottom: 12vh;
    border-radius: 24px;
  }

  .featured-copy { left: 35px; right: 35px; bottom: 38px; }
  .featured-copy h3 { font-size: clamp(55px, 10vw, 84px); }
  .featured-copy p { max-width: 520px; }
  .featured-media img { object-position: 62% top; }
  .featured-smile .featured-media img { object-position: 45% top; }
  .project-tint { background: linear-gradient(0deg, rgba(5,7,7,.96) 0%, rgba(5,7,7,.72) 43%, rgba(5,7,7,.12) 80%); }
  .featured-smile .project-tint { background: linear-gradient(0deg, rgba(3,22,26,.95) 0%, rgba(3,22,26,.68) 43%, rgba(3,22,26,.1) 80%); }

  .project-grid { gap: 70px 20px; }
  .project-card:nth-child(even) { padding-top: 70px; }

  .services-layout { grid-template-columns: 1fr; }
  .service-stage { position: relative; top: auto; width: min(620px, 100%); margin-inline: auto; }

  .process-layout { grid-template-columns: 1fr; gap: 40px; }
  .process-visual-wrap { position: sticky; z-index: 2; top: 76px; height: auto; }
  .process-visual { width: min(690px, 100%); margin-inline: auto; }
  .artifact { min-height: 390px; }
  .process-steps { padding-top: 0; }
  .process-step { min-height: 52vh; padding-top: 18vh; }

  .contact h2 { font-size: clamp(66px, 11vw, 100px); }
  .contact-actions { gap: 50px; }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p,
  .site-footer nav { display: none; }

  .portfolio-grid { gap: 24px 18px; }
  .portfolio-card { border-radius: 20px; }
  .portfolio-card-body { padding: 21px 22px 24px; }
  .portfolio-card h3 { font-size: clamp(38px, 6vw, 52px); }

  .case-dialog-shell {
    grid-template-columns: 1fr;
    overflow-y: auto;
    max-height: calc(100svh - 38px);
  }

  .case-dialog-media { min-height: 42svh; }
  .case-dialog-content { padding: 48px 38px 44px; overflow: visible; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 38px); }

  .grain { opacity: .025; }
  .cursor { display: none; }
  .brand-name { font-size: 16px; }
  .menu-toggle { width: 40px; height: 40px; }

  .hero {
    min-height: 100svh;
  }

  .hero-inner {
    min-height: 100svh;
    padding-top: 94px;
    padding-bottom: 58px;
  }

  .availability { margin-bottom: 26px; font-size: 10px; }
  .hero-title { font-size: clamp(48px, 14.7vw, 66px); line-height: .82; }
  .hero-title { max-width: 100%; }
  .mobile-break { display: block; }
  .hero-title em { margin-left: 0; margin-top: .08em; }
  .hero-title span { margin-left: 0; margin-top: .24em; font-size: .72em; line-height: .9; }
  .hero-bottom { width: 100%; margin-top: 33px; gap: 24px; }
  .hero-copy { max-width: 94%; font-size: 13px; line-height: 1.6; }
  .hero-actions { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
  .button { width: 100%; max-width: 100%; min-width: 0; min-height: 54px; }
  .hero-proof { width: 100%; margin-top: 34px; padding-top: 22px; gap: 20px 12px; }
  .hero-proof strong { font-size: 30px; }
  .hero-proof > div > span { font-size: 8px; }

  .hero-gallery { opacity: .035; }
  .hero-reveal { opacity: .22; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent 90%); mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent 90%); }
  .shard-a { width: 90vw; height: 36vh; top: 30%; right: -55%; }
  .shard-b { width: 74vw; height: 31vh; top: 57%; right: -39%; }
  .shard-c { display: none; }

  .marquee-track { padding-block: 16px; gap: 24px; }
  .marquee-track span { font-size: 20px; }

  .works,
  .services,
  .process { padding: 90px 0 105px; }

  .section-intro,
  .services-heading { margin-bottom: 50px; }
  .section-intro h2,
  .services-heading h2,
  .contact h2 { font-size: clamp(49px, 14vw, 70px); }
  .section-intro > div:last-child > p,
  .services-heading > p { margin-top: 22px; font-size: 13px; }

  .featured-stack { width: 100%; padding-bottom: 70px; }
  .featured-card {
    top: 69px;
    height: 74svh;
    min-height: 570px;
    margin: 0 12px 10vh;
    border-radius: 20px;
  }
  .featured-index { top: 16px; right: 16px; }
  .featured-copy { left: 20px; right: 20px; bottom: 24px; }
  .project-meta { gap: 5px; margin-bottom: 13px; }
  .project-meta span { padding: 5px 7px; font-size: 7px; }
  .featured-copy h3 { font-size: clamp(48px, 15vw, 68px); }
  .featured-copy p { margin: 18px 0 20px; font-size: 11px; line-height: 1.55; }
  .project-link { font-size: 9px; }

  .project-grid { grid-template-columns: 1fr; gap: 62px; }
  .project-card:nth-child(even) { padding-top: 0; }
  .project-thumb { border-radius: 17px; }
  .project-card h3 { font-size: 42px; }
  .project-card p { font-size: 12px; }

  .portfolio-grid { grid-template-columns: 1fr; gap: 28px; }
  .portfolio-card { border-radius: 18px; }
  .portfolio-card:hover { transform: none; }
  .portfolio-card-body { padding: 20px 19px 23px; }
  .portfolio-meta { margin-bottom: 14px; font-size: 8px; }
  .portfolio-card h3 { font-size: 43px; }
  .portfolio-card p { margin: 13px 0 21px; font-size: 12px; }
  .balanse-art,
  .exam-art { padding: 28px; }
  .balanse-art small { left: 29px; bottom: 24px; }
  .exam-art > small { left: 28px; bottom: 22px; }

  .services-layout { gap: 55px; }
  .service-row { min-height: 90px; grid-template-columns: 34px 1fr 30px; gap: 10px; }
  .service-row > span { font-size: 15px; }
  .service-row strong { font-size: 25px; }
  .service-stage { aspect-ratio: .88; border-radius: 18px; }
  .stage-canvas { padding: 28px; }
  .stage-label { margin-bottom: 18%; }
  .stage-canvas > strong { font-size: 41px; }
  .stage-canvas > p { font-size: 10px; }
  .stage-ui { width: 50%; }

  .process .section-intro { margin-bottom: 25px; }
  .process-visual-wrap { top: 68px; width: calc(100% + 20px); margin-left: -10px; }
  .process-visual { border-radius: 17px; }
  .artifact { min-height: 335px; grid-template-columns: 44px 1fr; }
  .artifact-main { padding: 30px 23px; }
  .artifact h3 { margin-top: 32px; font-size: 51px; }
  .artifact-sidebar span { width: 20px; height: 20px; }
  .artifact-cards { width: 47%; right: 6%; }
  .process-status { gap: 10px; padding-inline: 13px; }
  .process-step { min-height: 55vh; padding-top: 19vh; grid-template-columns: 42px 1fr; }
  .process-step h3 { font-size: 42px; }
  .process-step p { font-size: 12px; }

  .principles-track { padding-block: 20px; gap: 27px; }
  .principles-track span { font-size: 29px; }

  .contact { min-height: auto; padding: 105px 0 90px; }
  .contact h2 { margin-top: 28px; line-height: .85; }
  .contact h2 em { margin-left: 0; }
  .contact-inner > p { margin-top: 32px; font-size: 13px; }
  .contact-actions { flex-direction: column; align-items: flex-start; gap: 38px; margin-top: 43px; }
  .contact-orb { width: 158px; height: 158px; }
  .contact-orb span { font-size: 23px; }
  .contact-orb i { top: 31px; right: 33px; }
  .contact-details a { font-size: 22px; }

  .site-footer { min-height: 120px; padding-inline: 19px; gap: 18px; }
  .site-footer > span { font-size: 8px; }

  .case-dialog {
    width: 100vw;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .case-dialog-shell { max-height: 100svh; min-height: 100svh; }
  .case-dialog-media { min-height: 36svh; }
  .case-dialog-content { padding: 38px 20px 44px; }
  .case-dialog-content h2 { font-size: clamp(46px, 15vw, 64px); }
  .case-dialog-facts > div { grid-template-columns: 74px 1fr; gap: 12px; }
  .case-dialog-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .case-dialog-cta { width: 100%; }
  .case-dialog-secondary { width: max-content; align-self: center; }
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
  .hero-reveal { -webkit-mask-image: linear-gradient(110deg, transparent 5%, #000 42%, rgba(0,0,0,.75) 65%, transparent 96%); mask-image: linear-gradient(110deg, transparent 5%, #000 42%, rgba(0,0,0,.75) 65%, transparent 96%); }
  .hero-shard.shard-a { animation: driftA 9s ease-in-out infinite alternate; }
  .hero-shard.shard-b { animation: driftB 11s ease-in-out infinite alternate; }

  @keyframes driftA {
    from { transform: rotate(5deg) translate3d(-8px, -6px, 0); }
    to { transform: rotate(7deg) translate3d(10px, 8px, 0); }
  }

  @keyframes driftB {
    from { transform: rotate(-7deg) translate3d(7px, 7px, 0); }
    to { transform: rotate(-4deg) translate3d(-9px, -7px, 0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cursor { display: none; }
}
