/* ==========================================================================
   Archetype Brand Agency — stylesheet
   Palette intentionally warm-neutral (off-white / near-black) rather than
   stark #fff/#000, to sit closer to the uploaded logo and read editorial
   rather than clinical.
   ========================================================================== */

:root {
  --bg: #f7f5f0;
  --bg-inverse: #16140f;
  --fg: #16140f;
  --fg-inverse: #f7f5f0;
  --fg-soft: #6f6b62;
  --line: rgba(22, 20, 15, 0.14);
  --line-inverse: rgba(247, 245, 240, 0.18);

  --font-display: 'Arpona', 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Alex Brush', cursive;

  --nav-h: 84px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 720px) {
  .container { padding: 0 24px; }
}

/* Custom cursor -------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--fg);
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease);
  mix-blend-mode: difference;
}
.cursor.is-hover { width: 44px; height: 44px; background: var(--fg); }
@media (hover: none) { .cursor { display: none; } }

/* Intro overlay ---------------------------------------------------------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .9s var(--ease), opacity .8s var(--ease);
}
.intro img { width: 260px; color: var(--fg); }
.intro.is-done {
  opacity: 0;
  transform: translateY(-4%);
  pointer-events: none;
}

/* Nav ------------------------------------------------------------------------
   Anagrama-style: no visible link list in the bar itself. A hamburger button
   (always on top, animates into an X) opens a full-screen black takeover
   menu. The logo stays visually centered via a flex spacer matching the
   toggle's width.
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(247,245,240,.92), rgba(247,245,240,0));
  backdrop-filter: blur(2px);
}
.nav-bar {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo-link { transition: opacity .3s; }
.nav-logo { width: 148px; }
.nav-spacer { width: 28px; }

.nav-toggle {
  width: 28px; height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--fg);
  transition: transform .35s var(--ease), background .3s, opacity .3s;
}

body.menu-open .nav-logo-link { opacity: 0; pointer-events: none; }
body.menu-open .nav-toggle span { background: var(--fg-inverse); }
body.menu-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
body.menu-open { overflow: hidden; }

@media (max-width: 720px) {
  .nav-logo { width: 118px; }
}

/* Full-screen menu overlay ---------------------------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  transform: translateY(-100%);
  transition: transform .6s var(--ease);
}
.menu-overlay.is-open { transform: translateY(0); }
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-links a {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1.25;
  color: var(--fg-inverse);
  transition: opacity .3s, padding-left .3s var(--ease);
}
.menu-links a:hover { opacity: .55; padding-left: 14px; }
.menu-links a.is-active { text-decoration: underline; text-underline-offset: 10px; }
.menu-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line-inverse);
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, .6);
}
.menu-footer a:hover { color: var(--fg-inverse); }

/* Buttons / links ----------------------------------------------------------- */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 6px;
  transition: opacity .3s;
}
.btn-line:hover { opacity: .55; }

