:root {
  --ink: #101418;
  --ink-soft: #3b4650;
  --paper: #f3f1ea;
  --wave-deep: #1d3f6e;
  --line: rgba(16, 20, 24, 0.22);
  --wash: rgba(236, 233, 223, 0.55);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Fixed artwork behind everything */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("assets/background.jpg") center / cover no-repeat;
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wash);
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--wave-deep); outline-offset: 4px; }

/* ---------- Landing ---------- */
.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  text-align: center;
}
.landing-inner { display: flex; flex-direction: column; align-items: center; }

.mark {
  width: clamp(150px, 20vw, 250px);
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(16, 30, 60, 0.28));
  animation: drift 7s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.brand {
  margin-top: clamp(40px, 7vh, 72px);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand span { font-weight: 500; }

.menu { list-style: none; margin-top: clamp(32px, 6vh, 56px); display: grid; gap: clamp(18px, 3.4vh, 30px); }
.menu a {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s ease;
  padding-bottom: 3px;
}
.menu a:hover, .menu a:focus-visible { background-size: 100% 2px; }
.menu .soon { color: var(--wave-deep); }
.menu .soon small {
  font-size: 0.7em;
  font-weight: 500;
  margin-left: 6px;
  color: var(--ink-soft);
}

/* ---------- Inner pages ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(20px, 6vw, 96px);
  background: linear-gradient(rgba(250, 249, 245, 0.96), rgba(250, 249, 245, 0.82));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar img { height: 44px; width: auto; filter: drop-shadow(0 4px 6px rgba(16,30,60,.25)); }
.topbar a.back { font-size: 0.95rem; font-weight: 500; }
.topbar a.back:hover { text-decoration: underline; text-underline-offset: 4px; }

section { padding: clamp(56px, 9vw, 110px) 24px; border-bottom: 1px solid var(--line); }
section.tight { padding-block: clamp(36px, 5vw, 56px); }
.center { text-align: center; }

.kicker { font-size: 0.85rem; font-weight: 700; margin-bottom: 28px; }

/* Services strip, stands in for a client-logo row */
.strip { overflow: hidden; }
.strip-track {
  display: flex;
  gap: clamp(48px, 7vw, 110px);
  width: max-content;
  animation: slide 38s linear infinite;
  align-items: center;
}
.strip-track span {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.strip-track span:nth-child(even) { font-style: italic; font-weight: 500; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Hero */
.hero h1 {
  font-size: clamp(3rem, 11vw, 8.2rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  max-width: 11ch;
  margin: 0 auto;
}
.hero p { margin: 28px auto 0; max-width: 34ch; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
  padding: 18px 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: rgba(255,255,255,.55); color: var(--ink); border-color: var(--line); border-radius: 999px; padding: 12px 22px; font-size: 0.8rem; margin-top: 20px; }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* FAQ */
.faq h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 8ch;
  margin: 0 auto;
}
.faq .sub { margin-top: 16px; font-size: 0.95rem; color: var(--ink-soft); }
.faq-list { max-width: 780px; margin: 56px auto 0; border-top: 1px solid var(--line); text-align: left; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
}
.faq-q:focus-visible { outline: 2px solid var(--wave-deep); outline-offset: 2px; }
.faq-q .plus {
  flex: none;
  width: 26px; height: 26px;
  border: 1px solid var(--ink-soft);
  border-radius: 50%;
  position: relative;
  transition: transform 0.3s ease, background 0.3s;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 1.5px; background: var(--ink);
  transform: translate(-50%, -50%);
}
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity 0.2s; }
.faq-item.open .plus { transform: rotate(180deg); background: rgba(255,255,255,.6); }
.faq-item.open .plus::after { opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 48px 24px 0; max-width: 62ch; color: var(--ink-soft); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* Contact */
.contact .mail {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(1.5rem, 4.4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.contact .mail:hover { border-color: var(--ink); }
.contact .meta { margin-top: 22px; font-size: 0.9rem; color: var(--ink-soft); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px clamp(20px, 6vw, 96px);
  font-size: 0.85rem;
  background: rgba(250, 249, 245, 0.7);
}
footer a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 600px) {
  .faq-a p { padding-right: 8px; }
  .btn { gap: 18px; padding: 16px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .mark, .strip-track { animation: none; }
  .faq-a, .faq-q .plus { transition: none; }
}

/* ---------- About, services, gallery ---------- */
.about { text-align: left; }
.about-grid, .services, .work { max-width: 1080px; margin-inline: auto; }
.about-grid { display: grid; grid-template-columns: 180px 1fr; gap: 24px 48px; }
.about-grid .kicker { margin: 6px 0 0; }
.about .lead {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 24ch;
}
.about-grid p:not(.lead):not(.kicker) { margin-top: 24px; max-width: 58ch; color: var(--ink-soft); }
.services { list-style: none; margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.services li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px 48px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.services h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.services p { max-width: 54ch; color: var(--ink-soft); }

.work-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.work .kicker { text-align: center; }
.gallery { columns: 3; column-gap: 18px; margin-top: clamp(36px, 5vw, 64px); }
.gallery figure { break-inside: avoid; margin-bottom: 18px; }
.gallery button { all: unset; display: block; cursor: zoom-in; width: 100%; background: #0e1114; }
.gallery button:focus-visible { outline: 2px solid var(--wave-deep); outline-offset: 3px; }
.gallery img { display: block; width: 100%; height: auto; transition: opacity 0.25s; }
.gallery button:hover img { opacity: 0.88; }
.gallery figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--ink-soft); }

#lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; margin: auto; }
#lightbox::backdrop { background: rgba(10, 14, 20, 0.88); }
#lightbox img { display: block; max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lb-close { position: absolute; top: 8px; right: 8px; padding: 8px 14px; font: 600 0.85rem var(--font); background: #fff; border: 0; cursor: pointer; }

@media (max-width: 800px) {
  .about-grid, .services li { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: 12px; }
  .gallery figure { margin-bottom: 12px; }
}
@media (max-width: 460px) { .gallery { columns: 1; } }

/* keep text readable over the artwork */
.about, .services p, .faq-list { }
.about { background: rgba(243, 241, 234, 0.72); backdrop-filter: blur(3px); }
.work { background: rgba(243, 241, 234, 0.82); max-width: none; padding-inline: 24px; }
.work .gallery, .work .work-title, .work .kicker { max-width: 1080px; margin-inline: auto; }

/* ---------- Project form ---------- */
.start { background: rgba(243, 241, 234, 0.82); backdrop-filter: blur(3px); }
.start-wrap { max-width: 760px; margin-inline: auto; }
.start h2 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 0.95; font-weight: 900; letter-spacing: -0.035em; text-transform: uppercase; }
.start .sub { margin: 14px 0 40px; color: var(--ink-soft); }
#project-form { display: grid; gap: 22px; }
#project-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
#project-form label { display: grid; gap: 8px; font-size: 0.85rem; font-weight: 700; }
#project-form input[type="text"], #project-form input[type="email"], #project-form select, #project-form textarea {
  font: 400 1rem var(--font);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 14px;
  width: 100%;
}
#project-form textarea { resize: vertical; min-height: 140px; }
#project-form input:focus, #project-form select:focus, #project-form textarea:focus { outline: 2px solid var(--wave-deep); outline-offset: 0; background: #fff; }
#project-form .invalid { border-color: #a3281f !important; }
fieldset { border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
legend { font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; padding: 0; }
.chip { display: block !important; position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: block; padding: 10px 18px; border: 1px solid var(--line); background: rgba(255,255,255,.6); font-weight: 500; font-size: 0.92rem; transition: background .2s, color .2s; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--wave-deep); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#project-form .btn { justify-self: start; cursor: pointer; font-family: var(--font); }
#project-form .btn[disabled] { opacity: .55; cursor: wait; }
.form-status { min-height: 1.5em; font-size: 0.95rem; }
.form-status.ok { color: #1c5a32; font-weight: 700; }
.form-status.err { color: #a3281f; font-weight: 700; }
@media (max-width: 600px) { #project-form .row { grid-template-columns: 1fr; } }
