/* ============================================================
   Current Studio: lighting design studio showcase
   Palette: warm amber light against ink-blue architecture
   ============================================================ */

:root {
  --ink: #0e1b2e;          /* ink-blue */
  --ink-2: #16283f;
  --ink-3: #22344e;
  --amber: #f5a623;        /* warm amber */
  --amber-soft: #ffc966;
  --amber-faint: rgba(245, 166, 35, 0.14);
  --paper: #faf7f2;       /* warm off-white */
  --paper-2: #f1ece2;
  --text: #1a2336;
  --text-soft: #4a566a;
  --line: #cfd5df;
  --focus: #1f6fff;
  --maxw: 1200px;
  --header-h: 72px;
  --ribbon-h: 34px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  /* keep the fixed header clear of anchored sections */
  scroll-padding-top: calc(var(--header-h) + var(--ribbon-h) + 18px);
}

h1, h2, h3 {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-weight: 700;
}

p { orphans: 3; widows: 3; }

/* ---------- utility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 6px 6px;
  z-index: 200;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

/* ---------- fictional ribbon (persistent) ---------- */

.fictional-ribbon {
  position: sticky;
  top: 0;
  z-index: 120;
  height: var(--ribbon-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 12px;
  background: var(--ink);
  color: var(--amber-soft);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: var(--ribbon-h);
  z-index: 110;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
}
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.mark-glow { fill: var(--amber-faint); stroke: none; }
.mark-core { fill: var(--amber); stroke: none; }
.mark-stem { stroke: var(--ink); stroke-width: 2; }
.mark-base { stroke: var(--ink); stroke-width: 2; }

/* nav (desktop) */
.nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--amber); }
.nav-cta {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 18px !important;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); }

/* menu toggle (mobile only, hidden on desktop) */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle-bar {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar { background: transparent; box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); }

/* ---------- layout ---------- */

main { background: var(--paper); }
section { padding: clamp(56px, 8vw, 108px) 24px; }

.hero { background: var(--ink); color: var(--paper); padding: 64px 24px; }
.services, .process { background: var(--paper); }
.work { background: var(--paper-2); }
.faq { background: var(--paper); }
.brief { background: var(--ink-2); color: var(--paper); }

.section-head {
  max-width: var(--maxw);
  margin: 0 auto 44px;
}
.section-index {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--amber);
  margin: 0 0 10px;
}
.section-title {
  font-size: clamp(34px, 5.4vw, 60px);
  margin: 0 0 14px;
}
.section-lede {
  font-size: 18px;
  max-width: 52ch;
  color: var(--text-soft);
  margin: 0;
}
.work .section-lede, .brief .section-lede { color: rgba(250,247,242,0.72); }

/* ---------- hero ---------- */

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* copy and art are the only two grid children; the copy column
     stacks its own elements inside */
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}

.hero-title {
  font-size: clamp(46px, 4.2vw, 78px);
  color: var(--paper);
  margin: 0 0 18px;
}

.hero-lede {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.5;
  max-width: 46ch;
  margin: 0 0 16px;
  color: rgba(250,247,242,0.86);
}

.hero-sub {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: rgba(250,247,242,0.72);
  max-width: 44ch;
  margin: 0 0 24px;
  border-left: 3px solid var(--amber);
  padding-left: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

.hero-study {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-3);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.hero-study svg {
  display: block;
  width: 100%;
  height: auto;
}
/* the hero study draws directly on the dark section, not the card fill */
.hero-study .study-bg { fill: transparent; }

/* abstract study SVG fills (dark room) */
.study-bg { fill: var(--ink-3); }
.study-ceil { stroke: var(--amber-soft); stroke-width: 2; }
.study-beam {
  fill: var(--amber-faint);
}
.study-pool {
  fill: var(--amber);
  opacity: 0.22;
}
.study-fixture { fill: var(--amber-soft); }
.study-hline { stroke: rgba(255,247,242,0.35); stroke-width: 2; }
.study-disc { fill: var(--amber); opacity: 0.16; }
.study-disc-soft { fill: var(--amber); opacity: 0.10; }
.study-desk { fill: var(--ink); }
.study-stem { stroke: var(--ink); stroke-width: 3; }
.study-bulb { fill: var(--amber); opacity: 0.30; }
.study-bulb-core { fill: var(--amber); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--amber);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-soft); }
.btn-ghost { background: transparent; color: var(--paper); }
.btn-ghost:hover { background: rgba(245,166,35,0.14); }

/* ---------- services ---------- */

.service-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
}
.service {
  padding: 34px 28px 40px 0;
  border-right: 1px solid var(--line);
}
.service:last-child { border-right: 0; }
.service-number {
  display: block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 26px;
}
.service-title {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 16px;
}
.service-copy {
  margin: 0;
  font-size: 17px;
  color: var(--text-soft);
}

/* ---------- projects ---------- */

