@font-face {
  font-family: Antonio;
  src: url("/assets/fonts/antonio.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --gold: #f3c955;
  --text: #f5f3ef;
  --muted: #bcbcc4;
  --line: #373841;
  --panel: #121722;
  --display: Antonio, Impact, sans-serif;
  --body: Manrope, "Segoe UI", sans-serif;
  --radius: 18px;
  font-family: var(--body);
  color: var(--text);
  background: #080a10;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 100% 0, #14213a 0%, #0a0e19 34%, #080a10 65%);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.25em; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }

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

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  padding: 12px 16px;
  color: #14110b;
  background: var(--gold);
}
.skip-link:focus { transform: none; }

.page-shell {
  width: min(100% - 64px, 1400px);
  margin-inline: auto;
}

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-block: 24px;
}

.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer > a { font-weight: 700; color: var(--text); }
.site-footer div { display: flex; flex-wrap: wrap; gap: 14px 24px; }

.brand-lockup { display: inline-grid; gap: 6px; text-decoration: none; }
.brand-kicker { color: var(--gold); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; }
.brand-name { font: 700 clamp(1.55rem, 3vw, 2.2rem)/1 var(--display); text-transform: uppercase; }

.main-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-link:hover, .nav-link.is-active { color: var(--gold); background: #25232a; }

.main-content { padding-block: clamp(25px, 5vw, 72px); min-width: 0; }
h1, h2, h3, p, figure { margin: 0; }
p, li, dd { line-height: 1.65; }
h2, .grid-title {
  font: 700 clamp(1.55rem, 2.7vw, 2.35rem)/1.1 var(--display);
  text-transform: uppercase;
}

.page-title {
  max-width: 22ch;
  font: 700 clamp(2.25rem, 5.3vw, 5.3rem)/1.03 var(--display);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(24px, 5vw, 77px);
}

.hero-copy p, .content-intro p {
  max-width: 57ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.hero-copy .text-link { margin-top: 14px; }
.hero-image, .case-image { min-width: 0; }
.hero-image img, .case-image img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.hero-image figcaption, .case-image figcaption { color: var(--muted); font-size: 0.84rem; margin-top: 10px; line-height: 1.5; }
.site-hero:not(.inner-hero) .hero-image { width: 100%; max-width: 700px; justify-self: end; }

.content-section {
  margin-top: clamp(38px, 6vw, 76px);
  padding-top: clamp(22px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.section-copy { color: var(--muted); margin-top: 12px; max-width: 64ch; }
.content-intro { margin-bottom: clamp(24px, 4vw, 40px); }

.text-link {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  line-height: 1.45;
}
.text-link:hover, .site-footer a:hover { color: #ffe29b; }
.profile-links { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 20px; }

.project-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 46px;
  width: fit-content;
  padding: 10px 17px;
  border: 1px solid #70603a;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}
.contact-button:hover { background: #292522; border-color: var(--gold); }
.contact-button-primary { background: var(--gold); border-color: var(--gold); color: #181204; }
.contact-button-primary:hover { background: #ffdf87; }
.contact-button:disabled { opacity: 0.65; cursor: wait; }

.work-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  text-decoration: none;
}
.work-card:hover { border-color: var(--gold); }
.work-card-image { width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.work-card-copy { padding: 17px 18px 19px; }
.work-card h3 { font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.35; }
.work-card p { margin-top: 5px; color: var(--muted); font-size: 0.93rem; }

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(206px, 100%), 1fr));
  gap: 14px;
  margin-top: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #1b222e, var(--panel));
  text-decoration: none;
}
.service-card:hover { border-color: var(--gold); }
.service-card h3 { font-size: 1.05rem; line-height: 1.4; }
.service-card p { color: var(--muted); font-size: 0.91rem; }
.service-card .text-link { margin-top: auto; padding-top: 6px; font-size: 0.86rem; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.84rem;
}
.breadcrumbs a { color: var(--gold); }

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
  margin: 20px 0 0;
}
.feature-list > div { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px; }
.feature-list dt { font-weight: 800; margin-bottom: 6px; }
.feature-list dd { margin: 0; color: var(--muted); }
.project-steps { margin: 18px 0 0; padding-left: 27px; max-width: 72ch; }
.project-steps li { padding: 12px 0 13px 9px; border-bottom: 1px solid var(--line); }
.project-steps li::marker { color: var(--gold); font-weight: 800; }
.project-steps p, .question-list p { margin-top: 5px; color: var(--muted); }
.question-list { display: grid; gap: 8px; max-width: 74ch; margin-top: 18px; }
.question-list details { padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.question-list summary { cursor: pointer; font-weight: 700; }
.question-list summary::marker { color: var(--gold); }

.privacy-copy { max-width: 68ch; }
.privacy-copy section + section { margin-top: 24px; }
.privacy-copy p { margin-top: 10px; color: var(--muted); }

.footer-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.footer-button:hover { color: var(--gold); }

.analytics-panel {
  position: fixed;
  right: clamp(12px, 3vw, 35px);
  bottom: clamp(12px, 3vw, 35px);
  z-index: 5;
  width: min(calc(100% - 24px), 420px);
  padding: 17px;
  border: 1px solid #66615c;
  border-radius: 14px;
  background: #181c25;
  box-shadow: 0 16px 45px rgb(0 0 0 / 45%);
}
.analytics-panel h2 { font: 800 1rem/1.3 var(--body); text-transform: none; }
.analytics-panel p { margin: 7px 0 12px; font-size: 0.86rem; color: var(--muted); }
.analytics-panel p a { color: var(--gold); }
.analytics-actions { display: flex; gap: 10px; }
.analytics-actions button { flex: 1; font-size: 0.84rem; }

.project-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: clamp(34px, 6vw, 70px);
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid #665637;
  border-radius: var(--radius);
  background: linear-gradient(125deg, #211d16, var(--panel));
}
.project-cta p { margin-top: 6px; color: var(--muted); max-width: 62ch; }
.project-cta .project-actions { margin: 0; }

.case-layout { max-width: 970px; margin-inline: auto; }
.case-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; }
.case-details section:last-child { grid-column: 1 / -1; }
.case-details p, .case-details ul { margin: 10px 0 0; color: var(--muted); }
.case-details ul { padding-left: 20px; }
.case-details li + li { margin-top: 5px; }
.case-details .text-link { margin-top: 10px; }

.gallery-actions { margin-top: 0; margin-bottom: 24px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery-card { align-self: start; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.gallery-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.gallery-card:hover { border-color: var(--gold); }

.gallery-dialog {
  max-width: min(1200px, 96vw);
  max-height: 94vh;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #10131d;
  color: var(--text);
}
.gallery-dialog::backdrop { background: rgb(0 0 0 / 86%); }
.gallery-dialog[open] { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.lightbox-controls { display: flex; gap: 10px; order: -1; }
.lightbox-close, .lightbox-nav {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 1.4rem;
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-nav:hover { border-color: var(--gold); }
.gallery-dialog figure { width: 100%; }
.lightbox-image { max-height: 72vh; object-fit: contain; margin-inline: auto; }
.gallery-dialog figcaption { padding-top: 8px; color: var(--muted); font-size: 0.84rem; }

.about-shell { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(24px, 6vw, 70px); align-items: center; }
.about-text { color: var(--muted); margin-top: 24px; max-width: 65ch; }
.about-text p + p { margin-top: 15px; }
.about-portrait-wrap { min-width: 0; }
.about-portrait-wrap img { max-height: 540px; width: 100%; object-fit: contain; }

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 24px clamp(28px, 5vw, 72px);
  max-width: 1180px;
  margin-inline: auto;
}
.contact-lead .page-title { max-width: 13ch; }
.contact-copy { max-width: 36ch; margin-top: 14px; color: var(--muted); }
.contact-lead .contact-button { margin: 18px 0 9px; }
.contact-lead .contact-help { max-width: 38ch; }
.contact-form {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  padding: clamp(19px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(140deg, #151e30, var(--panel) 65%);
}
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.contact-field { display: grid; gap: 7px; min-width: 0; font-size: 0.93rem; font-weight: 700; }
.contact-field small { font-weight: 400; color: var(--muted); }
.contact-field-wide { grid-column: 1 / -1; }
.contact-field input, .contact-field select, .contact-field textarea, .contact-copy-output {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #777985;
  color: var(--text);
  background: #0c101a;
  font-size: 1rem;
}
.contact-field textarea, .contact-copy-output { resize: vertical; }
.contact-copy-output { margin-top: 12px; }
.contact-help, .contact-status { font-size: 0.87rem; line-height: 1.55; }
.contact-help { color: var(--muted); }
.contact-actions { margin-block: 19px 9px; }
.contact-status { color: var(--gold); }
.contact-status:not(:empty) { margin-top: 10px; }
.contact-direct h2 { font: 800 0.98rem/1.4 var(--body); text-transform: none; }
.contact-links { padding: 0; margin: 4px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 14px; }
.contact-links li:first-child { flex-basis: 100%; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--gold); }

@media (max-width: 1040px) {
  .work-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { align-items: flex-start; }
}

@media (max-width: 760px) {
  .page-shell { width: calc(100% - 32px); }
  .site-header { gap: 12px; padding-block: 18px 10px; }
  .main-nav { gap: 0 4px; }
  .nav-link { padding-inline: 9px; }
  .site-hero, .about-shell, .case-details, .contact-shell { grid-template-columns: minmax(0, 1fr); }
  .site-hero:not(.inner-hero) .hero-image { justify-self: start; }
  .contact-shell { grid-template-rows: none; }
  .contact-form { grid-area: auto; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-portrait-wrap img { max-height: 390px; }
}

@media (max-width: 460px) {
  .work-cards, .contact-fields { grid-template-columns: minmax(0, 1fr); }
  .project-actions, .contact-actions { display: grid; width: 100%; }
  .project-actions .contact-button, .contact-actions .contact-button { width: 100%; }
}
