/* Johnson Sr Design: site styles */

:root {
  --night:    #0E0E0E;  /* grounds, site background */
  --bone:     #EDE8DF;  /* text and logo on Night; ground for light sections */
  --concrete: #8A847B;  /* small labels, dividers, icons on Night */
  --ember:    #E8552A;  /* ONE hit per screen: the inquiry button */

  --font: "Mona Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 20px;
  --max: 1200px;
  --header-h: 64px;
}

@media (min-width: 1024px) {
  :root { --gutter: 48px; --header-h: 80px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--font);
  font-stretch: 100%;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) {
  body { font-size: 18px; line-height: 29px; }
}

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

a { color: inherit; }

p { margin: 0 0 16px; }

:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}
.on-bone :focus-visible { outline-color: var(--night); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--bone);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ---------- Type ---------- */

.display, h1, h2 {
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: 36px; line-height: 40px; }
h2 { font-size: 26px; line-height: 30px; }

@media (min-width: 1024px) {
  h1 { font-size: 64px; line-height: 68px; }
  h2 { font-size: 40px; line-height: 44px; }
}

.kicker {
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--concrete);
  margin: 0 0 16px;
}
@media (min-width: 1024px) { .kicker { font-size: 13px; } }

.on-bone .kicker { color: rgba(14, 14, 14, 0.7); }

h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  margin: 0 0 8px;
}
@media (min-width: 1024px) { h3 { font-size: 20px; line-height: 28px; } }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-thickness: 2px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 0;
  font-family: var(--font);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
@media (min-width: 1024px) { .btn { font-size: 15px; } }

.btn-ember {
  background: var(--ember);
  color: var(--night);
  border-color: var(--ember);
}
.btn-ember:hover { background: #F06A40; border-color: #F06A40; }

.btn-outline,
.btn-ember.is-quiet {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone);
}
.btn-outline:hover,
.btn-ember.is-quiet:hover { background: var(--bone); color: var(--night); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--night);
  border-bottom: 1px solid rgba(138, 132, 123, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--bone);
  text-decoration: none;
}
.logo svg { display: block; height: auto; }
.logo .logo-primary { display: none; width: 176px; }
.logo .logo-mark { width: 132px; }

@media (min-width: 1024px) {
  .logo .logo-primary { display: block; }
  .logo .logo-mark { display: none; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 0 12px;
  margin-right: -12px;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-family: var(--font);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav { display: none; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--bone);
  text-decoration: none;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Phone menu panel */
.site-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--night);
  border-bottom: 1px solid rgba(138, 132, 123, 0.25);
  padding: 8px var(--gutter) 24px;
}
.site-nav.is-open a:not(.btn) { font-size: 13px; border-bottom: 1px solid rgba(138, 132, 123, 0.25); }
.site-nav.is-open .nav-cta { margin-top: 24px; }
.site-nav.is-open .nav-cta .btn { width: 100%; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav,
  .site-nav.is-open {
    display: flex;
    position: static;
    padding: 0;
    border: 0;
    align-items: center;
    gap: 40px;
  }
  .site-nav ul { display: flex; gap: 32px; }
  .site-nav a:not(.btn),
  .site-nav.is-open a:not(.btn) { font-size: 13px; border: 0; }
  .site-nav.is-open .nav-cta { margin-top: 0; }
  .site-nav .nav-cta .btn { width: auto; }
}

/* Contact page: the form's submit is the Ember hit */
.page-contact .nav-cta { display: none !important; }

/* ---------- Sections ---------- */

main { display: block; }

.section { padding: 64px 0; }
@media (min-width: 1024px) { .section { padding: 112px 0; } }

.on-bone {
  background: var(--bone);
  color: var(--night);
}

.page-head { padding: 48px 0 32px; }
@media (min-width: 1024px) { .page-head { padding: 96px 0 48px; } }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 32px;
}

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

.hero { padding: 24px 0 64px; }

.hero-grid {
  display: grid;
  gap: 32px;
}

.hero-figure {
  margin: 0 calc(var(--gutter) * -1);
  aspect-ratio: 3 / 4;
  background: var(--night);
}
.hero-figure img { width: 100%; height: 100%; object-fit: contain; }

.hero-copy .btn { margin-top: 32px; }

