/* Base */
:root {
  --bg: #F6F4FA;
  --surface: #FFFFFF;
  --text: #211B2E;
  --muted: #5B536B;
  --accent: #6234B5;
  --accent-text: #FFFFFF;
  --plate-bg: #211B2E;
  --plate-text: #F6F4FA;
  --line: #DCD6E9;
  --radius-card: 18px;
  --radius-btn: 10px;
  --shadow-soft: 0 1px 2px rgb(33 27 46 / 0.06), 0 12px 32px rgb(33 27 46 / 0.08);
  --shadow-lift: 0 2px 4px rgb(98 52 181 / 0.10), 0 18px 44px rgb(98 52 181 / 0.16);
  --font-heading: 'Gill Sans', 'Gill Sans MT', Calibri, 'Segoe UI', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --pad-x: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    128deg,
    #F6F4FA 0px,
    #F6F4FA 220px,
    #EFEBF6 220px,
    #EFEBF6 440px
  );
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); }
h3 { font-size: clamp(1.2rem, 1vw + 0.8rem, 1.5rem); }

p { margin: 0 0 1em; max-width: 62ch; line-height: 1.6; color: var(--muted); }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

ul, ol { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.shell--narrow { max-width: 760px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-btn);
  z-index: 100;
}

.skip:focus { left: 16px; top: 16px; }

/* Header */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.topbar__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: flex-end;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.topbar__line { color: var(--accent); text-decoration: none; }
.topbar__line:hover { text-decoration-thickness: 2px; }

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand-mark {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark:hover { color: var(--text); text-decoration: none; }

/* Menu */
.menu { margin-right: auto; }

.menu__switch {
  display: none;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--surface);
  font: inherit;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.menu__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.menu__link {
  display: inline-block;
  padding: 8px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.menu__link:hover { border-color: var(--accent); text-decoration: none; }

.menu__link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.menu__link[aria-current="page"],
.menu__link.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: var(--radius-btn);
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: linear-gradient(120deg, #6234B5 0%, #7A4BD1 50%, #6234B5 100%);
  background-size: 220% 100%;
  background-position: 50% 50%;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(33 27 46 / 0.08);
  transition: background-position 0.45s ease, box-shadow 0.3s ease, transform 0.15s ease;
}

.btn:hover {
  background-position: 100% 50%;
  box-shadow: 0 2px 4px rgb(33 27 46 / 0.10), 0 10px 26px rgb(98 52 181 / 0.28);
  text-decoration: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px #C99B3F;
}

.btn:active { box-shadow: none; transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--accent);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 6px 20px rgb(98 52 181 / 0.18);
}

.btn--call {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  border-radius: 999px;
  padding: 0 26px;
  box-shadow: 0 8px 24px rgb(33 27 46 / 0.30);
}

/* Sections */
.band {
  padding: clamp(64px, 9vw, 128px) 0;
  scroll-margin-top: 96px;
}

.band:nth-of-type(even) { background: rgb(255 255 255 / 0.55); }

.band__title { margin-bottom: 8px; }

.band__intro { color: var(--muted); margin-bottom: 32px; }

.band__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 48px;
  align-items: start;
}

.band__sticky { position: static; }

.accent {
  display: inline-block;
  font-size: clamp(1.05em, 1vw + 0.7em, 1.6em);
  color: var(--accent);
  font-weight: 700;
}

/* Hero */
.hero { padding-top: clamp(56px, 7vw, 104px); }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero__figure { margin: 0; position: relative; }

.hero__figure::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  z-index: -1;
}

.hero__figure {
  max-width: 100%;
  align-self: stretch;
  display: flex;
}

.hero__figure img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 8px solid var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero__title {
  margin-bottom: 20px;
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: 1.05;
}

