/* Lightning Upholstery — first draft
   Palette: ink / forest night with antique brass
   Type: Cormorant Garamond + Outfit
*/

:root {
  --ink: #0b0e0c;
  --ink-soft: #111614;
  --panel: #161c18;
  --panel-lift: #1c2420;
  --line: rgba(196, 160, 86, 0.28);
  --line-strong: rgba(196, 160, 86, 0.5);
  --brass: #c4a056;
  --brass-soft: #d4bc7a;
  --brass-deep: #8a6e32;
  --ivory: #f3efe4;
  --ivory-dim: #c8c0b0;
  --ivory-mute: #9a9284;
  --forest: #1a2e24;
  --danger: #e8c4b0;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: "Outfit", "Gill Sans", "Trebuchet MS", sans-serif;
  --measure: 86rem;
  --banner-h: 0px;
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --header-h: 5.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

html.js .reveal-delay-1 { transition-delay: 0.1s; }
html.js .reveal-delay-2 { transition-delay: 0.2s; }
html.js .reveal-delay-3 { transition-delay: 0.3s; }
html.js .reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal,
  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ivory-dim);
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(26, 46, 36, 0.55), transparent 60%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brass-soft); text-decoration: none; }
a:hover { color: var(--ivory); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--brass);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 200;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip-link:focus { top: 0.75rem; color: var(--ink); }

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(11, 14, 12, 0.92), rgba(11, 14, 12, 0.55) 70%, transparent);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(11, 14, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ivory);
}

.brand:hover { color: var(--ivory); }

.brand__mark {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand__tag {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 400;
  margin-top: 0.18rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  position: relative;
  z-index: 110;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.25rem;
  height: 1px;
  background: var(--ivory);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; }
.nav-toggle span::before { transform: translate(-50%, calc(-50% - 6px)); }
.nav-toggle span::after { transform: translate(-50%, calc(-50% + 6px)); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translate(-50%, -50%) rotate(-45deg); }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
}

.site-nav a {
  color: var(--ivory-dim);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.site-nav a:hover { color: var(--ivory); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-nav a.nav-cta {
  color: var(--ink);
  background: var(--brass);
  padding: 0.7rem 1.15rem;
  letter-spacing: 0.18em;
}
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover { background: var(--brass-soft); color: var(--ink); }

/* ——— Shared ——— */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--measure));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 1.1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  line-height: 1.12;
  color: var(--ivory);
  letter-spacing: 0.01em;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--ivory-dim);
  max-width: 38rem;
}

.rule {
  display: block;
  width: 3.25rem;
  height: 1px;
  background: var(--brass);
  margin: 1.5rem 0 1.75rem;
  border: 0;
}

.section {
  padding: clamp(4.5rem, 10vw, 8.5rem) 0;
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, var(--ink-soft) 0%, var(--ink) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ——— Hero ——— */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 1.75rem) var(--gutter) 1.75rem;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: calc(var(--header-h) + 0.35rem) 1.25rem 1.35rem;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 1;
}

.hero__glow {
  position: absolute;
  width: 42rem;
  height: 42rem;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(196, 160, 86, 0.08), transparent 62%);
  pointer-events: none;
}

.hero__monogram {
  width: min(8.5rem, 28vw);
  height: auto;
  margin: 0 auto 2.25rem;
  opacity: 0.95;
  filter: drop-shadow(0 0 24px rgba(196, 160, 86, 0.18));
  animation: monogram-in 1.6s var(--ease) both;
}

@keyframes monogram-in {
  from { opacity: 0; transform: translateY(0.6rem) scale(0.96); }
  to { opacity: 0.95; transform: none; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8.4vw, 6.4rem);
  line-height: 0.95;
  color: var(--ivory);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fade-up 1.2s var(--ease) 0.2s both;
}

.hero__title span {
  display: block;
  font-weight: 300;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.72em;
  margin-top: 0.12em;
  color: var(--brass-soft);
}

.hero hr.rule {
  margin: 1.85rem auto 1.6rem;
  animation: fade-up 1.2s var(--ease) 0.35s both;
}

.hero__tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  color: var(--ivory);
  letter-spacing: 0.02em;
  animation: fade-up 1.2s var(--ease) 0.45s both;
}

.hero__sub {
  margin: 0.85rem auto 0;
  max-width: 28rem;
  font-size: 0.95rem;
  color: var(--ivory-mute);
  letter-spacing: 0.04em;
  animation: fade-up 1.2s var(--ease) 0.55s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.15rem;
  animation: fade-up 1.2s var(--ease) 0.7s both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--brass);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn--solid {
  background: var(--brass);
  color: var(--ink);
}
.btn--solid:hover { background: var(--brass-soft); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--brass-soft);
}
.btn--ghost:hover { background: rgba(196, 160, 86, 0.1); color: var(--ivory); }