@media (min-width: 640px) {
  .hero-figure { margin: 0; }
}

@media (min-width: 1024px) {
  .hero { padding: 48px 0 112px; }
  .hero-grid {
    grid-template-columns: 6fr 5fr;
    align-items: center;
    gap: 64px;
  }
  .hero-copy { order: -1; }
}

/* ---------- Work grid ---------- */

.work-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 24px;
}
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); gap: 56px 32px; } }

.piece { margin: 0; }

.piece-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.frame {
  aspect-ratio: 4 / 5;
  background: #161616;
  overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: contain; }

.piece-open:hover .frame img { opacity: 0.88; }

.label { margin-top: 16px; }
.label-title {
  display: block;
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
  color: var(--bone);
}
@media (min-width: 1024px) {
  .label-title { font-size: 18px; line-height: 26px; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--night);
  color: var(--bone);
}
.lightbox::backdrop { background: rgba(14, 14, 14, 0.96); }
.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lb-bar {
  display: flex;
  justify-content: flex-end;
  padding: 8px var(--gutter);
}

.lb-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
}
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter) 24px;
}
.lb-foot .label { margin: 0; }

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  background: transparent;
  border: 1.5px solid rgba(237, 232, 223, 0.4);
  color: var(--bone);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--bone); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 40px;
  counter-reset: step;
}
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

.steps li { border-top: 1.5px solid var(--night); padding-top: 24px; }

.step-num {
  display: block;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 900;
  font-size: 40px;
  line-height: 44px;
  margin-bottom: 16px;
}

/* ---------- Packages ---------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.card {
  border: 1px solid rgba(138, 132, 123, 0.5);
  padding: 24px;
}
@media (min-width: 1024px) { .card { padding: 32px; } }

.card h3 {
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 20px;
  line-height: 24px;
  margin-bottom: 16px;
}
.card p { margin: 0; }

.notes {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid rgba(138, 132, 123, 0.5);
}
.notes li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(138, 132, 123, 0.5);
}

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

.faq { max-width: 800px; }

.faq details { border-bottom: 1.5px solid var(--night); }
.faq details:first-of-type { border-top: 1.5px solid var(--night); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 24px;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 16px; color: rgba(14, 14, 14, 0.85); }

/* ---------- Prose ---------- */

.prose { max-width: 720px; }

/* ---------- CTA block ---------- */

.cta-block {
  border-top: 1px solid rgba(138, 132, 123, 0.25);
  text-align: left;
}
.cta-block h2 { margin-bottom: 32px; }

/* ---------- Form ---------- */

.form { max-width: 640px; }

.field { margin-bottom: 24px; }

.field label,
.field .label-text {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.req { color: var(--concrete); font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: #161616;
  color: var(--bone);
  border: 1.5px solid rgba(138, 132, 123, 0.6);
  border-radius: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23EDE8DF' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--concrete); opacity: 1; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--bone); }

.field [aria-invalid="true"] { border-color: var(--bone); border-width: 2px; }

.error-msg {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 22px;
  color: var(--bone);
}
.error-msg:empty { display: none; }
.error-msg::before { content: "\2014\00a0"; }

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  cursor: pointer;
}
.check input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--bone);
  flex: none;
}

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions { margin-top: 32px; }
.form-actions .btn { width: 100%; }
@media (min-width: 640px) { .form-actions .btn { width: auto; min-width: 240px; } }

.form-note { margin-top: 16px; color: var(--concrete); font-size: 15px; line-height: 22px; }

.form-status { margin-top: 24px; }
.form-status:empty { display: none; }
.form-status .error-box {
  border: 1.5px solid var(--bone);
  padding: 16px;
}

.form-success h2 { margin-bottom: 24px; }
.form-success .links { display: flex; flex-wrap: wrap; gap: 0 32px; }

.alt-route {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(138, 132, 123, 0.25);
}

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

.site-footer {
  border-top: 1px solid rgba(138, 132, 123, 0.25);
  padding: 32px 0 40px;
  color: var(--concrete);
  font-size: 15px;
  line-height: 22px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 1024px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--concrete);
  text-decoration: none;
}
.footer-links a:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 4px; }

.copyright { margin: 0; }

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
