:root {
  color-scheme: dark;
  --bg: #111214;
  --surface: #191b1e;
  --line: #323438;
  --text: #f7f6f3;
  --muted: #bebfc3;
  --accent: #ff6949;
  --accent-hover: #ff856d;
  --ink: #171312;
  --width: 77.5rem;
  font-family: Inter, Arial, sans-serif;
  font-size: 100%;
  color: var(--text);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 17.5rem; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 4px; }

.shell {
  width: min(var(--width), calc(100% - 5.5rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 3;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header {
  background: #101113;
  border-bottom: 1px solid #2a2b2e;
}
.header-layout, .footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  min-height: 4.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.25rem;
  flex: 0 0 2.5rem;
  height: 2.5rem;
  padding-left: 0.65rem;
  border-radius: 0.45rem;
  background: var(--accent);
}
.brand-mark i {
  width: 1.2rem;
  height: 0.18rem;
  transform: skewX(-24deg);
  border-radius: 0.125rem;
  background: var(--ink);
}
.brand-mark i:nth-child(2) { width: 0.98rem; }
.brand-mark i:nth-child(3) { width: 0.74rem; }
.brand-text { display: grid; gap: 0.13rem; }
.brand-text strong { font-size: 1.22rem; letter-spacing: 0.08em; line-height: 1; }
.brand-text small { font-size: 0.75rem; color: var(--muted); line-height: 1.2; }

.main-nav { display: flex; gap: clamp(1.2rem, 3.2vw, 3rem); }
.main-nav a, .footer-link {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.main-nav a:hover, .footer-link:hover { color: var(--text); }

.button {
  display: inline-flex;
  min-height: 3.45rem;
  justify-content: center;
  align-items: center;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.button-primary { background: var(--accent); color: var(--ink); }
.button-primary:hover { background: var(--accent-hover); }
.button-outline {
  border-color: #67686c;
  background: #1112146e;
  color: var(--text);
}
.button-outline:hover { background: #28292b; border-color: #a4a5a9; }
.header-action { min-height: 2.7rem; font-size: 0.875rem; padding-inline: 1rem; }
.button-dark { background: var(--ink); color: var(--text); }
.button-dark:hover { background: #38302e; }
.button-dark:disabled { cursor: wait; opacity: 0.8; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(34rem, 47vw, 45rem);
  border-bottom: 1px solid #2c2d30;
  background: #0e1012;
  overflow: hidden;
}
.hero-photo, .hero-photo img, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo { z-index: -2; }
.hero-photo img {
  object-fit: cover;
  object-position: center 54%;
}
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, #0d0e10 0%, #0d0e10ef 20%, #0d0e10b0 38%, transparent 65%),
    linear-gradient(0deg, #0e1012 0%, #0e101200 32%);
}
.hero-content { padding-block: 4.25rem 5rem; }
.hero-location {
  display: block;
  width: fit-content;
  margin-bottom: 1.15rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #68605e;
  border-radius: 0.3rem;
  color: var(--text);
  background: #151519;
  font-size: 0.875rem;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(3.75rem, 7.1vw, 7.1rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.07em;
}
.hero h1 span { color: var(--accent); }
.hero p {
  max-width: 25.75rem;
  margin-top: 1.7rem;
  color: #d3d3d6;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.85rem; }

.section { padding-block: clamp(3.25rem, 6vw, 5.75rem); }
h2 {
  font-size: clamp(2.25rem, 4.2vw, 4.125rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.02;
  text-wrap: balance;
}
h3 { letter-spacing: -0.035em; line-height: 1.18; }
.services-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.motion-toggle { min-height: 2.75rem; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.9vw, 1.55rem);
  margin-top: clamp(1.65rem, 3vw, 2.65rem);
}
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}
.service-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.68;
  background: #26282b;
}
.service-scene__picture {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  transform: translateY(-50%);
  aspect-ratio: 3 / 2;
}
.service-scene__photo { width: 100%; height: 100%; object-fit: cover; }
.repair-tool {
  position: absolute;
  max-width: none;
  width: 47%;
  left: -1.6%;
  top: 45.9%;
  transform-origin: 93.2% 13.7%;
  pointer-events: none;
}
.service-light {
  position: absolute;
  inset: 0;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}
.moisture-light {
  clip-path: polygon(5% 52%, 12% 41%, 30% 31%, 55% 22%, 80% 16%, 97% 12%, 99% 21%, 91% 48%, 82% 66%, 68% 73%, 43% 79%, 11% 85%, 6% 79%);
  background:
    radial-gradient(ellipse 32% 28% at 43% 54%, #edf8ff 0%, #c1e1fac7 23%, #81b9de69 57%, transparent 100%),
    radial-gradient(ellipse 18% 24% at 90% 34%, #f5fbffcf 5%, #bfe0efad 30%, #7aafb851 64%, transparent 100%),
    radial-gradient(ellipse 51% 31% at 52% 57%, #72a8cd65, transparent 100%);
}
.lens-light {
  background:
    radial-gradient(ellipse 15% 28% at 33.5% 51%, #fff 0%, #fff 26%, #dcf4ff 49%, #a9d8ffa8 71%, transparent 100%),
    radial-gradient(ellipse 31% 44% at 33.5% 51%, #bee7ff9e 5%, #78b9ed42 43%, transparent 100%),
    radial-gradient(ellipse 32% 23% at 27% 82%, #9bcce96e, transparent 100%);
}
.motion-enabled .service-scene.is-visible .repair-tool {
  animation: tighten-screw 4.8s ease-in-out infinite;
}
.motion-enabled .service-scene.is-visible .moisture-light {
  animation: headlight-dropout 5.7s linear infinite;
}
.motion-enabled .service-scene.is-visible .lens-light {
  animation: high-beam-blink 5.2s ease-out infinite;
}

@keyframes tighten-screw {
  0%, 19%, 100% { transform: rotate(0) rotate3d(0.88, -0.47, 0, 0deg); }
  34%, 43% { transform: rotate(-6deg) rotate3d(0.88, -0.47, 0, -26deg); }
  55% { transform: rotate(1deg) rotate3d(0.88, -0.47, 0, 6deg); }
  70%, 78% { transform: rotate(-5deg) rotate3d(0.88, -0.47, 0, -22deg); }
  91% { transform: rotate(0) rotate3d(0.88, -0.47, 0, 0deg); }
}
@keyframes headlight-dropout {
  0%, 17%, 35%, 84%, 100% { opacity: 0.81; }
  21% { opacity: 0.19; }
  26% { opacity: 0.69; }
  41% { opacity: 0.08; }
  45%, 66% { opacity: 0; }
  71% { opacity: 0.41; }
  76% { opacity: 0.29; }
}
@keyframes high-beam-blink {
  0%, 30%, 57%, 100% { opacity: 0; }
  34%, 42% { opacity: 0.95; }
  47% { opacity: 0.36; }
}
.service-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem; }
.service-body h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
.service-body p, .steps p, .questions p {
  color: var(--muted);
  line-height: 1.58;
}
.service-body p { margin-block: 0.7rem 1.4rem; }
.service-link {
  display: block;
  width: fit-content;
  margin-top: auto;
  padding-block: 0.45rem 0.18rem;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.service-link:hover { color: var(--accent-hover); }

.process {
  background: #17181a;
  border-block: 1px solid #292b2e;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin: 2.15rem 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.95rem;
  border-top: 1px solid #48494c;
  padding-top: 1.35rem;
}
.step-number {
  display: grid;
  place-items: center;
  min-width: 2.15rem;
  min-height: 2.15rem;
  border: 1px solid #76513f;
  border-radius: 0.45rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.steps h3 { margin-top: 0.25rem; font-size: 1.25rem; }
.steps p { margin-top: 0.55rem; }

.faq-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.35fr);
  gap: clamp(1.75rem, 5vw, 5rem);
}
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary {
  position: relative;
  padding: 1.3rem 2.75rem 1.3rem 0;
  cursor: pointer;
  list-style: none;
  line-height: 1.35;
  font-size: 1.075rem;
  font-weight: 700;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::before, .questions summary::after {
  content: "";
  position: absolute;
  width: 0.95rem;
  height: 2px;
  top: 50%;
  right: 0.5rem;
  background: var(--accent);
}
.questions summary::after { transform: rotate(90deg); }
.questions details[open] summary::after { transform: none; }
.questions p { padding: 0 1.8rem 1.25rem 0; }

.request { padding-top: 0.6rem; }
.request-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding: clamp(1.5rem, 4.75vw, 4.4rem);
  border-radius: 0.95rem;
  background: var(--accent);
  color: var(--ink);
  color-scheme: light;
}
.request-intro h2 { text-wrap: initial; }
.request-intro p {
  max-width: 24rem;
  margin-top: 1.15rem;
  font-size: 1.1rem;
  line-height: 1.55;
}
.studio-contact {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 750;
  text-underline-offset: 4px;
}
.studio-details { margin-top: 1.65rem; }
.studio-details h3 { font-size: 1.2rem; }
.studio-details address {
  margin-top: 0.45rem;
  font-style: normal;
  line-height: 1.4;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.05rem;
}
.request-form { display: grid; gap: 0.95rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.request-form label { display: grid; gap: 0.5rem; min-width: 0; }
.request-form label > span:first-child { font-size: 0.9rem; font-weight: 750; line-height: 1.25; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.request-form input, .request-form select, .request-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.95rem;
  background: #fff5f0;
  color: var(--ink);
  border: 1px solid #8e3f2a;
  border-radius: 0.43rem;
  padding: 0.65rem 0.75rem;
  line-height: 1.35;
}
.request-form ::placeholder { color: #6a5651; opacity: 1; }
.request-form textarea { resize: vertical; }
.select-frame { position: relative; }
.select-frame::after {
  content: "";
  position: absolute;
  width: 0.48rem;
  height: 0.48rem;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  top: 44%;
  right: 0.9rem;
  transform: rotate(45deg);
  pointer-events: none;
}
.request-form select { appearance: none; padding-right: 1.75rem; }
.request-panel :focus-visible { outline-color: var(--ink); }
.form-help, .form-status { font-size: 0.875rem; line-height: 1.4; }
.form-status { font-weight: 750; }

.site-footer { border-top: 1px solid var(--line); background: #101113; }
.footer-layout { padding-block: 1.5rem; }
.footer-note { color: var(--muted); font-size: 0.875rem; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 3.5rem); }
  .hero-shade {
    background:
      linear-gradient(90deg, #0d0e10 0%, #0d0e10e8 20%, #0d0e1090 53%, transparent 78%),
      linear-gradient(0deg, #0e1012 0%, #0e101200 32%);
  }
  .service-body { padding: 1.05rem; }
  .steps { gap: 1rem; }
  .steps li { gap: 0.65rem; }
  .fields { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 2.5rem); }
  .header-layout { min-height: 4.2rem; gap: 0.6rem; }
  .main-nav { display: none; }
  .hero { display: block; min-height: 0; }
  .hero-photo, .hero-shade { height: clamp(17rem, 57vw, 24rem); }
  .hero-photo img { object-position: 50% 49%; }
  .hero-shade {
    background: linear-gradient(0deg, #0e1012, #0e101210 57%, #0e101222);
  }
  .hero-content { padding-block: clamp(13.5rem, 47vw, 20rem) 2.6rem; }
  .hero-location { margin-bottom: 0.7rem; }
  .hero h1 { font-size: clamp(2.85rem, 9.4vw, 4.4rem); letter-spacing: -0.06em; }
  .hero p { margin-top: 1.1rem; }
  .hero-actions { margin-top: 1.35rem; }
  .hero-actions .button { padding-inline: 0.9rem; }
  .service-grid, .steps, .faq-layout, .request-panel { grid-template-columns: 1fr; }
  .service-scene { aspect-ratio: 1.85; }
  .service-body { padding: 1.2rem; }
  .service-body p { margin-bottom: 0.65rem; }
  .steps { margin-top: 1.5rem; gap: 1.25rem; }
  .steps li { padding-top: 1rem; gap: 0.85rem; }
  .request-panel { gap: 1.35rem; }
  .footer-layout { flex-wrap: wrap; }
  .footer-note { order: 1; flex-basis: 100%; }
}

@media (max-width: 350px) {
  .shell { width: calc(100% - 1.5rem); }
  .header-action { font-size: 0.8125rem; padding-inline: 0.5rem; }
  .brand { gap: 0.45rem; }
  .hero h1 { font-size: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
