/* ================================================================
   Strange Artefacts — shared stylesheet
   Design language: generous whitespace, muted pastel palette,
   bold monogram, masonry-style tile grid.
   ================================================================ */

/* Cross-document View Transitions.
   Opts every same-origin navigation into a native crossfade.
   Named regions (.nav, .footer) get their own snapshots so the
   chrome sits still while the body content transitions.
   Browsers without support just ignore these rules. */
@view-transition { navigation: auto; }

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #8a8a88;
  --line: #eceae6;

  --pink:        #f1dcdd;
  --pink-deep:   #e6c4c7;
  --teal:        #4c6b60;
  --teal-soft:   #d7e1dc;
  --sand:        #d9d7d3;
  --cream:       #f4f2ee;

  --radius: 0;
  --gutter: clamp(12px, 2vw, 28px);
  --page-pad: clamp(20px, 5vw, 72px);

  --fs-xs: 0.72rem;
  --fs-sm: 0.85rem;
  --fs-md: 1rem;
  --fs-lg: clamp(1.15rem, 1.3vw + 0.9rem, 1.6rem);
  --fs-xl: clamp(2rem, 5vw + 0.5rem, 4.6rem);
  --fs-xxl: clamp(3rem, 9vw + 0.5rem, 7.2rem);

  --tr: 260ms cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Helvetica, Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
  font-size: var(--fs-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- NAV ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 2.5vw, 34px) var(--page-pad);
  gap: 24px;
  view-transition-name: site-nav;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: 1.05rem;
  line-height: 1;
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--fg);
}

.nav-links {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links a { position: relative; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--fg);
}
.nav-links a:hover { text-decoration: none; opacity: .6; }

.nav-social {
  display: flex;
  gap: 14px;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-social a:hover { opacity: .6; text-decoration: none; }

/* Hamburger toggle — hidden on desktop */
.nav-toggle-input { display: none; }
.nav-toggle-btn   { display: none; }

@media (max-width: 720px) {
  /* Nav bar: logo left, hamburger right; sits above the overlay */
  .nav {
    flex-wrap: nowrap;
    position: relative;
    z-index: 200;
  }

  /* Logo and hamburger button float above the overlay */
  .logo {
    position: relative;
    z-index: 201;
  }

  /* Full-screen overlay — hidden until toggled */
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.6rem, 6vw, 2.8rem);
    background: var(--bg);
    z-index: 100;
    font-size: clamp(1.8rem, 9vw, 3rem);
    letter-spacing: 0.04em;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--tr);
  }
  .nav-links a[aria-current="page"]::after { display: none; }

  .nav-toggle-input:checked ~ .nav-links {
    opacity: 1;
    pointer-events: auto;
  }

  /* Social link at bottom of overlay */
  .nav-social {
    position: fixed;
    bottom: clamp(1.5rem, 5vw, 2.5rem);
    left: 0;
    right: 0;
    justify-content: center;
    z-index: 101;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--tr);
  }
  .nav-toggle-input:checked ~ .nav-social {
    opacity: 1;
    pointer-events: auto;
  }

  /* Hamburger button */
  .nav-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 201;
  }
  .nav-toggle-btn span {
    display: block;
    height: 2px;
    background: var(--fg);
    transform-origin: center;
    transition: transform var(--tr), opacity var(--tr);
  }

  /* Morph to × when open */
  .nav-toggle-input:checked + .nav-toggle-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle-input:checked + .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-input:checked + .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(40px, 8vw, 110px) var(--page-pad) clamp(30px, 5vw, 70px);
  max-width: 1400px;
}
.hero h1 {
  font-size: var(--fs-xxl);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0 0 clamp(18px, 2.4vw, 34px);
}
.hero p.lead {
  font-size: var(--fs-lg);
  max-width: 54ch;
  color: #2a2a2a;
  margin: 0;
  font-weight: 300;
}
.eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 clamp(14px, 2vw, 26px);
  font-weight: 500;
}

/* Lean intro strip — used on the hub to keep projects above the fold */
.intro {
  padding: clamp(14px, 2vw, 28px) var(--page-pad) clamp(18px, 2.4vw, 34px);
  max-width: 1400px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.intro h1 {
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
}
.intro .eyebrow { margin: 0; }
.intro p.tagline {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  max-width: 50ch;
}

/* ---------- GRID (masonry-ish) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  padding: 0 var(--page-pad) var(--page-pad);
}

/* Default tile spans */
.tile { grid-column: span 12; }
@media (min-width: 640px)  { .tile { grid-column: span 6; } }
@media (min-width: 1000px) { .tile { grid-column: span 4; } }

.tile--wide { grid-column: span 12; }
@media (min-width: 1000px) { .tile--wide { grid-column: span 8; } }

.tile--tall .tile__media { aspect-ratio: 3 / 4; }
.tile--square .tile__media { aspect-ratio: 1 / 1; }
.tile--landscape .tile__media { aspect-ratio: 4 / 3; }

.tile__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream);
}
.tile__media > img,
.tile__media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr);
}
.tile a:hover .tile__media > img,
.tile a:hover .tile__media > video { transform: scale(1.02); }

