@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300 500; font-style: italic; font-display: swap; src: url(/fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2"); }

:root {
  --bg: #0b0a09;
  --ink: #efe9df;
  --ink-2: #b9b1a4;
  --muted: #7f786d;
  --gold: #c9b48a;
  --gold-hi: #e9dcc0;
  --line: rgba(239, 233, 223, .1);
  --line-2: rgba(239, 233, 223, .18);
  --glass: rgba(20, 18, 16, .55);
  --danger: #e59a86;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body {
  color: var(--ink); font: 400 15px/1.6 var(--sans); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background:
    radial-gradient(900px 700px at 22% 30%, rgba(201, 180, 138, .07), transparent 65%),
    radial-gradient(700px 500px at 90% 110%, rgba(120, 90, 60, .08), transparent 70%),
    var(--bg);
}
::selection { background: rgba(201, 180, 138, .35); }
#sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
em { font-style: italic; color: var(--gold-hi); }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 400 22px/1 var(--serif); letter-spacing: .06em; }
.brand-mark { width: 34px; height: 34px; fill: none; }
.brand-mark circle { stroke: var(--gold); stroke-opacity: .4; stroke-width: 1; }
.brand-mark path { stroke: var(--gold-hi); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ GATE ============ */
.gate { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.15fr 1fr; }
.atmos { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 56px; }
.atmos-copy { margin-top: auto; margin-bottom: 40px; max-width: 460px; animation: rise 1.4s .5s var(--ease) both; }
.kicker { margin: 0 0 14px; font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.tagline { margin: 0; font: 300 clamp(30px, 3.2vw, 44px)/1.12 var(--serif); color: var(--ink); }
.atmos-foot { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #9bc59a; box-shadow: 0 0 0 4px rgba(155, 197, 154, .12); animation: pulse 2.8s ease-in-out infinite; }

.panel {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 56px clamp(28px, 6vw, 88px) 28px;
  background: linear-gradient(180deg, rgba(18, 16, 14, .72), rgba(12, 11, 10, .86));
  border-left: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.panel-inner { width: 100%; max-width: 420px; margin: auto 0; }
.panel-foot { margin: 40px 0 0; color: #5d574e; font-size: 11.5px; letter-spacing: .03em; }

.progress { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 54px; }
.progress li { flex: 1; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: #5d574e; transition: color .6s var(--ease); }
.progress li span { display: block; height: 1px; margin-bottom: 10px; background: var(--line-2); position: relative; overflow: hidden; }
.progress li span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.progress li.on { color: var(--gold); }
.progress li.on span::after { transform: scaleX(1); }
.progress li.done { color: var(--ink-2); }
.progress li.done span::after { transform: scaleX(1); background: rgba(201,180,138,.45); }

.step { animation: rise .9s var(--ease) both; }
.step > * { animation: rise .9s var(--ease) both; }
.step > :nth-child(2) { animation-delay: .06s; } .step > :nth-child(3) { animation-delay: .12s; }
.step > :nth-child(4) { animation-delay: .18s; } .step > :nth-child(5) { animation-delay: .24s; } .step > :nth-child(6) { animation-delay: .3s; }
.greet { margin: 0 0 14px; font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
h1 { margin: 0 0 18px; font: 300 clamp(40px, 4.2vw, 54px)/1.02 var(--serif); letter-spacing: -.01em; }
.lead { margin: 0 0 34px; color: var(--ink-2); font-size: 15px; max-width: 380px; }
.lead strong { color: var(--ink); font-weight: 500; word-break: break-all; }

/* floating-label field */
.field { position: relative; }
.field input {
  width: 100%; padding: 26px 0 12px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 19px/1.2 var(--sans); outline: none; transition: border-color .4s;
}
.field label { position: absolute; left: 0; top: 26px; color: var(--muted); font-size: 16px; pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease), color .45s; }
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label { transform: translateY(-22px) scale(.72); color: var(--gold); letter-spacing: .06em; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); transition: background-color 9999s; }

/* 6-box code */
.otp { display: grid; grid-template-columns: 1fr 1fr 1fr 6px 1fr 1fr 1fr; gap: 10px; }
.otp input:nth-child(4) { grid-column: 5; }
.otp input {
  width: 100%; aspect-ratio: 4 / 5; text-align: center; padding: 0;
  font: 300 32px/1 var(--serif); color: var(--ink); caret-color: var(--gold);
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line-2); border-radius: 12px; outline: none;
  transition: border-color .3s, background .3s, transform .3s var(--ease), box-shadow .3s;
}
.otp input:focus { border-color: var(--gold); background: rgba(201, 180, 138, .06); box-shadow: 0 0 0 4px rgba(201, 180, 138, .08); }
.otp input.filled { border-color: rgba(201, 180, 138, .45); }
.otp.error input { border-color: var(--danger); animation: shake .45s; }
.otp.ok input { border-color: #9bc59a; }

/* button */
.btn {
  position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%;
  margin-top: 30px; padding: 18px 22px; border: 0; border-radius: 999px; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, #e9dcc0, #c9b48a 60%, #b39b6c); color: #16130e;
  font: 600 14px/1 var(--sans); letter-spacing: .04em;
  box-shadow: 0 12px 40px -14px rgba(201, 180, 138, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .35s var(--ease), box-shadow .35s, opacity .3s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform 1s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 18px 50px -14px rgba(201, 180, 138, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn:hover::before { transform: translateX(120%); }
.btn .arrow { font-size: 18px; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { cursor: progress; opacity: .75; }
.btn[disabled] .arrow { width: 16px; height: 16px; font-size: 0; border: 1.5px solid rgba(22, 19, 14, .3); border-top-color: #16130e; border-radius: 50%; animation: spin .8s linear infinite; }

.link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: color .3s, text-decoration-color .3s; }
.link:hover:not([disabled]) { color: var(--gold-hi); text-decoration-color: var(--gold); }
.link[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
.sub-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.msg { min-height: 22px; margin: 22px 0 0; font-size: 13.5px; color: var(--ink-2); }
.msg.error { color: var(--danger); }

/* enrol */
.enroll { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin-bottom: 22px; }
.qr-tile { padding: 12px; border-radius: 18px; background: #f6f1e7; box-shadow: 0 0 0 1px rgba(201, 180, 138, .5), 0 0 0 7px rgba(201, 180, 138, .08), 0 24px 60px -20px rgba(0, 0, 0, .8); }
.qr-tile img { display: block; width: 136px; height: 136px; }
.howto { margin: 0; padding: 0; list-style: none; counter-reset: s; font-size: 13.5px; color: var(--ink-2); }
.howto li { counter-increment: s; position: relative; padding-left: 30px; margin-bottom: 12px; }
.howto li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 500 11px/1 var(--sans); color: var(--gold); }
.howto .link { font-size: 13.5px; }
.keybox { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 22px; border: 1px dashed var(--line-2); border-radius: 12px; }
.keybox code { flex: 1; font: 500 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; color: var(--ink); word-break: break-all; }
.chip { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 500 12px var(--sans); cursor: pointer; transition: all .3s; }
.chip:hover { border-color: var(--gold); color: var(--gold-hi); }

/* verified */
.verified { text-align: left; }
.tick { width: 64px; height: 64px; margin-bottom: 26px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tick circle { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw 1s var(--ease) forwards; }
.tick path { stroke: var(--gold-hi); stroke-width: 2; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .55s var(--ease) forwards; }

/* ============ STUDIO ============ */
.studio { position: relative; z-index: 2; min-height: 100vh; max-width: 1240px; margin: 0 auto; padding: 36px clamp(24px, 5vw, 64px) 40px; display: flex; flex-direction: column; animation: fade 1.2s var(--ease) both; }
.studio-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.who { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--ink-2); }
.secure { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(155, 197, 154, .3); color: #b4d5b3; font-size: 11.5px; letter-spacing: .06em; }
.secure svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.studio-hero { padding: clamp(70px, 12vh, 140px) 0 56px; max-width: 640px; }
.studio-hero > * { animation: rise 1s var(--ease) both; }
.studio-hero > :nth-child(2) { animation-delay: .08s; } .studio-hero > :nth-child(3) { animation-delay: .16s; }
.studio-hero h1 { font-size: clamp(56px, 7vw, 92px); margin-bottom: 18px; }
.studio-hero .lead { margin: 0; }

.projects { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.projects li { animation: rise .9s var(--ease) both; }
.project {
  position: relative; display: flex; flex-direction: column; min-height: 280px; padding: 30px 30px 26px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, rgba(30, 27, 23, .82), rgba(15, 14, 12, .9)); border: 1px solid var(--line);
  color: inherit; text-decoration: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .6s var(--ease), border-color .6s, box-shadow .6s;
}
.project::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 260px at var(--mx, 70%) var(--my, 0%), rgba(201, 180, 138, .14), transparent 70%); opacity: 0; transition: opacity .6s; }
.project:hover { transform: translateY(-4px); border-color: rgba(201, 180, 138, .4); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.project:hover::before { opacity: 1; }
.project > * { position: relative; }
.p-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.p-num { font: 300 15px/1 var(--serif); color: var(--gold); letter-spacing: .1em; }
.p-status { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.p-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #9bc59a; }
.project h2 { margin: 56px 0 10px; font: 300 34px/1.08 var(--serif); }
.project p { margin: 0 0 26px; color: var(--ink-2); font-size: 14px; max-width: 420px; }
.p-open { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gold-hi); letter-spacing: .04em; }
.p-open i { display: block; width: 26px; height: 1px; background: var(--gold); transition: width .5s var(--ease); }
.project:hover .p-open i { width: 48px; }
.empty { padding: 30px 0; }
.empty .tagline { margin-bottom: 14px; }
.studio-foot { margin-top: auto; padding-top: 80px; color: #5d574e; font-size: 11.5px; letter-spacing: .03em; }

/* motion */
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(155, 197, 154, 0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .tick circle, .tick path { stroke-dashoffset: 0; } }

/* responsive */
@media (max-width: 900px) {
  .gate { grid-template-columns: 1fr; }
  .atmos { min-height: 38vh; padding: 28px 26px 18px; }
  .atmos-copy, .atmos-foot { display: none; }
  .panel { border-left: 0; border-top: 1px solid var(--line); border-radius: 26px 26px 0 0; padding: 36px 26px 26px; justify-content: flex-start; }
  .progress { margin-bottom: 38px; }
  h1 { font-size: 40px; }
  .enroll { grid-template-columns: 1fr; justify-items: center; }
  .otp { gap: 7px; } .otp input { font-size: 28px; border-radius: 10px; }
  .who-email { display: none; }
  .projects { grid-template-columns: 1fr; }
  .studio-hero { padding: 64px 0 40px; }
}