.hero__scroll {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--ivory-mute);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 1.75rem;
  flex: 0 0 auto;
}

.hero__scroll-line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--brass), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ——— About ——— */
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.about__copy p + p { margin-top: 1.15rem; }

.about__aside {
  position: relative;
  min-height: 22rem;
  background:
    linear-gradient(165deg, rgba(196, 160, 86, 0.08), transparent 50%),
    var(--panel);
  border: 1px solid var(--line);
  padding: 3rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about__aside-mark {
  width: 4.5rem;
  opacity: 0.85;
}

.about__aside blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  color: var(--ivory);
  margin: 2rem 0 1.5rem;
}

.about__aside-note {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ——— Services ——— */
.services__intro {
  max-width: 36rem;
  margin-bottom: 3.25rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem 1.85rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}

.service:hover {
  border-color: var(--line-strong);
  background: var(--panel-lift);
  transform: translateY(-3px);
}

.service__index {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.service h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--ivory);
  letter-spacing: 0.01em;
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.service p {
  font-size: 0.98rem;
  color: var(--ivory-dim);
  flex: 1;
}

/* ——— Process ——— */
.process__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: step;
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.process__item {
  padding: 2rem 1.4rem 0 0;
  position: relative;
  border-right: 1px solid var(--line);
}
.process__item:last-child { border-right: 0; padding-right: 0; }
.process__item:not(:first-child) { padding-left: 1.4rem; }

.process__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.85rem;
  color: var(--brass);
  display: block;
  margin: -0.15rem 0 1.15rem;
}

.process__item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--ivory);
  margin-bottom: 0.7rem;
}

.process__item p {
  font-size: 0.95rem;
}

/* ——— Gallery ——— */
.gallery__intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.75rem;
}

.gallery__note {
  font-size: 0.9rem;
  color: var(--ivory-mute);
  max-width: 22rem;
  text-align: right;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.frame {
  aspect-ratio: 4 / 3.15;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(196, 160, 86, 0.05), transparent 45%),
    var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.25rem 1rem;
  position: relative;
  overflow: hidden;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 1px solid rgba(196, 160, 86, 0.14);
  pointer-events: none;
}

.frame img {
  width: 78%;
  height: 62%;
  object-fit: contain;
  opacity: 0.85;
}

.frame figcaption {
  margin-top: 0.85rem;
  text-align: center;
  z-index: 1;
}

.frame__title {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ivory);
}

.frame__hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ——— Contact ——— */
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact__details {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.contact__details > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.contact__details dt,
.contact__label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: 0.35rem;
}

.placeholder-note {
  color: var(--ivory-mute);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.contact__email {
  color: var(--ivory);
  font-size: 1.05rem;
  word-break: break-word;
}
.contact__email:hover { color: var(--brass-soft); }

.form {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.05rem;
}

.field label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-mute);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ivory);
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 0.8rem 0.9rem;
  width: 100%;
  appearance: none;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%),
    linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.field textarea { min-height: 8.5rem; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ivory-mute);
  opacity: 0.75;
  font-style: italic;
  font-family: var(--font-display);
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--line-strong);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.form__hint {
  font-size: 0.82rem;
  color: var(--ivory-mute);
  max-width: 22rem;
}

.form__status {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--brass-soft);
  min-height: 1.3em;
}

.form__status.is-error { color: var(--danger); }

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--gutter) 2.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.site-footer .brand__tag { display: none; }

.footer__copy {
  font-size: 0.75rem;
  color: var(--ivory-mute);
  letter-spacing: 0.06em;
}

.footer__centre {
  justify-self: center;
}

.footer__email {
  justify-self: end;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* ——— Responsive ——— */
@media (max-width: 980px) {
  .services__grid,
  .process__list,
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__list {
    border-top: 0;
    gap: 1.25rem;
  }

  .process__item,
  .process__item:not(:first-child),
  .process__item:last-child {
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 1.5rem 0 0.25rem;
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .gallery__intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery__note { text-align: left; }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 1.15rem;
  }

  .footer__email { justify-self: center; }
}

@media (max-width: 760px) {
  :root { --header-h: 4.4rem; }

  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(11, 14, 12, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1.75rem;
  }

  .site-nav a {
    font-size: 0.95rem;
    letter-spacing: 0.28em;
  }

  .brand__tag { display: none; }

  .form__row,
  .contact__details > div,
  .gallery__grid,
  .services__grid,
  .process__list {
    grid-template-columns: 1fr;
  }

  .about__aside { min-height: 0; padding: 2rem 1.5rem; }
}

@media (max-width: 420px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
