@font-face {
  font-family: Inter;
  src: url("./assets/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #120e13;
  --deep: #0d0a0e;
  --surface: #19141b;
  --raised: #221b24;
  --text: #f9f4f8;
  --muted: #c1b5c2;
  --accent: #f594df;
  --accent-hover: #ffc0ee;
  --line: #392e3b;
  --page-width: 1264px;
  --edge: clamp(21px, 5.65vw, 96px);
  --header-height: 74px;
  font-family: Inter, Arial, sans-serif;
  font-synthesis: none;
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

body:has(dialog[open]) { overflow: hidden; }

[hidden] { display: none !important; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; }
button { color: inherit; }
p, h1, h2, h3 { margin: 0; }

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

::selection { background: var(--accent); color: var(--deep); }

.wrap {
  width: min(var(--page-width), calc(100% - var(--edge) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 15px;
  z-index: 20;
  padding: 12px 15px;
  transform: translateY(-140%);
  border-radius: 6px;
  background: var(--accent);
  color: var(--deep);
}

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

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: rgba(18, 14, 19, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  line-height: 1;
}

.brand-mark {
  width: 42px;
  height: 37px;
  flex: 0 0 auto;
  border: 1px solid #5a4263;
  border-radius: 8px;
  background: #18131c;
  object-fit: contain;
}

.brand-type {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.06em;
  white-space: nowrap;
}

.brand-type > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 640;
  letter-spacing: .09em;
}

.primary-nav {
  display: flex;
  gap: clamp(21px, 3.1vw, 45px);
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 540;
  white-space: nowrap;
}

.primary-nav a, .footer-link { transition: color .18s ease; }
.primary-nav a:hover, .footer-link:hover { color: var(--accent); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.button > span { font-size: 17px; line-height: 1; }
.button:disabled { opacity: .55; cursor: default; }

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #1a1020;
}

.button-primary:hover:not(:disabled) {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button-quiet { color: var(--text); }
.button-quiet:hover { background: var(--raised); color: var(--accent-hover); }

.button-outline {
  border-color: #65465f;
  color: var(--text);
}

.button-outline:hover {
  border-color: var(--accent);
  background: #321f32;
}

.header-cta {
  justify-self: end;
  min-height: 40px;
  padding: 8px 13px;
  font-size: 13px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 32%;
  opacity: .35;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
}

.hero-media::after {
  position: absolute;
  content: "";
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink), rgba(18, 14, 19, .76) 16%, rgba(18, 14, 19, .21) 36%, transparent 63%),
    linear-gradient(0deg, var(--ink), transparent 26%);
}

.hero-inner {
  min-height: clamp(576px, 46vw, 722px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(20px, 4vw, 68px);
  padding-block: clamp(36px, 4vw, 65px);
}

.hero-copy { width: min(100%, 610px); }

.hero-showcase {
  position: relative;
  width: min(100%, clamp(260px, 22.5vw, 330px));
  aspect-ratio: 9 / 16;
  justify-self: center;
  overflow: hidden;
  border: 1px solid #50394f;
  border-radius: 15px;
  background: var(--deep);
  box-shadow: 0 20px 65px #0005;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-video-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #ffffff40;
  border-radius: 8px;
  background: #120e13e6;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.hero-video-toggle:hover { background: #392e3b; }

.hero-video-toggle:focus-visible {
  outline-offset: -4px;
}

.hero h1 {
  font-size: clamp(64px, 6.65vw, 110px);
  font-weight: 750;
  line-height: .98;
  letter-spacing: -.074em;
}

.hero h1 span { color: var(--accent); }

.hero p {
  max-width: 445px;
  margin-top: 28px;
  color: #ddd2dd;
  font-size: clamp(16px, 1.38vw, 20px);
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.hero-actions .button { min-height: 52px; }

.section { padding-block: clamp(65px, 8vw, 115px); }

.section h2 {
  font-size: clamp(35px, 4.05vw, 62px);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 31px;
}

.projects {
  padding-top: 45px;
  border-top: 1px solid var(--line);
}

.projects-head p {
  padding-bottom: 3px;
  color: var(--muted);
  font-size: 13px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.75vw, 25px);
}

.project-card {
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: start;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.project-card:hover { border-color: #93668b; background: var(--raised); }

.project-image {
  display: block;
  aspect-ratio: 1.5;
  overflow: hidden;
  background: var(--raised);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.project-info {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(15px, 1.55vw, 22px);
}

.project-kind {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 660;
  letter-spacing: .09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.project-name {
  display: block;
  font-size: clamp(17px, 1.65vw, 24px);
  font-weight: 660;
  line-height: 1.2;
  letter-spacing: -.043em;
}

.round-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid #604760;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  font-size: 17px;
  line-height: 1;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.project-card:hover .round-icon {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--deep);
}

.order-inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(35px, 7vw, 105px);
}

.steps h3 {
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 640;
  line-height: 1.2;
  letter-spacing: -.037em;
}

.steps p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.order { background: var(--ink); }
.order-inner { align-items: start; }

.steps {
  display: grid;
  gap: 25px;
  padding: 0;
  margin: 31px 0 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
}

.step-number {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid #65465f;
  border-radius: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.steps h3 { margin-top: 1px; }

.inquiry-panel {
  min-width: 0;
  padding: clamp(22px, 3.2vw, 47px);
  border: 1px solid #5b3d55;
  border-radius: 15px;
  background: linear-gradient(155deg, #261b27, var(--surface) 55%);
}

.inquiry-panel h2 {
  font-size: clamp(30px, 3vw, 43px);
  text-wrap: pretty;
}

#inquiry-note {
  margin: 12px 0 23px;
  color: var(--muted);
  font-size: 14px;
}

#inquiry-form { display: grid; gap: 16px; }
#inquiry-form input[hidden] { display: none; }

.fields-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 13px;
}

.inquiry-panel label {
  display: block;
  min-width: 0;
  font-size: 14px;
  font-weight: 590;
}

.optional { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 450; }

.inquiry-panel :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #554355;
  border-radius: 6px;
  background: #171118;
  color: var(--text);
  font-size: 16px;
  font-weight: 430;
  line-height: 1.45;
}

.inquiry-panel :is(input, textarea)::placeholder { color: #a79aaa; opacity: 1; }
.inquiry-panel textarea { resize: vertical; }
.inquiry-panel select { padding-right: 8px; }
.form-cta { width: fit-content; margin-top: 3px; }

.draft {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #5b3d55;
}

.draft-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.form-status { margin-top: 12px; color: var(--accent-hover); font-size: 14px; }
.form-status[data-state="error"] { color: #ffb9bd; }
.form-status:empty { display: none; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--deep);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 87px;
  padding-block: 19px;
}

.footer-link { color: var(--muted); font-size: 13px; }
.footer-link span { margin-left: 7px; color: var(--accent); }

.project-dialog {
  width: min(640px, calc(100% - 30px));
  max-height: calc(100dvh - 30px);
  padding: 0;
  overflow: auto;
  border: 1px solid #6b4d65;
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
}

.project-dialog::backdrop { background: rgba(10, 7, 11, .78); backdrop-filter: blur(5px); }
.dialog-content { position: relative; }

.dialog-close {
  position: absolute;
  z-index: 1;
  top: 13px;
  right: 13px;
  width: 43px;
  height: 43px;
  background: #211522;
  color: var(--text);
  cursor: pointer;
  font-size: 27px;
}

.dialog-close:hover { border-color: var(--accent); color: var(--accent); }

#dialog-image {
  width: 100%;
  height: auto;
  max-height: 44vh;
  aspect-ratio: 1.5;
  object-fit: cover;
  background: var(--raised);
}

.dialog-copy { padding: clamp(20px, 4vw, 32px); }
.dialog-copy h2 { font-size: clamp(25px, 4.8vw, 38px); line-height: 1.14; letter-spacing: -.054em; }
#dialog-details { margin: 12px 0 22px; color: var(--muted); }

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(53px, 8.35vw, 74px); }
  .hero-media { inset-inline-start: 26%; }
  .hero-inner { min-height: 535px; padding-block: 66px; }
  .order-inner { gap: 34px; }
}

@media (max-width: 700px) {
  :root { --header-height: 109px; }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 62px 46px;
    column-gap: 8px;
    row-gap: 0;
  }

  .primary-nav {
    grid-area: 2 / 1 / 3 / 3;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
    border-top: 1px solid var(--line);
  }

  .primary-nav a { display: grid; place-items: center; min-height: 44px; }
  .header-cta { grid-column: 2; grid-row: 1; }
  .hero-media { inset: 0; opacity: .27; }
  .hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 27px;
    padding-block: 27px 44px;
  }

  .hero-showcase {
    grid-row: 1;
    width: min(100%, clamp(210px, 53vw, 270px));
    justify-self: center;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, var(--ink), rgba(18, 14, 19, .7) 34%, rgba(18, 14, 19, .06) 95%),
      linear-gradient(0deg, var(--ink), transparent 35%);
  }

  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-inner { grid-template-columns: 1fr; }
  .section h2 { text-wrap: pretty; }
}