.hero__lead { font-size: 1.1em; color: var(--muted); margin-bottom: 32px; }

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tabs__tab {
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.tabs__tab:hover { border-color: var(--accent); color: var(--text); }

.tabs__tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.tabs__tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.tabs__panel { animation: tab-in 0.4s ease; }

@keyframes tab-in {
  from { transform: translateY(10px); }
  to { transform: translateY(0); }
}

/* Services */
.service-list__item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.service-list__item:first-child { border-top: 1px solid var(--line); }

.service-list__name { margin-bottom: 6px; }

.service-list__desc { color: var(--muted); margin: 0; }

/* Plate */
.plate {
  background: var(--plate-bg);
  color: var(--plate-text);
  background-image: repeating-linear-gradient(
    128deg,
    #211B2E 0px,
    #211B2E 220px,
    #2B2340 220px,
    #2B2340 440px
  );
}

.plate__title { color: var(--plate-text); }

.plate__intro { color: #CFC8DF; max-width: 62ch; margin-bottom: 36px; }

.plate a { color: #D8CBFF; }

/* Form */
.inquiry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 28px;
  max-width: 820px;
}

.inquiry__field { display: flex; flex-direction: column; gap: 6px; }

.inquiry__label { font-weight: 600; color: var(--plate-text); }

.inquiry__control {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1.5px solid #4A4160;
  border-radius: var(--radius-btn);
  background: #2B2440;
  color: var(--plate-text);
  padding: 14px 16px;
  border-radius: 10px;
  font: inherit;
}

.inquiry__control::placeholder { color: rgb(246 244 250 / 0.55); opacity: 1; }

.inquiry__control:focus-visible {
  outline: 3px solid #C99B3F;
  outline-offset: 1px;
}

.inquiry__area { resize: vertical; min-height: 120px; }

.inquiry__check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
  font-size: 0.9375rem;
  color: #CFC8DF;
  max-width: 68ch;
}

.inquiry__check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #C99B3F; }
.inquiry__check input:focus-visible { outline: 3px solid #C99B3F; outline-offset: 2px; }

.inquiry__note { color: #CFC8DF; font-size: 0.9375rem; margin: 12px 0 0; }

.inquiry__submit { justify-self: start; }

.inquiry__field.has-error .inquiry__control,
.inquiry__check.has-error input { border-color: #E58C7A; outline-color: #E58C7A; }

.inquiry__error {
  margin: 2px 0 0;
  font-size: 0.875rem;
  color: #F3B7A8;
  min-height: 1em;
}

.inquiry--sending .inquiry__submit { opacity: 0.6; pointer-events: none; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; }

.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  align-items: start;
  margin-top: 16px;
  padding: 28px 32px;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.steps__item:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }

.steps__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.steps__name { margin-bottom: 4px; }

.steps__desc { margin: 0; color: var(--muted); }

/* Gallery */
.frame-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.tile {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.tile:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }

.tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius-card) - 6px);
}

.frame-grid__item--wide img { aspect-ratio: 16 / 9; }

/* FAQ */
.faq__list { display: grid; gap: 12px; max-width: 820px; }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 6px 20px;
  transition: box-shadow 0.3s ease;
}

.faq__item[open] { box-shadow: var(--shadow-soft); }

.faq__q {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 14px 0;
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq__item[open] .faq__q::after { content: "–"; }

.faq__a { color: var(--muted); margin: 0 0 18px; }

/* Reveal */
html.doc--ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.doc--ready .reveal.reveal--shown {
  opacity: 1;
  transform: translateY(0);
}

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ol { list-style: decimal; padding-left: 1.4em; color: var(--muted); }
.prose ol li { margin-bottom: 0.6em; padding-left: 6px; }
.prose ul { list-style: disc; padding-left: 1.4em; color: var(--muted); }
.prose ul li { margin-bottom: 0.5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.prose th, .prose td {
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--line);
  font-size: 0.9375rem;
}
.prose th { background: var(--surface); font-family: var(--font-heading); }

.key-facts {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
}
.key-facts th { width: 40%; }

/* Inner page lead */
.page-head { padding-top: clamp(48px, 6vw, 88px); }
.page-head__intro { font-size: 1.1em; color: var(--muted); max-width: 62ch; }

/* Contacts */
.contact-list { display: grid; gap: 12px; max-width: 640px; }
.contact-list li {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 18px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
}
.contact-list span {
  color: var(--muted);
  font-weight: 600;
  min-width: 88px;
}

/* Thanks / 404 */
.status-page { text-align: left; }
.status-page .accent { font-size: clamp(2.6rem, 3vw + 1.4rem, 4.2rem); }
.link-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }

/* Footer */
.foot {
  background: var(--plate-bg);
  color: var(--plate-text);
  padding: clamp(48px, 6vw, 80px) 0 24px;
  margin-top: clamp(64px, 9vw, 128px);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.foot__brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--plate-text);
}