.tile--pink .tile__media { background: var(--pink); }
.tile--pink-deep .tile__media { background: var(--pink-deep); }
.tile--teal .tile__media { background: var(--teal); color: #fff; }
.tile--teal-soft .tile__media { background: var(--teal-soft); }
.tile--sand .tile__media { background: var(--sand); }
.tile--cream .tile__media { background: var(--cream); }

.tile__body {
  padding: 16px 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  row-gap: 6px;
  align-items: baseline;
}
.tile__title {
  grid-column: 1;
  font-size: clamp(1.1rem, 1.3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.tile__meta {
  grid-column: 2;
  text-align: right;
  white-space: nowrap;
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.tile__sub {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  max-width: 55ch;
  line-height: 1.45;
}

/* Big hero-style tile used on the hub */
.tile__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(18px, 2vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  color: inherit;
}
.tile__label h2 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
}
.tile__label small {
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.tile--teal .tile__label { color: #fff; }

/* ---------- QUOTE BLOCK ---------- */
.quote {
  grid-column: span 12;
  padding: clamp(24px, 4vw, 56px);
  background: var(--cream);
  font-size: var(--fs-lg);
  line-height: 1.35;
  font-weight: 300;
}
@media (min-width: 1000px) { .quote { grid-column: span 8; } }
.quote cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- SECTION ---------- */
.section {
  padding: clamp(40px, 6vw, 96px) var(--page-pad);
  max-width: 1400px;
}
.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
@media (min-width: 900px) {
  .section__head { grid-template-columns: 200px 1fr; gap: 40px; align-items: baseline; }
}
.section__head h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
  line-height: 1;
}
.section__head p {
  max-width: 62ch;
  font-size: var(--fs-md);
  color: #2a2a2a;
  margin: 0;
}

/* ---------- FEATURE LIST ---------- */
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gutter);
  border-top: 1px solid var(--line);
}
.features li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.features strong {
  display: block;
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 6px;
}
.features span { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--fg);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background var(--tr), color var(--tr);
}
.btn:hover { background: var(--fg); color: var(--bg); text-decoration: none; }
.btn--inverse { border-color: #fff; color: #fff; }
.btn--inverse:hover { background: #fff; color: var(--fg); }

/* ---------- STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gutter);
  counter-reset: step;
}
.step {
  padding: clamp(22px, 2.2vw, 34px);
  background: var(--cream);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 14px;
}
.step h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.step p { margin: 0; color: #2a2a2a; }

/* ---------- FOOTER ---------- */
.footer {
  padding: clamp(48px, 6vw, 88px) var(--page-pad) clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  background: var(--bg);
  view-transition-name: site-footer;
}
.footer a:hover { color: var(--fg); text-decoration: none; opacity: .6; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand h3 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  margin: 0 0 12px;
  line-height: 1;
}
.footer__brand p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  max-width: 32ch;
  line-height: 1.5;
}

.footer__col h4 {
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 16px;
}
.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: var(--fs-sm);
}
.footer__col span.dim { color: var(--muted); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-top: clamp(22px, 2.4vw, 34px);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 640px) {
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- HERO BANNER (used on sub-pages) ---------- */
.banner {
  padding: clamp(40px, 8vw, 120px) var(--page-pad) clamp(30px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
  max-width: 1400px;
}
@media (min-width: 900px) {
  .banner { grid-template-columns: 1.3fr 1fr; align-items: end; }
}
.banner h1 {
  font-size: var(--fs-xxl);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
  margin: 0;
}
.banner p {
  font-size: var(--fs-lg);
  font-weight: 300;
  color: #2a2a2a;
  margin: 0;
  max-width: 50ch;
}

/* ---------- UTIL ---------- */
.hidden { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  video { display: none; }
  video + img { display: block; }
}

/* ---------- SCROLL-DRIVEN ENTRY ----------
   Native scroll-linked animation. The keyframes progress with the
   element's own view() timeline — no JS, no IntersectionObserver.
   Falls back to static (fully visible) on browsers without support. */
@keyframes sa-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tile,
    .quote,
    .section__head,
    .features li,
    .step,
    .space-photo,
    .video-frame,
    .pullquote-de,
    .cta-row {
      animation: sa-rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 25%;
    }
  }
}

/* ---------- CONTACT FORM ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 600px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-row label {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: var(--fs-md);
  line-height: 1.5;
  outline: none;
  transition: border-color var(--tr);
  border-radius: 0;
  -webkit-appearance: none;
}
.form-row input:focus,
.form-row textarea:focus { border-bottom-color: var(--fg); }
.form-row textarea { resize: vertical; min-height: 140px; }
.form-captcha { margin-top: 0.4rem; }
.form-submit {
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0.8rem 2.4rem;
  background: var(--fg);
  color: var(--bg);
  border: none;
  font-family: inherit;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--tr);
}
.form-submit:hover { opacity: 0.7; }
