/* VigorMark — The Darkroom Theme */
:root {
  --black: #0A0B0D;
  --umber: #191310;
  --chalk: #F2EEE5;
  --amber: #FF8A3D;
  --ash: #8C8880;
  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Figtree', sans-serif;
  --font-mono: 'Martian Mono', monospace;
  --max-width: 1200px;
  --header-h: 72px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--chalk);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--chalk); }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.numeral {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* Surfaces */
.surface-black { background: var(--black); color: var(--chalk); }
.surface-umber { background: var(--umber); color: var(--chalk); }
.surface-chalk { background: var(--chalk); color: var(--black); }
.surface-amber { background: var(--amber); color: var(--black); }

.surface-chalk a { color: var(--umber); }
.surface-chalk a:hover { color: var(--amber); }

/* Layout */
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: var(--chalk);
  box-shadow: 0 1px 0 rgba(10, 11, 13, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--chalk);
  letter-spacing: -0.03em;
}

.site-header.is-scrolled .logo { color: var(--black); }

.logo span { color: var(--amber); }
.site-header.is-scrolled .logo span { color: var(--amber); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--chalk);
}

.site-header.is-scrolled .nav-toggle { color: var(--black); }

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: var(--transition);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chalk);
  transition: color var(--transition);
}

.site-header.is-scrolled .main-nav a { color: var(--black); }
.main-nav a:hover,
.site-header.is-scrolled .main-nav a:hover { color: var(--amber); }

.main-nav a[aria-current="page"] { color: var(--amber); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--chalk);
    padding: 1.5rem;
    transform: translateY(-120%);
    transition: transform var(--transition);
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 1rem; }
  .main-nav a { color: var(--black); font-size: 1rem; }
}

/* Hero — THE DEVELOP FRAME */
.hero-develop {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-develop__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-develop__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-develop__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 11, 13, 0.88) 0%, rgba(25, 19, 16, 0.75) 50%, rgba(10, 11, 13, 0.92) 100%);
  z-index: 1;
}

.hero-develop__frame {
  position: absolute;
  inset: 2rem;
  border: 1px solid rgba(255, 138, 61, 0.35);
  z-index: 2;
  pointer-events: none;
}

.hero-develop__frame::before,
.hero-develop__frame::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--amber);
  border-style: solid;
}

.hero-develop__frame::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}

.hero-develop__frame::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}

.hero-develop__content {
  position: relative;
  z-index: 3;
  padding: 4rem 0;
}

.hero-develop h1 { margin-bottom: 1.5rem; max-width: 14ch; }

.hero-develop .slogan {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--ash);
  max-width: 42ch;
  margin-bottom: 2.5rem;
}

.hero-develop .slogan em {
  font-style: normal;
  color: var(--amber);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.btn-amber {
  background: var(--amber);
  color: var(--black);
}

.btn-amber:hover {
  background: var(--chalk);
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--chalk);
  border: 1px solid var(--ash);
}

.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.surface-chalk .btn-outline {
  color: var(--black);
  border-color: var(--black);
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3rem;
  position: relative;
}

.page-hero--img {
  min-height: 32vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.page-hero--img .page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black) 0%, rgba(10, 11, 13, 0.6) 100%);
}

.page-hero--img .container { position: relative; z-index: 1; padding-bottom: 2rem; }

/* Question cards */
.question-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.question-card {
  padding: 2rem;
  border: 1px solid rgba(140, 136, 128, 0.25);
  background: rgba(25, 19, 16, 0.5);
}

.question-card h3 { color: var(--amber); }

.question-card img {
  width: 100%;
  max-height: 140px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 2px;
}

/* Process strip */
.process-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(140, 136, 128, 0.3);
  border-bottom: 1px solid rgba(140, 136, 128, 0.3);
}

.process-step {
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(140, 136, 128, 0.3);
  text-align: center;
}

.process-step:last-child { border-right: none; }

.process-step .numeral {
  font-size: 2rem;
  color: var(--amber);
  display: block;
  margin-bottom: 0.5rem;
}

