@font-face {
  font-family: 'Studio Sans';
  src: url('/studio-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #181224;
  --night: #171126;
  --night-deep: #110c1c;
  --violet: #bca0ff;
  --accent: #ffb58d;
  --paper: #f7f4fa;
  --white: #fffdfd;
  --muted: #61576d;
  --border: #ddd4e7;
  font: 16px/1.55 'Studio Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-underline-offset: .2em; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #9160e7; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 720; letter-spacing: -.065em; }
h1 { font-size: clamp(3.15rem, 6.9vw, 7rem); line-height: .98; }
h2 { font-size: clamp(2.55rem, 5vw, 5rem); line-height: 1.02; }
h3 { letter-spacing: -.035em; }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(100% - 3.5rem, 74rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 4; top: .65rem; left: .65rem; padding: .6rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.header, .footer { color: var(--white); background: var(--night-deep); }
.header { border-bottom: 1px solid #fff2; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 5.25rem; }
.brand { display: inline-block; font-weight: 780; font-size: 1.35rem; line-height: 1.08; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.header .brand { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.brand-accent { color: var(--violet); }
.header nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.4rem); }
.header nav a { font-weight: 650; text-decoration: none; }
.header nav a:not(.button):hover { color: var(--violet); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; width: fit-content; min-height: 2.85rem; padding: .64rem 1.05rem; border: 1px solid transparent; border-radius: .52rem; font-weight: 760; text-align: center; text-decoration: none; }
.button span { font-size: 1.08em; }
.button-line { color: var(--white); border-color: #bca0ff5a; background: transparent; }
.button-line:hover { background: #ffffff13; }
.button-primary { color: #221637; background: #c8afff; }
.button-primary:hover { background: #d8c6ff; }
.button-ink { color: var(--white); background: var(--ink); }
.button-ink:hover { background: #392852; }

.hero {
  position: relative;
  color: var(--white);
  min-height: clamp(34rem, 75vh, 52rem);
  display: grid;
  align-items: center;
  background: var(--night) url('/studio-circuit.jpg') center right / cover no-repeat;
  isolation: isolate;
}
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(92deg, #160f25 3%, #160f25f2 32%, #160f2580 61%, #160f2508 100%); }
.hero-inner { padding-block: 4.7rem; }
.eyebrow { display: flex; gap: .65rem; align-items: center; margin-bottom: 1rem; font-size: .74rem; line-height: 1.4; font-weight: 800; letter-spacing: .15em; color: #685293; }
.eyebrow span { width: .48rem; height: .48rem; border-radius: 100%; background: currentColor; }
.hero .eyebrow, .pricing .eyebrow { color: var(--accent); }
.hero h1 em { color: var(--violet); font-style: normal; }
.hero-inner > p:not(.eyebrow) { max-width: 34rem; margin-top: 1.45rem; color: #e1dbea; font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.55rem; margin-top: 2rem; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link span { color: var(--accent); margin-left: .3rem; }

.section-light, .pricing { padding-block: clamp(3.6rem, 7.7vw, 6.9rem); }
.section-intro, .pricing-grid, .inquiry-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 1.25rem clamp(2rem, 5vw, 5.25rem); }
.section-intro > p { max-width: 25rem; justify-self: end; color: var(--muted); }
.portfolio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.project { overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: .9rem; }
.project-cover { display: block; position: relative; width: 100%; padding: 0; border: 0; aspect-ratio: 1875 / 851; background: var(--night); overflow: hidden; cursor: pointer; }
.project-cover img { height: 100%; object-fit: cover; object-position: top; transition: transform .25s ease-out; }
.project-cover:focus-visible { outline-offset: -4px; }
.project-cover:focus-visible img { transform: scale(1.055); }
@media (hover: hover) { .project-cover:hover img { transform: scale(1.055); } }
.preview-link-label { position: absolute; bottom: .6rem; right: .6rem; padding: .28rem .55rem; border-radius: .38rem; color: var(--white); background: #171126e8; font-size: .74rem; font-weight: 710; }
.preview-link-label span { margin-left: .12rem; }
.project-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .45rem 1rem; padding: 1.12rem 1.25rem; }
.project-meta h3 { font-size: 1.25rem; }
.project-meta a { color: #573488; font-size: .93rem; font-weight: 650; overflow-wrap: anywhere; }
.project-meta > span { font-size: .83rem; color: var(--muted); }

.pricing { color: var(--white); background: var(--night); }
.pricing-grid, .inquiry-grid { align-items: start; }
.pricing h2 + p { max-width: 33rem; margin-top: 1.2rem; color: #dfd5ec; font-size: 1.08rem; }
.price-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; padding: clamp(1.25rem, 3vw, 2.1rem); border-radius: .9rem; background: #261a3b; border: 1px solid #bca0ff42; }
.price-card > div + div { padding-left: 1.35rem; border-left: 1px solid #ffffff24; }
.price-card h3 { font-size: 1rem; }
.price-card .price { margin-block: .35rem .55rem; color: var(--violet); font-size: clamp(2rem, 3.6vw, 3.55rem); font-weight: 780; letter-spacing: -.06em; line-height: 1.02; }
.price span { display: block; margin-top: .35rem; color: var(--white); font-size: .84rem; letter-spacing: 0; }
.price-card p:not(.price) { color: #ddd1eb; font-size: .92rem; }
.plan-details { margin-top: clamp(2.35rem, 5vw, 4.5rem); }
.plan-details h3 { margin: 0 0 1.1rem; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.15; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.plan-grid article { padding: clamp(1rem, 2.6vw, 1.55rem); border: 1px solid #bca0ff42; border-radius: .75rem; background: #211633; }
.plan-grid h4 { margin: 0; color: var(--violet); font-size: 1.15rem; letter-spacing: -.015em; }
.plan-grid ul { margin: .8rem 0 0; padding-left: 1.15rem; color: #e4dbee; font-size: .95rem; }
.plan-grid li + li { margin-top: .6rem; }
.plan-grid li::marker { color: var(--accent); }
.custom-build { background: #eee8f6; }
.custom-build .plan-grid { margin-top: 2rem; }
.custom-build .plan-grid article { background: var(--white); border-color: var(--border); }
.custom-build .plan-grid h3 { font-size: 1.15rem; line-height: 1.25; }
.custom-build .plan-grid p { margin-top: .65rem; color: var(--muted); }
.plan-action { margin-top: 1.3rem; }

.inquiry-grid { grid-template-columns: .82fr 1.18fr; }
.inquiry h2 + p { max-width: 29rem; color: var(--muted); margin-block: 1rem 1.35rem; font-size: 1.08rem; }
.email-address { margin-top: .7rem; color: #573488; font-weight: 650; overflow-wrap: anywhere; }
.inquiry-form, .admin-card { display: grid; gap: .9rem; padding: clamp(1rem, 3.2vw, 1.9rem); background: var(--white); border: 1px solid var(--border); border-radius: .9rem; box-shadow: 0 12px 38px #28174409; }
.fields { display: grid; gap: .9rem; }
.two-up { grid-template-columns: repeat(2,minmax(0,1fr)); }
label { display: grid; gap: .3rem; min-width: 0; font-weight: 690; font-size: .93rem; }
label span { display: inline; color: var(--muted); font-size: .81rem; font-weight: 540; }
input:not([type="checkbox"]), textarea, select { width: 100%; min-height: 2.7rem; border: 1px solid #c8bbd4; border-radius: .45rem; padding: .53rem .65rem; background: #fffeff; color: var(--ink); font-weight: 480; }
textarea { min-height: 7rem; resize: vertical; }
::placeholder { color: #6b6176; opacity: 1; }
.inquiry-verification:not([hidden]) { display: flex; align-items: center; gap: .75rem; justify-self: start; min-width: min(100%, 16.5rem); padding: .65rem .8rem; background: #f8f5fc; border: 1px solid #d8cbe7; border-radius: .55rem; }
.inquiry-verification strong { display: block; font-size: .88rem; line-height: 1.25; }
.inquiry-verification p { margin: .15rem 0 0; font-size: .8rem; }
.verification-icon { display: grid; place-items: center; flex: 0 0 1.5rem; width: 1.5rem; height: 1.5rem; border: 2px solid #a48cbd; border-radius: 50%; }
.inquiry-verification[data-state="checking"] .verification-icon { border-color: #dfd1ed; border-top-color: #6c4591; animation: verification-spin .8s linear infinite; }
.inquiry-verification[data-state="passed"] .verification-icon { color: #1b6a43; border-color: currentColor; }
.inquiry-verification[data-state="passed"] .verification-icon::after { content: ""; width: .58rem; height: .34rem; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.inquiry-verification[data-state="retry"] .verification-icon { color: #963d42; border-color: currentColor; }
.inquiry-verification[data-state="retry"] .verification-icon::after { content: "!"; font-weight: 750; line-height: 1; }
@keyframes verification-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .inquiry-verification[data-state="checking"] .verification-icon { animation: none; } }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
[role="status"] { color: #503768; font-size: .9rem; }
.footer-inner { min-height: 5.5rem; flex-wrap: wrap; padding-block: 1rem; }
.footer-brand p { margin-top: .35rem; color: #e2d8ed; font-size: .92rem; }
.footer-inner > a[href^="mailto:"] { color: #e2d8ed; font-size: .92rem; overflow-wrap: anywhere; }

.admin-main { padding-block: 2.25rem 4rem; }
.admin-main h1 { font-size: clamp(2.9rem, 6vw, 4.75rem); margin-bottom: 1.3rem; }
.admin-main h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.admin-login { max-width: 29rem; }
.admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 1rem; }
.admin-grid + .admin-card { margin-top: 1rem; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.25rem; align-items: center; }
.admin-toolbar a { color: #573488; font-weight: 670; }
.admin-list { display: grid; gap: .65rem; padding: 0; list-style: none; margin: 0; }
.admin-list > li, .inquiry-entry { padding: .65rem .8rem; border: 1px solid var(--border); border-radius: .45rem; overflow-wrap: anywhere; }
.admin-list p, .inquiry-entry p { white-space: pre-wrap; }
.inquiry-entry summary { font-weight: 720; cursor: pointer; }
.inquiry-entry dl { display: grid; grid-template-columns: minmax(6rem,.3fr) minmax(0,1fr); gap: .4rem .85rem; margin-bottom: .3rem; }
.inquiry-entry dt { font-weight: 700; }
.inquiry-entry dd { margin: 0; white-space: pre-wrap; }

@media (min-width: 72rem) { .portfolio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 53rem) {
  .section-intro, .pricing-grid, .inquiry-grid { grid-template-columns: 1fr; }
  .section-intro > p { justify-self: start; }
  .price-card { max-width: 42rem; }
  .hero { background-position: 65% 50%; }
  .hero::before { background: linear-gradient(90deg,#160f25fa 8%,#160f25d9 42%,#160f254a 100%); }
}
@media (max-width: 37rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; padding-block: .85rem; }
  .header nav { justify-content: space-between; flex-wrap: wrap; }
  .hero { background-position: 70% 50%; min-height: 35rem; }
  .hero::before { background: linear-gradient(90deg,#160f25fa,#160f25b8); }
  .hero-inner { padding-block: 3.4rem; }
  .portfolio, .admin-grid, .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 31rem) {
  .two-up { grid-template-columns: 1fr; }
  .price-card { gap: .9rem; }
  .price-card > div + div { padding-left: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-cover img { transition: none; }
}

.brand-chip { display: inline-block; vertical-align: -3px; margin-right: .34em; width: .84em; height: .84em; object-fit: contain; }
.header nav [aria-current="page"] { color: var(--violet); text-decoration: underline; }
.about-main { padding-block: clamp(3.1rem, 8vw, 7rem); background: radial-gradient(ellipse at 80% 20%, #e7dbf8 0%, #f7f4fa 58%); }
.about-layout { display: grid; grid-template-columns: minmax(0,.93fr) minmax(0,1.07fr); align-items: center; gap: clamp(1.5rem, 5.7vw, 5.4rem); }
.about-copy h1 { font-size: clamp(3.65rem, 6.4vw, 6.25rem); }
.about-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 1.05rem; }
.about-copy > .about-lead { font-size: clamp(1.12rem, 2vw, 1.32rem); }
.about-lead strong { color: var(--ink); }
.about-copy .button { margin-top: 1.65rem; }
.about-team-photo { width: 100%; border-radius: .95rem; box-shadow: 0 1.25rem 2.8rem #27163b2b; }
@media (max-width: 57rem) { .about-layout { grid-template-columns: 1fr; max-width: 43rem; } }
@media (max-width: 50rem) { .header-inner { flex-wrap: wrap; } .header nav { flex-wrap: wrap; } }

.about-gallery { min-width: 0; }
.about-gallery-frame { position: relative; display: grid; aspect-ratio: 3 / 2; overflow: hidden; border-radius: .95rem; background: #ebe3f4; box-shadow: 0 1.25rem 2.8rem #27163b2b; }
.about-gallery-frame .about-team-photo { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; background: #ebe3f4; border-radius: 0; box-shadow: none; }
.about-slide-incoming { z-index: 1; }
.about-gallery-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; color: var(--muted); }
.about-gallery-controls button { padding: .33rem .7rem; min-height: 2.5rem; border: 1px solid #cbbed8; border-radius: .45rem; color: var(--ink); background: var(--white); font-size: .87rem; font-weight: 700; }
.about-gallery-controls button:hover { background: #ece1fa; }
.about-gallery-controls span { margin-inline: .2rem; font-size: .87rem; font-variant-numeric: tabular-nums; }
