/* Into the Ultra: site stylesheet. Tokens from the build brief, layout from the approved design. */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/bodoni-moda-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/bodoni-moda.woff2) format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(../fonts/hanken-grotesk.woff2) format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --black: #000000;
  --carbon: #0B0A10;
  --bone: #ECE8E1;
  --white: #F6F2EC;
  --ash: #B5B0BD;
  --rule: #26232E;
  --rule-strong: #3A3547;
  --field: #5A5468;
  --ultra: #6D3BF5;
  --ultra-light: #B79CFF;

  --font-display: 'Bodoni Moda', 'Didot', serif;
  --font-text: 'Hanken Grotesk', 'Helvetica Neue', sans-serif;

  --max: 1280px;
  --gutter: 5%;
  --section-pad: 112px;
  --focus: 2px solid var(--ultra-light);
}

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

html {
  background: var(--black);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }

a {
  color: var(--bone);
  text-decoration: none;
}
a:hover { color: var(--ultra-light); }

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

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

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ultra);
  color: #FFFFFF;
  font-weight: 400;
}
.skip-link:focus {
  left: 8px;
  color: #FFFFFF;
}

.wrap {
  box-sizing: content-box; /* 1280px of content plus the 5% gutters, as in the design */
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.muted { color: var(--ash); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  color: var(--white);
}

/* Inline call-to-action links: underline in the accent colour. */
.link-line {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--ultra);
  font-weight: 400;
}

/* ---------- Header and navigation ---------- */
.nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  padding: 28px var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Hero ---------- */
.hero {
  box-sizing: content-box;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 48px 64px;
}
.hero-text {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 8px;
}
.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 9.5vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: -4px 0 0 rgba(255, 0, 170, 0.5), 4px 0 0 rgba(0, 190, 255, 0.5);
}
.hero h1 {
  max-width: 520px;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--white);
}
.hero-portrait {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 560px;
  width: 100%;
}
.hero-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--rule); }
.section-work { border-top: 0; }

.work-wrap {
  padding-top: 120px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.work-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
}
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  min-width: 0;
  max-width: 100%;
}
.filter button {
  position: relative;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ash);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  min-height: 44px;
  padding: 0 2px;
  cursor: pointer;
}
/* Extend the hit area to at least 44px wide without widening the underline. */
.filter button::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -2px;
  left: -12px;
  right: -12px;
}
.filter button:hover { color: var(--ultra-light); }
.filter button[aria-pressed="true"] {
  border-bottom-color: var(--ultra-light);
  color: var(--white);
}

.masonry {
  columns: 320px 3;
  column-gap: 16px;
}
.masonry picture {
  margin: 0 0 16px;
  break-inside: avoid;
}
.masonry img { width: 100%; }

.about-wrap {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px 72px;
  align-items: center;
}
.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 520px;
}
.about-text .link-line { align-self: flex-start; }
.lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--white);
}

.section-services { background: var(--carbon); }
.services-wrap {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 48px;
}
.service {
  border-top: 1px solid var(--rule-strong);
  padding: 24px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 28px;
  line-height: 1.2;
  color: var(--white);
}
.rates { font-size: 19px; }
.rates .link-line { padding: 0; }

.faq-wrap {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 48px;
}
.faq-item {
  border-top: 1px solid var(--rule-strong);
  padding: 24px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item h3 {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--white);
}

/* ---------- Contact ---------- */
.contact-wrap {
  padding-top: var(--section-pad);
  padding-bottom: 128px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px 96px;
}
.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 460px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px 32px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 14px;
  font-weight: 400;
  color: var(--ash);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--field);
  border-radius: 0;
  color: var(--white);
  font: inherit;
  font-weight: 400;
  min-height: 44px;
  padding: 4px 0;
}
.field select {
  background: var(--black);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B5B0BD' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 24px;
}
.field select option { background: var(--black); color: var(--white); }
.field textarea {
  padding: 8px 0;
  resize: vertical;
}
.field [aria-invalid="true"] { border-bottom-color: var(--ultra-light); }
.field-error {
  font-size: 14px;
  color: var(--ultra-light);
}

.form-status {
  padding: 14px 18px;
  border: 1px solid var(--rule-strong);
  color: var(--white);
}
.form-status-success { border-color: var(--ultra); }
.form-status-error { border-color: var(--ultra-light); }

/* Honeypot: off-screen, never for people. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  align-self: flex-start;
  background: var(--ultra);
  color: #FFFFFF;
  border: 0;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  min-height: 52px;
  padding: 0 36px;
  cursor: pointer;
}
.btn:hover {
  background: var(--ultra-light);
  color: var(--black);
}

/* ---------- 404 ---------- */
.notfound-wrap {
  padding-top: var(--section-pad);
  padding-bottom: 128px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  min-height: 50vh;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner {
  box-sizing: content-box;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 40px;
  font-size: 15px;
  color: var(--ash);
}
.footer-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--bone);
}
.footer-link {
  display: flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  :root { --section-pad: 80px; }
  .work-wrap { padding-top: 88px; padding-bottom: 72px; }
  .hero { padding-bottom: 64px; }
  .contact-wrap, .notfound-wrap { padding-bottom: 96px; }
}
