/* ==========================================================================
   Are We Clear — site styles
   Replicates the previous Squarespace design.
   Heading face on the original was Adobe Typekit "hypatia-sans-pro" (licensed,
   not redistributable). "Jost" is used as the closest free geometric-humanist
   substitute. Swap --font-head if the Typekit licence is carried over.
   ========================================================================== */

:root {
  --font-head: "Jost", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --accent: #02adef;
  --btn-grey: #a8a6a1;
  --ink: #000;
  --ink-soft: #3a3a3a;
  --paper: #fff;
  --dark: #101010;
  --hairline: rgba(0, 0, 0, 0.12);

  --wrap: 1200px;
  --gutter: 32px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.005em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.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;
}

/* ---------- Buttons ---------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.btn-solid {
  background: var(--btn-grey);
  color: #fff;
  border-radius: 6px;
  padding: 19px 32px;
}
.btn-solid:hover { background: #918f8a; }

.btn-pill {
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  padding: 14px 38px;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}
.btn-pill:hover { background: #0295cf; }

/* ---------- Header ----------------------------------------------------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 28px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo { flex: 0 0 auto; }
.site-logo img { width: 132px; height: auto; }

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.18s ease;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* Nav folder (Projects dropdown) */
.nav-folder { position: relative; }

.nav-folder-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 172px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
  z-index: 30;
}

