/* Conundrum Collective — site styles */
:root {
  --charcoal: #121417;
  --panel: #1A1D21;
  --slate: #1E2126;
  --line: #262A31;
  --line-2: #3A3F47;
  --snow: #F5F5F2;
  --text-2: #D5D8DC;
  --muted: #B9BCC2;
  --amber: #F2A23A;
  --amber-hover: #F7BD6B;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--snow);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--amber); }
a:hover { color: var(--amber-hover); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--charcoal); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type */
.display { font-family: var(--display); font-weight: 800; line-height: 0.9; letter-spacing: 0.01em; margin: 0; text-transform: uppercase; }
.h1 { font-size: clamp(56px, 9vw, 140px); line-height: 0.88; }
.h2 { font-size: clamp(40px, 5vw, 64px); }
.h3 { font-size: clamp(32px, 3.6vw, 52px); line-height: 0.95; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.2em; color: var(--amber); text-transform: uppercase; }
.lead { font-size: 20px; color: var(--text-2); max-width: 560px; margin: 0; }
.muted { color: var(--muted); }
p { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 4px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.btn-amber { background: var(--amber); color: var(--charcoal); }
.btn-amber:hover { background: var(--amber-hover); color: var(--charcoal); }
.btn-ghost { border-color: var(--snow); color: var(--snow); background: transparent; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-dark { background: var(--charcoal); color: var(--snow); }
.btn-dark:hover { background: #000; color: var(--snow); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Header + dropdown menu */
.site-header { position: relative; z-index: 50; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--snow); }
.brand:hover { color: var(--snow); }
.brand svg { width: 56px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.1em; }
.brand-name small { font-family: var(--display); font-weight: 600; font-size: 10px; letter-spacing: 0.6em; color: var(--amber); margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn { min-height: 46px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 4px; background: transparent; color: var(--snow); font: inherit; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.menu-btn[aria-expanded="true"] { border-color: var(--amber); background: var(--slate); }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-panel { position: absolute; right: 28px; top: calc(100% - 6px); width: 380px; max-width: calc(100vw - 32px); background: var(--panel); border: 1px solid #2A2E35; border-top: 3px solid var(--amber); border-radius: 0 0 6px 6px; box-shadow: 0 24px 48px rgba(0,0,0,0.45); }
.menu-panel[hidden] { display: none; }
.menu-panel a.item { display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-panel a.item b { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.03em; color: var(--snow); text-transform: uppercase; }
.menu-panel a.item span { font-size: 14px; color: var(--muted); }
.menu-panel a.item:hover b, .menu-panel a.item[aria-current="page"] b { color: var(--amber); }
.menu-panel .foot { padding: 16px 20px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.scrim { position: fixed; inset: 0; background: rgba(18,20,23,0.55); z-index: 40; }
.scrim[hidden] { display: none; }

/* Hero with topo */
.hero { position: relative; overflow: hidden; }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; padding-top: 88px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 28px; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ridge { position: relative; display: block; width: 100%; height: 200px; margin-top: 32px; }
.hero.page-hero .hero-inner { padding-top: 64px; }
.hero.page-hero .ridge { height: 120px; }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: var(--panel); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

/* Services (01 / 02) */
.services { display: flex; gap: 72px; flex-wrap: wrap; }
.service { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.num { font-family: var(--display); font-weight: 800; font-size: 88px; line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px var(--amber); }
.tags { font-size: 15px; color: var(--muted); }

/* Photo placeholders / photos */
.photo { background: #23272D; color: #9EA3AB; font-size: 15px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; min-height: 360px; object-fit: cover; width: 100%; }
.photo.warm { background: #2A2622; }
.strip { display: flex; flex-wrap: wrap; }
.strip > * { flex: 1 1 360px; min-height: 420px; }

/* Branded panels (stand-ins until real photos) */
.panel { position: relative; overflow: hidden; background: #1E2126; min-height: 420px; display: flex; align-items: flex-end; border-right: 1px solid var(--line); }
.panel.warm { background: #24211D; }
.panel .ptopo { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel-text { position: relative; padding: 36px; display: flex; flex-direction: column; gap: 8px; }
.panel-word { font-size: clamp(48px, 5vw, 72px); color: var(--snow); }
.panel-sub { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }

.wide-panel { position: relative; overflow: hidden; background: #1E2126; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wide-panel .ptopo { position: absolute; inset: 0; width: 100%; height: 100%; }
.wide-text { position: relative; padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.wide-line { font-size: clamp(48px, 7.5vw, 112px); line-height: 0.9; }
@media (max-width: 640px) { .wide-text { padding-top: 64px; padding-bottom: 64px; } }

/* Story */
.story { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: center; }
.story .mark { display: flex; justify-content: center; }
.story .mark svg { width: min(260px, 60vw); height: auto; }
.portrait { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border-bottom: 3px solid var(--amber); }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* Feature list (icons) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 32px; }
.feature { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 20px; }
.feature h3 { margin: 0; font-size: 19px; font-weight: 600; }
.feature p { color: var(--muted); font-size: 16px; }
.feature svg { width: 30px; height: 30px; }

/* Steps */
.steps { display: flex; gap: 32px; flex-wrap: wrap; }
.step { flex: 1 1 220px; border-top: 2px solid var(--line-2); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.step:first-child { border-top-color: var(--amber); }
.step .n { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--amber); line-height: 1; }
.step b { font-size: 19px; }
.step p { color: var(--muted); font-size: 16px; }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.package { border-top: 3px solid var(--line-2); padding: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.package.featured { border-top-color: var(--amber); }
.package .price { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--amber); line-height: 1; }
.package ul { margin: 0; padding-left: 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }

/* Quote */
.quote { max-width: 960px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.quote blockquote { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; text-transform: uppercase; }

/* Work grid */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 4px; border: 1px solid var(--line-2); background: transparent; color: var(--snow); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--charcoal); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px 20px; }
.work-item { display: flex; flex-direction: column; gap: 10px; }
.work-item[hidden] { display: none; }
.work-item .photo { min-height: 240px; }
.work-item b { font-size: 18px; }
.work-item span { font-size: 15px; color: var(--muted); }

/* CTA band */
.cta { background: var(--amber); color: var(--charcoal); }
.cta .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { min-height: 48px; padding: 12px 14px; background: var(--slate); border: 1px solid var(--line-2); border-radius: 4px; color: var(--snow); font: inherit; font-size: 16px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); outline: none; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status.ok { color: #8FD18F; }
.form-status.err { color: #FF9A8A; }
.contact-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 64px; align-items: start; }
.contact-card { display: flex; flex-direction: column; gap: 20px; }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-size: 13px; letter-spacing: 0.14em; color: var(--amber); font-weight: 600; text-transform: uppercase; }
.contact-card dd { margin: 0; font-size: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--amber); }
.legal { font-size: 13px; color: #8A8E96; }

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .brand svg { width: 38px; }
  .brand-name b { font-size: 19px; }
  .brand-name small { font-size: 9px; }
  .header-actions .btn-amber { display: none; }
  .menu-btn .label { display: none; }
  .menu-btn { width: 48px; padding: 0; justify-content: center; }
  .menu-panel { right: 0; left: 0; width: auto; max-width: none; top: 100%; border-radius: 0; }
  .menu-panel a.item b { font-size: 28px; }
  .menu-panel a.item span { display: none; }
  .hero-inner { padding-top: 40px; gap: 20px; }
  .lead { font-size: 17px; }
  .btn-row .btn { flex: 1 1 100%; }
  .ridge { height: 110px; }
  .section { padding: 64px 0; }
  .services { gap: 56px; }
  .num { font-size: 64px; }
  .strip { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; }
  .strip > * { flex: 0 0 82%; min-height: 260px; scroll-snap-align: start; }
  .cta .wrap { padding-top: 48px; padding-bottom: 48px; }
  .cta .btn { flex: 1 1 100%; }
}

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

/* ---------- Subtle motion ---------- */
.site-header { position: sticky; top: 0; transition: background-color .3s ease, box-shadow .3s ease; }
.site-header.scrolled { background: rgba(18,20,23,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }

.btn { transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.link-arrow::after { display: inline-block; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
.menu-panel a.item b { transition: color .15s ease; }

/* mountain layers rise in, back to front */
.ridge polygon { animation: ridge-rise 1.3s cubic-bezier(.2,.7,.2,1) both; }
.ridge .r-1 { animation-delay: .1s; }
.ridge .r-2 { animation-delay: .3s; }
.ridge .r-3 { animation-delay: .5s; }
@keyframes ridge-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* topo lines drift slowly */
.topo, .ptopo { animation: topo-drift 28s ease-in-out infinite alternate; transform-origin: center; }
@keyframes topo-drift { from { transform: scale(1.06) translateX(-1.5%); } to { transform: scale(1.06) translateX(1.5%); } }

/* outlined numbers fill on hover */
.service .num { transition: color .3s ease; }
.service:hover .num { color: var(--amber); }

/* fade-up on scroll (added by JS so content shows without it) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ridge polygon, .topo, .ptopo { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .link-arrow:hover::after { transform: none; }
}