.project-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project {
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 var(--line);
}
.project-study { margin: 0; }
.project-study svg { display: block; width: 100%; height: 190px; }
.project-number {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--amber);
  margin: 22px 24px 0;
}
.project-title {
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 12px 24px 0;
}
.project-blurb {
  font-size: 16px;
  color: var(--text-soft);
  margin: 12px 24px 22px;
  flex: 1;
}
.project-open {
  align-self: flex-start;
  margin: 0 24px 26px;
  background: none;
  border: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--amber);
  cursor: pointer;
  padding: 4px 2px;
}
.project-open:hover { text-decoration-color: var(--ink); }

/* ---------- process ---------- */

.process-steps {
  max-width: var(--maxw);
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
}
.process-step {
  padding: 30px 26px 0 0;
  border-right: 1px solid var(--line);
}
.process-step:last-child { border-right: 0; }
.step-number {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}
.step-title {
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 0 0 14px;
}
.step-copy {
  font-size: 17px;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.faq-q {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--amber);
  line-height: 1;
  transition: transform .18s ease;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 22px 22px;
  margin: 0;
  font-size: 17px;
  color: var(--text-soft);
}

/* ---------- brief form ---------- */

.brief-form {
  max-width: 680px;
  margin: 0 auto;
}
.form-note {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: rgba(250,247,242,0.7);
  background: rgba(245,166,35,0.08);
  border-left: 3px solid var(--amber);
  padding: 14px 16px;
  border-radius: 6px;
  margin: 0 0 28px;
}
.form-note:focus { outline: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { margin-bottom: 20px; }
.field-label {
  display: block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--paper);
}
.field-input {
  width: 100%;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--ink-3);
  background: var(--paper);
  color: var(--text);
}
.field-textarea { resize: vertical; min-height: 130px; }
.field-input::placeholder { color: #8a93a6; }
.field-input:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--focus);
}
.field-error {
  margin: 8px 0 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #ff8f7a;
}
.form-success {
  margin: 22px 0 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: var(--amber-soft);
  background: rgba(245,166,35,0.10);
  border-radius: 8px;
  padding: 14px 16px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(250,247,242,0.7);
  padding: 56px 24px;
}
.footer-brand {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 12px;
}
.footer-note, .footer-copy {
  max-width: 60ch;
  font-size: 15px;
  margin: 0 0 10px;
}

/* ---------- dialogs ---------- */

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 16, 28, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dialog-backdrop[hidden] { display: none; }

.dialog {
  background: var(--paper);
  color: var(--text);
  max-width: 620px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
}
.dialog-head {
  position: sticky;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dialog-index {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--amber);
  margin: 0;
  flex: 0 0 auto;
}
.dialog-title {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0;
  flex: 1;
}
.dialog-close {
  background: none;
  border: 2px solid var(--amber);
  border-radius: 999px;
  color: var(--paper);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  flex: 0 0 auto;
}
.dialog-close:hover { background: var(--amber); color: var(--ink); }
.dialog-body { padding: 24px 26px 30px; }
.dialog-copy { font-size: 17px; margin: 0 0 18px; }
.dialog-spec {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.dialog-spec li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.spec-label {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  flex: 0 0 auto;
}

/* ---------- focus visibility (keyboard) ---------- */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.field-input:focus-visible,
.menu-toggle:focus-visible,
.project-open:focus-visible,
.dialog-close:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- mobile menu behavior ---------- */

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0,0,0,0.3);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .site-nav a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  .nav-cta {
    border: 0;
    border-radius: 0;
    text-align: center;
    margin: 8px 0 0;
  }
}

/* ---------- responsive: collapse to one column ---------- */

@media (max-width: 860px) {
  .hero { padding: 44px 18px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { order: 2; }
  .hero-study { order: -1; }
  .hero-title { font-size: clamp(40px, 13vw, 68px); }

  .service-grid { grid-template-columns: 1fr; }
  .service {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
  }
  .service:last-child { border-bottom: 0; }

  .project-grid { grid-template-columns: 1fr; }

  .process-steps { grid-template-columns: 1fr; }
  .process-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
  }
  .process-step:last-child { border-bottom: 0; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .header-inner { flex-wrap: wrap; gap: 10px; }
}

/* ---------- 390px guard: ensure nothing overflows ---------- */

@media (max-width: 480px) {
  body { font-size: 16px; }
  section { padding: 48px 18px; }
  .hero { padding: 44px 18px; }
  .header-inner { padding: 10px 18px; }
  .hero-title { font-size: 40px; }
  .dialog-head { flex-wrap: wrap; gap: 10px; }
  .dialog-title { flex: 1 1 100%; order: 3; }
  .dialog-close { width: 100%; margin: 0; padding: 10px; text-align: center; }
  .dialog-spec li { flex-direction: column; gap: 4px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
      transition-duration: 0.001ms !important;
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
    }
}