.nav-folder:hover .nav-folder-menu,
.nav-folder:focus-within .nav-folder-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-folder-menu a {
  color: var(--ink);
  text-shadow: none;
  padding: 8px 20px;
  font-size: 15px;
  white-space: nowrap;
  opacity: 1;
}
.nav-folder-menu a:hover { background: #f2f2f2; text-decoration: none; }
.site-header.on-light .nav-folder-menu a { color: var(--ink); }

/* Header CTA button */
.nav-cta {
  flex: 0 0 auto;
  padding: 13px 24px;
  font-size: 15px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.social-links a {
  color: #fff;
  display: inline-flex;
  opacity: 0.92;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}
.social-links a:hover { opacity: 1; }
.social-links svg { width: 19px; height: 19px; fill: currentColor; }

/* Inner pages sit on white, so the header needs dark text there. */
.site-header.on-light { position: static; padding: 26px 0; }
.site-header.on-light .main-nav a,
.site-header.on-light .social-links a { color: var(--ink); text-shadow: none; filter: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: #fff;
}
.site-header.on-light .nav-toggle { color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Hero ------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 120px var(--gutter) 90px;
  max-width: 980px;
}

.hero h2 {
  font-size: 44.8px;
  color: #fff;
  margin-bottom: 42px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-learn {
  margin-top: 52px;
  font-family: var(--font-head);
  font-size: 19.2px;
  color: #fff;
}

.hero-learn a { text-decoration: none; }
.hero-learn a:hover { text-decoration: underline; text-underline-offset: 6px; }

.hero-chevron {
  display: block;
  margin: 14px auto 0;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

/* ---------- Intro ------------------------------------------------------ */

.intro {
  text-align: center;
  padding: 92px 0 8px;
}

.intro h1 {
  font-size: 64px;
  margin-bottom: 18px;
}

.intro h2 {
  font-size: 44.8px;
  margin-bottom: 26px;
}

.intro-lead {
  font-size: 18px;
  margin: 0 0 30px;
}

.badge {
  display: inline-block;
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 5px;
  padding: 12px 22px;
  margin: 12px 0 8px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  max-width: 640px;
}

/* ---------- Poster grid ------------------------------------------------ */

.grid-label {
  text-align: center;
  font-family: var(--font-head);
  font-size: 28px;
  margin: 74px 0 30px;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px 30px;
  padding: 8px 0 0;
  list-style: none;
  margin: 0;
}

/* Rotating grid: all tagged cards ship in the HTML, but only the first N are
   shown. The nth-child cut-off is emitted per page from home.featuredGridSize,
   so changing that number needs no edit here. */

.poster-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.poster-art {
  aspect-ratio: 2 / 3;
  background: #ebebeb;
  overflow: hidden;
}

.poster-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.poster-card:hover .poster-art img { transform: scale(1.035); opacity: 0.92; }

.poster-title {
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.25;
  margin: 14px 0 4px;
}

.poster-meta {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.poster-cat {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c7c7c;
  margin-top: 3px;
}

.grid-actions {
  text-align: center;
  padding: 58px 0 12px;
}

/* ---------- Placeholder poster (project with no art yet) ---------------- */

.poster-art--placeholder {
  aspect-ratio: 2 / 3;
  background: linear-gradient(160deg, #2a2a2e 0%, #141416 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 22px 18px;
  text-align: left;
}

.poster-art--placeholder .ph-title {
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.15;
}

.poster-art--placeholder .ph-meta {
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0.72;
}

/* ---------- Spotlight rail (carousel) ----------------------------------- */

.spotlight {
  padding: 74px 0 4px;
}

.spotlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.spotlight .grid-label {
  margin: 0;
  text-align: left;
}

.rail-nav {
  display: flex;
  gap: 8px;
}

.rail-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.16s ease, opacity 0.16s ease, border-color 0.16s ease;
}
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn:hover:not(:disabled) { background: #f2f2f2; border-color: #bdbdbd; }
.rail-btn:disabled { opacity: 0.3; cursor: default; }

.rail {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 26px 0 0;
  /* Align the first card with .wrap, but let the rail bleed to the edge. */
  padding: 4px max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  overflow-x: auto;
  scrollbar-width: none;
  /* No scroll-snap and no smooth scroll-behavior: the marquee writes scrollLeft
     every frame and either would fight it. The arrow buttons still glide,
     because scrollBy() passes behavior:'smooth' explicitly. */
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.rail::-webkit-scrollbar { display: none; }

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

.rail-item {
  flex: 0 0 258px;
}

/* Duplicated slides that make the loop seamless. Hidden from assistive tech and
   removed from the tab order so the titles aren't announced or tabbed twice. */
.rail-item[aria-hidden="true"] { pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .rail { scroll-behavior: auto; }
}

/* ---------- Alternating feature sections ------------------------------- */

.feature {
  padding: 62px 0;
  border-top: 1px solid var(--hairline);
}
.feature:first-of-type { border-top: 0; }

.feature .wrap {
  display: grid;
  grid-template-columns: 277px minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  min-height: 297px;
}

.feature.image-right .wrap {
  grid-template-columns: minmax(0, 1fr) 277px;
}
.feature.image-right .feature-media { order: 2; }
.feature.image-right .feature-text { order: 1; }

.feature-media img {
  width: 277px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.feature-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 22.4px;
  line-height: 1.4;
  margin: 0 0 14px;
}

.feature-body {
  margin: 0 0 30px;
  max-width: 62ch;
}

/* ---------- Listing pages ---------------------------------------------- */

.page-head {
  padding: 56px 0 10px;
  text-align: center;
}

.page-head h1 {
  font-size: 48px;
}

.page-body { padding-bottom: 80px; }

/* ---------- Project detail --------------------------------------------- */

.project {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  padding: 48px 0 90px;
}

.project-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.project h1 {
  font-size: 44px;
  margin-bottom: 16px;
}

.project-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags li {
  border: 1px solid var(--hairline);
  border-radius: 40px;
  padding: 5px 15px;
  font-size: 13.5px;
  line-height: 1.5;
}

.project-back {
  display: inline-block;
  margin-top: 8px;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
}
.project-back:hover { border-color: var(--ink); }

/* ---------- Contact ----------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 70px;
  padding: 46px 0 96px;
  align-items: start;
}

.contact h1 { font-size: 48px; margin-bottom: 22px; }

.contact-detail { margin: 0 0 10px; }
.contact-detail a { text-decoration: none; border-bottom: 1px solid var(--hairline); }
.contact-detail a:hover { border-color: var(--ink); }

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-bottom: 7px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: 3px;
  padding: 12px 14px;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.field textarea { min-height: 168px; resize: vertical; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hp { position: absolute; left: -9999px; }

/* ---------- Footer ------------------------------------------------------ */

.site-footer {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 52px 0;
  min-height: 180px;
  display: flex;
  align-items: center;
}

.site-footer p { margin: 0 0 6px; font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.footer-social svg { width: 19px; height: 19px; fill: #fff; }

/* ---------- Responsive --------------------------------------------------- */

@media (max-width: 1024px) {
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro h1 { font-size: 54px; }
  .intro h2, .hero h2 { font-size: 36px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .project { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .nav-toggle { display: inline-flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(16, 16, 16, 0.97);
    padding: 16px 20px;
    border-radius: 8px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { color: #fff; text-shadow: none; padding: 8px 0; }
  .site-header.on-light .main-nav a { color: #fff; }

  /* Dropdown flattens into the stacked mobile menu */
  .nav-folder { width: 100%; }
  .nav-folder-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: 0;
  }
  .nav-folder-menu a { color: #fff; padding: 6px 0; }
  .site-header.on-light .nav-folder-menu a { color: #fff; }
  .nav-folder-menu a:hover { background: none; }

  .social-links { display: none; }
  .nav-cta { display: none; }

  .hero { min-height: 640px; }
  .hero h2 { font-size: 29px; }
  .hero-inner { padding: 130px var(--gutter) 70px; }

  .intro { padding: 62px 0 4px; }
  .intro h1 { font-size: 40px; }
  .intro h2 { font-size: 27px; }

  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }

  .spotlight { padding: 52px 0 0; }
  .rail-nav { display: none; }          /* swipe instead */
  .rail { gap: 18px; margin-top: 20px; }
  .rail-item { flex-basis: 168px; }

  .feature .wrap,
  .feature.image-right .wrap { grid-template-columns: 1fr; gap: 26px; }
  .feature.image-right .feature-media,
  .feature.image-right .feature-text { order: 0; }
  .feature-media img { width: 210px; }

  .project { grid-template-columns: 1fr; gap: 28px; }
  .project-poster img { max-width: 260px; }
  .project h1 { font-size: 34px; }

  .page-head h1, .contact h1 { font-size: 36px; }
  .field-row { grid-template-columns: 1fr; }
}