.foot__tagline { color: #CFC8DF; margin: 0; }

.foot__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--plate-text);
}

.foot__links { display: grid; gap: 8px; }
.foot__links-item a { color: #D8CBFF; }
.foot__links-line { color: #D8CBFF; text-decoration: none; }
.foot__links-line:hover { text-decoration-thickness: 2px; }

.foot address p { color: #CFC8DF; margin: 0 0 10px; font-size: 0.9375rem; }
.foot address a { color: #D8CBFF; }

.foot ul li { color: #CFC8DF; margin-bottom: 8px; font-size: 0.9375rem; }
.foot ul li span { min-width: 72px; display: inline-block; }

.foot__base {
  border-top: 1px solid #4A4160;
  margin-top: 40px;
  padding-top: 20px;
}

.foot__copy { color: #CFC8DF; font-size: 0.875rem; margin: 0; }

/* Breakpoints */
@media (min-width: 480px) {
  .inquiry { grid-template-columns: 1fr 1fr; }
  .inquiry__field--full, .inquiry .inquiry__field:last-of-type { grid-column: 1 / -1; }
  .frame-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .band__cols { grid-template-columns: 2fr 3fr; }
  .band__sticky { position: sticky; top: 110px; }
  .hero__grid { grid-template-columns: 55fr 45fr; gap: 48px; }
  .prose ol, .prose ul { max-width: 68ch; }
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .frame-grid { grid-template-columns: repeat(3, 1fr); }
  .frame-grid__item--wide { grid-column: span 2; }
  .foot__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
}

@media (min-width: 1280px) {
  .shell { padding-left: 0; padding-right: 0; }
  .hero { padding-top: clamp(72px, 8vw, 120px); }
}

/* Mobile menu */
@media (max-width: 767px) {
  .menu__switch { display: inline-flex; align-items: center; }
  .menu__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 8px;
    padding: 20px var(--pad-x) 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  .menu--open .menu__list {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .menu__link { display: block; }
  .hero { padding-bottom: 96px; }
  .hero__figure img { height: auto; aspect-ratio: 4 / 3; }
  .tabs { display: flex; flex-wrap: wrap; gap: 10px; }
  .tabs__tab { flex: 0 1 auto; padding: 10px 20px; font-size: 15px; }
  .tabs__tab:last-child { flex: 1 1 100%; }
  .inquiry__control { min-height: 52px; font-size: 16px; }
  .inquiry__area { min-height: 120px; }
  .inquiry__label { margin-bottom: 8px; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html.doc--ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Services split */
#service-lines .shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

#service-lines .band__title,
#service-lines .band__intro { max-width: 30ch; }

#service-lines .service-list__desc { max-width: 60ch; }

@media (min-width: 768px) {
  #service-lines .shell {
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
  }
  #service-lines .shell > h2 {
    position: sticky;
    top: 120px;
  }
}

@media (min-width: 1024px) {
  .steps { gap: 0; }
  .steps__item { margin-top: 16px; }
  .steps__item:first-child { margin-top: 0; }
}

@media (max-width: 639px) {
  .steps { gap: 0; }
  .steps__item { margin-top: 16px; }
  .steps__item:first-child { margin-top: 0; }
  .steps__item::before { grid-row: auto; margin-bottom: 4px; }
  .steps__item { grid-template-columns: 1fr; }
}

/* Footer contrast fixes */
.foot a { color: #D8CBFF; }
.foot ul li a { color: #D8CBFF; }
.foot address p a { color: #D8CBFF; }

/* Slab */
.slab {
  background: var(--plate-bg);
  color: var(--plate-text);
  border-radius: var(--radius-card);
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
}
.slab h1, .slab h2, .slab h3 { color: var(--plate-text); }
.slab p { color: #CFC8DF; }

/* Overflow guards */
.band__cols > *, .hero__grid > *, .steps__item, .steps__name, .steps__desc, .frame-grid__item, .tabs__panel, .tabs__panels, .foot__grid > * { min-width: 0; }
.steps__name, .steps__desc, .band__title, .band__intro, .hero__title, .hero__lead, .page-head__intro, .service-list__name, .service-list__desc, .faq__q, .faq__a, .foot__tagline { overflow-wrap: break-word; }