@media (max-width: 480px) {
  .header-inner { width: calc(100% - 36px); }
  .brand-type { font-size: 15px; gap: 6px; }
  .brand { gap: 8px; }
  .brand-mark { width: 38px; height: 34px; }
  .header-cta { min-height: 38px; gap: 7px; padding-inline: 9px; }
  .hero h1 { font-size: clamp(43px, 11.7vw, 55px); }
  .hero p { max-width: 340px; margin-top: 18px; }
  .hero-actions { margin-top: 22px; gap: 4px 8px; }
  .hero-actions .button { min-height: 48px; padding-inline: 11px; gap: 8px; }
  .hero-actions .button-quiet { padding-inline: 5px; }

  .hero-media img { object-position: 72% center; }
  .hero-media::after {
    background:
      linear-gradient(180deg, var(--ink), rgba(18, 14, 19, .28) 40%, transparent 82%),
      linear-gradient(90deg, var(--ink), rgba(18, 14, 19, .78) 30%, rgba(18, 14, 19, .27) 100%),
      linear-gradient(0deg, var(--ink), transparent 38%);
  }

  .projects { padding-top: 37px; }
  .section-head { display: block; margin-bottom: 20px; }
  .projects-head p { margin-top: 7px; }
  .project-grid { grid-template-columns: 1fr; gap: 16px; }
  .project-info { min-height: 77px; }
  .project-name { font-size: 21px; }
  .fields-row { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 360px) {
  .brand-mark { width: 34px; height: 31px; }
  .brand-type { font-size: 14px; }
  .brand-type > span { font-size: 9px; letter-spacing: .06em; }
  .header-cta > span { display: none; }
  .primary-nav { gap: 8px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
.projects-head .gallery-link {
  flex: 0 0 auto;
}

.inquiry-reference {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 10px 12px;
  border: 1px solid #5b3d55;
  border-radius: 6px;
  background: #241924;
  color: var(--muted);
  font-size: 13px;
}

.inquiry-reference strong {
  color: var(--text);
  font-weight: 650;
}

.inquiry-reference button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--accent-hover);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}

@media (max-width: 480px) {
  .projects-head .gallery-link {
    margin-top: 13px;
  }
}