/* Hero ----------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  padding-bottom: 72px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  max-width: 18ch;
}
.hero-sub {
  margin-top: 28px;
  max-width: 46ch;
  font-size: 18px;
  color: var(--fg-soft);
}
.hero-scroll {
  position: absolute;
  right: 48px;
  bottom: 40px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: var(--fg-soft);
}
@media (max-width: 720px) { .hero-scroll { display: none; } }

section { position: relative; }

/* Statement / intro copy ------------------------------------------------------ */
.statement {
  padding: 160px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.statement .eyebrow {
  grid-column: span 3;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.statement p {
  grid-column: 4 / span 8;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.35;
}
@media (max-width: 900px) {
  .statement { grid-template-columns: 1fr; padding: 96px 0; }
  .statement .eyebrow { grid-column: 1; margin-bottom: 24px; }
  .statement p { grid-column: 1; }
}

/* Reveal on scroll ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Home page brand grid --------------------------------------------------------
   Compact columns so many client brands can sit side by side (unlike the
   full-bleed single-column feed used on /work and case-study pages).
   ========================================================================== */
.brand-grid {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 28px;
}
.brand-tile { display: block; }
.brand-tile-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}
.brand-tile-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.brand-tile:hover .brand-tile-image img { transform: scale(1.05); }
.brand-tile-name {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.brand-tile-meta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--fg-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
}
@media (max-width: 480px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* Work feed ------------------------------------------------------------------
   Anagrama-style: one full-bleed image per project, stacked in a single
   column, each followed by a plain bold-caps caption. No grid, no cards.
   ========================================================================== */
.work-feed { border-top: 1px solid var(--line); }
.feed-item { display: block; cursor: pointer; }
.feed-item + .feed-item { margin-top: 56px; }
.feed-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--fg);
}
.feed-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.feed-item:hover .feed-image img { transform: scale(1.04); }
.feed-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.feed-name {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  transition: transform .35s var(--ease);
}
.feed-item:hover .feed-name { transform: translateX(10px); }
.feed-meta {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

/* Lightbox ------------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(22,20,15,.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
  padding: 48px;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox-inner { max-width: 1000px; width: 100%; color: var(--fg-inverse); }
.lightbox-images {
  display: grid;
  gap: 16px;
  max-height: 70vh;
  overflow-y: auto;
}
.lightbox-images img { width: 100%; }
.lightbox-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-inverse);
}
.lightbox-meta h3 {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.lightbox-close {
  position: absolute;
  top: 40px; right: 48px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Clients marquee ------------------------------------------------------------ */
.marquee {
  border-top: 1px solid var(--line);
  padding: 56px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 96px;
  width: max-content;
  animation: scroll 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 1.3rem;
  color: var(--fg-soft);
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.marquee-logo-frame {
  width: 168px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marquee-track .marquee-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  display: block;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Footer ---------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 128px 0 56px;
}
.footer-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  max-width: 24ch;
  margin: 0 0 72px clamp(24px, 8vw, 96px);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-soft);
}
.footer-grid > div { flex: 0 0 auto; }
.footer-grid h4 {
  color: var(--fg);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-grid a { display: block; margin-bottom: 8px; transition: color .3s; }
.footer-grid a:hover { color: var(--fg); }
@media (max-width: 720px) {
  .footer-grid { gap: 32px 40px; row-gap: 32px; }
}

/* Studio / about page ---------------------------------------------------- */
.page-hero {
  padding: calc(var(--nav-h) + 96px) 0 96px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 16ch;
}
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.value h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.value p { color: var(--fg-soft); }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

/* Contact page ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 96px 0;
}
.contact-grid .big-link {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  display: inline-block;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--fg);
}
.form-field {
  margin-bottom: 28px;
}
.form-field label {
  display: block;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 10px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font: inherit;
  color: var(--fg);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--fg); }
.form-note { margin-top: 8px; font-size: 12px; color: var(--fg-soft); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Case study: shared -----------------------------------------------------
   Chrome (nav, section labels, back link) stays in Archetype's own voice;
   the client's own brand colors/type only ever appear inside content
   blocks (palette swatches, logo art, mockups) — never bleed into chrome.
   ========================================================================== */
.case-hero {
  position: relative;
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 48px) 0 48px;
  overflow: hidden;
}
.case-hero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.case-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,9,7,.75), rgba(10,9,7,.45));
  z-index: -1;
}
.case-hero .container {
  color: var(--fg-inverse);
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.case-hero .case-cat {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 16px;
}
.case-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
}
.case-hero .case-tagline {
  margin-top: 18px;
  font-size: 16px;
  max-width: 42ch;
  opacity: .9;
}

.case-back {
  display: block;
  padding: 28px 0;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.case-back:hover { color: var(--fg); }

.case-section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.case-section .eyebrow {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 16px;
  display: block;
}
.case-section .case-lede {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  max-width: 46ch;
}

/* Logo lockups -------------------------------------------------------------- */
.lockup-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.lockup-row img { width: 100%; display: block; }
@media (max-width: 720px) { .lockup-row { grid-template-columns: 1fr; } }

/* Color palette --------------------------------------------------------- */
.palette-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.swatch { text-align: left; }
.swatch .chip {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}
.swatch .swatch-name { font-size: 13px; font-weight: 600; }
.swatch .swatch-hex { font-size: 12px; color: var(--fg-soft); text-transform: uppercase; }
@media (max-width: 900px) { .palette-row { grid-template-columns: repeat(3, 1fr); row-gap: 32px; } }
@media (max-width: 480px) { .palette-row { grid-template-columns: repeat(2, 1fr); } }

/* Typography showcase -------------------------------------------------- */
.type-showcase {
  margin-top: 40px;
  padding: 44px 32px;
  background: var(--bg-inverse);
  color: var(--fg-inverse);
}
.type-showcase .type-sample {
  font-family: 'Fredoka', var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
}
.type-showcase .type-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(247, 245, 240, .65);
  max-width: 46ch;
}

/* Character system -------------------------------------------------------- */
.character-strip {
  margin-top: 48px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
}
.character-strip img { width: 100%; display: block; }

/* Mockup gallery ------------------------------------------------------------ */
.mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.mockup-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
@media (max-width: 720px) { .mockup-grid { grid-template-columns: 1fr; } }

/* Instagram frame ------------------------------------------------------- */
.ig-frame {
  max-width: 420px;
  margin-top: 48px;
  border: 1px solid var(--line);
  background: #fff;
  color: #16140f;
}
.ig-frame-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.ig-frame-header img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.ig-frame-header .ig-handle { font-size: 13px; font-weight: 600; }
.ig-frame-header .ig-sub { font-size: 11px; color: var(--fg-soft); }
.ig-frame img.ig-grid-img { width: 100%; display: block; }

.case-footer-cta {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.case-footer-cta p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  max-width: 26ch;
  margin-bottom: 24px;
}