.process-step h3 { font-size: 1.125rem; }

@media (max-width: 768px) {
  .process-strip { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(1),
  .process-step:nth-child(2) { border-bottom: 1px solid rgba(140, 136, 128, 0.3); }
}

/* Contact sheet grid */
.contact-sheet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.contact-sheet__tile {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.contact-sheet__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.contact-sheet__tile:hover img { transform: scale(1.04); }

.contact-sheet__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(10, 11, 13, 0.9));
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .contact-sheet { grid-template-columns: repeat(2, 1fr); }
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  border: 1px solid rgba(140, 136, 128, 0.2);
}

.service-card .numeral {
  color: var(--amber);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card img {
  width: 100%;
  max-height: 160px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 2px;
}

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.work-card img {
  width: 100%;
  max-height: 220px;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 2px;
}

/* FAQ */
.faq-list { max-width: 800px; }

.faq-item {
  border-bottom: 1px solid rgba(140, 136, 128, 0.25);
  padding: 1.5rem 0;
}

.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 1.25rem;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item .faq-answer {
  padding-top: 1rem;
  color: var(--ash);
}

.surface-chalk .faq-item .faq-answer { color: rgba(10, 11, 13, 0.7); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--ash);
}

.surface-chalk .form-group label { color: rgba(10, 11, 13, 0.6); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(10, 11, 13, 0.4);
  border: 1px solid rgba(140, 136, 128, 0.3);
  color: var(--chalk);
  transition: border-color var(--transition);
}

.surface-chalk .form-group input,
.surface-chalk .form-group select,
.surface-chalk .form-group textarea {
  background: #fff;
  border-color: rgba(10, 11, 13, 0.15);
  color: var(--black);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.form-check input { width: auto; margin-top: 0.25rem; }

.form-check label {
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  color: var(--ash);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 5rem 2rem;
}

.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--ash); max-width: 50ch; margin: 0 auto 2rem; }

.surface-umber .cta-band p { color: rgba(242, 238, 229, 0.7); }

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(140, 136, 128, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--ash);
  font-size: 0.9375rem;
  margin-top: 1rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: var(--ash);
  font-size: 0.9375rem;
}

.footer-col a:hover { color: var(--chalk); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(140, 136, 128, 0.15);
  font-size: 0.8125rem;
  color: var(--ash);
}

.footer-bottom a { color: var(--ash); }
.footer-bottom a:hover { color: var(--chalk); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Two column layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }
}

.split img {
  border-radius: 2px;
  width: 100%;
  max-width: 440px;
  max-height: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split img.img-portrait {
  max-height: 420px;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  object-position: center top;
}

.split > div:has(> img) {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.img-thumb {
  max-width: 360px;
  max-height: 240px;
}

/* Legal content */
.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
}

.legal-content ul, .legal-content ol {
  margin: 0 0 1rem 1.5rem;
}

.legal-content li { margin-bottom: 0.5rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--chalk);
  color: var(--black);
  padding: 1.5rem;
  box-shadow: 0 -4px 24px rgba(10, 11, 13, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.cookie-banner__text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9375rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner .btn-amber { color: var(--black); }

.cookie-customise {
  display: none;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid rgba(10, 11, 13, 0.1);
  margin-top: 0.5rem;
}

.cookie-customise.is-open { display: block; }

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* Utility */
.text-amber { color: var(--amber); }
.text-ash { color: var(--ash); }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.max-prose { max-width: 65ch; }

/* 404 */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1rem 4rem;
}

.error-page h1 { margin-bottom: 1rem; }
.error-page p { color: var(--ash); margin-bottom: 2rem; }

/* Method section */
.method-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  counter-reset: method;
}

.method-item {
  counter-increment: method;
  padding-left: 3rem;
  position: relative;
}

.method-item::before {
  content: counter(method, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--amber);
}

/* Mini FAQ on index */
.mini-faq .faq-item { padding: 1rem 0; }
.mini-faq .faq-item summary { font-size: 1rem; }

/* Image with caption */
.figure-caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ash);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}
