/* Chasing Light Studio — shared styles */

:root {
  --paper: #F3EFE8;
  --ink: #1C1B19;
  --muted: #4A463F;
  --line: #DAD2C4;
  --rule: #B9AE9B;
  --band: #E9E2D5;
  --field: #F8F5EF;
  --accent: #7A5C34;
  --accent-hover: #6E522E;
  --footer-text: #E9E3D8;
  --footer-muted: #A39B8D;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 4.45vw, 64px);
  --section: clamp(56px, 8.3vw, 120px);
  --gap: clamp(12px, 1.67vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
}
.skip:focus { left: 8px; color: var(--paper); }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header { position: relative; border-bottom: 1px solid var(--line); }
.bar {
  max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter);
  min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-family: var(--serif); font-size: clamp(1.375rem, 1.95vw, 1.75rem);
  letter-spacing: 0.01em; text-decoration: none; line-height: 1.1;
}
.site-nav {
  display: flex; gap: clamp(24px, 3vw, 44px);
  font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.site-nav a { text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-toggle {
  display: none; min-height: 44px; padding: 0 4px; background: none; border: 0;
  font: inherit; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  cursor: pointer;
}
@media (min-width: 1000px) { .bar { min-height: 88px; } }
@media (max-width: 999px) {
  .no-js .site-nav { flex-wrap: wrap; gap: 4px 20px; padding: 8px 0; }
  .no-js .bar { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 10;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 12px;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .js .site-nav a:last-child { border-bottom: 0; }
  .js .site-nav a[aria-current="page"] { color: var(--accent); }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  margin: 0; font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.display {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.875rem, 5.3vw, 4.75rem); line-height: 0.98; letter-spacing: -0.01em;
}
.h2 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.05;
}
.lead { margin: 0; font-size: clamp(1rem, 1.32vw, 1.1875rem); line-height: 1.65; color: var(--muted); max-width: 34rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  min-height: 52px; padding: 0 28px; background: var(--ink); color: var(--paper); border: 0;
  font: inherit; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: var(--paper); }

/* ---------- Home ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--paper); background: #37332E;
  min-height: clamp(480px, 50vw, 760px); display: flex; align-items: flex-end;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% center; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,27,25,.8) 0%, rgba(28,27,25,.28) 48%, rgba(28,27,25,0) 74%);
}
.hero__text {
  position: relative; z-index: 1; width: 100%; max-width: 1440px; margin-inline: auto;
  padding: 40px var(--gutter) clamp(32px, 4.4vw, 64px); display: flex; flex-direction: column; gap: 14px;
}
.hero__text .eyebrow { color: #E2D3B8; }
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.25rem, 7.2vw, 6.5rem); line-height: 0.95; letter-spacing: -0.01em;
}
.hero p { margin: 0; font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.5; color: #E9E3D8; max-width: 34rem; }
@media (min-width: 700px) { .hero__img { object-position: center 35%; } }

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 3.3vw, 48px); padding-block: var(--section); }
.door { display: flex; flex-direction: column; gap: 28px; text-decoration: none; color: var(--ink); }
.door:hover { color: var(--ink); }
.door__img { aspect-ratio: 51 / 50; overflow: hidden; background: var(--line); }
.door__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.door h2 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.1vw, 2.75rem); line-height: 1.05; }
.door p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--muted); max-width: 32rem; }
.door__more { display: inline-block; margin-top: 12px; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.door:hover .door__more { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 699px) {
  .doors { grid-template-columns: 1fr; gap: 56px; }
  .door { gap: 20px; }
  .door__img { aspect-ratio: 4 / 5; }
}

/* ---------- Page intro (two-column) ---------- */
.intro {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 4.4vw, 64px); align-items: center;
  padding-block: clamp(40px, 6.7vw, 96px);
}
.intro__text { display: flex; flex-direction: column; gap: clamp(20px, 1.95vw, 28px); }
.intro__text .btn { margin-top: 8px; }
.intro__img { margin: 0; aspect-ratio: 7 / 6; overflow: hidden; background: var(--line); }
.intro__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
.intro--about { grid-template-columns: 5fr 7fr; gap: clamp(32px, 6.7vw, 96px); }
.intro--about .intro__img { aspect-ratio: 4 / 5; }
.intro--about .intro__text .lead { max-width: 35rem; }
@media (max-width: 899px) {
  .intro, .intro--about { grid-template-columns: 1fr; }
  .intro__img, .intro--about .intro__img { order: 2; }
  .intro--about .intro__img { order: -1; aspect-ratio: 5 / 4; }
}

/* ---------- Process band ---------- */
.process { background: var(--band); padding-block: clamp(56px, 6.7vw, 96px); }
.process .h2 { margin-bottom: clamp(32px, 3.9vw, 56px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.step { border-top: 1px solid var(--rule); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.step__n { font-size: 0.8125rem; letter-spacing: 0.22em; color: var(--accent); }
.step h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.875rem; line-height: 1.05; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 1199px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 3rem minmax(0, 12rem) minmax(0, 1fr); gap: 0 24px; padding: 22px 0 26px; align-items: baseline; }
}
@media (max-width: 699px) {
  .step { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 6px 12px; padding: 20px 0 26px; }
  .step p { grid-column: 2; }
  .step h3 { font-size: 1.75rem; }
}

/* ---------- Galleries ---------- */
.gallery { padding-block: var(--section); display: flex; flex-direction: column; gap: var(--section); }
.gallery__head { display: flex; flex-direction: column; gap: 16px; }
.block { display: flex; flex-direction: column; gap: clamp(16px, 1.67vw, 24px); }
.block__label { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.block__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 64px;
  padding-bottom: 24px; margin-bottom: clamp(8px, 1vw, 8px); border-bottom: 1px solid var(--line);
}
.block__head .h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.block__head p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--muted); max-width: 30rem; }
@media (max-width: 899px) { .block__head { flex-direction: column; align-items: flex-start; gap: 12px; } }

.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.tile { margin: 0; overflow: hidden; background: var(--line); aspect-ratio: var(--r); }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s6 { grid-column: span 6; }
.s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
@media (max-width: 699px) {
  .g12 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .g12 > .tile { grid-column: span 2; aspect-ratio: var(--rm, var(--r)); }
  .g12 > .tile.m1 { grid-column: span 1; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6.7vw, 96px); align-items: start; padding-block: clamp(40px, 6.7vw, 96px); }
.contact__text { display: flex; flex-direction: column; gap: clamp(20px, 1.95vw, 28px); }
.details { margin: 20px 0 0; padding: 0; list-style: none; }
.details li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-top: 1px solid var(--line); padding: 16px 0; }
.details span { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.details a, .details b { font-size: 1.125rem; font-weight: 400; text-decoration: none; overflow-wrap: anywhere; text-align: right; }
.details a:hover { text-decoration: underline; text-underline-offset: 5px; }
.form { background: var(--band); padding: clamp(24px, 3.3vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 0;
  background: var(--field); color: var(--ink); font: inherit; font-size: 1rem;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; 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 1.5 6 6.5 11 1.5' fill='none' stroke='%231C1B19' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input::placeholder, .field textarea::placeholder { color: #6B6459; opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .btn { grid-column: 1 / -1; align-self: stretch; min-height: 56px; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .form { grid-template-columns: 1fr; gap: 20px; } .details li { flex-direction: column; gap: 4px; } .details a, .details b { text-align: left; } }

/* ---------- Simple pages (thanks / 404) ---------- */
.plain { padding-block: clamp(64px, 10vw, 140px); display: flex; flex-direction: column; gap: 24px; min-height: 50vh; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--footer-text); padding: clamp(48px, 5vw, 72px) 0 28px; }
.footer a { color: var(--footer-text); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.footer h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.375rem, 3.6vw, 3.25rem); line-height: 1; }
.footer p { margin: 0; font-size: 1rem; color: #BDB5A7; max-width: 30rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 40px; font-size: 0.9375rem; }
.footer__links a { padding: 10px 0; }
.footer__base { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid #3A3833; padding-top: 24px; font-size: 0.8125rem; color: var(--footer-muted); }
.footer--compact { padding: 28px 0; }
.footer--compact .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--footer-muted); }
.footer--compact .footer__links { gap: 0 28px; font-size: 0.875rem; }
@media (max-width: 699px) { .footer__top { flex-direction: column; align-items: flex-start; gap: 28px; } .footer__links { flex-direction: column; gap: 0; } .footer__links a { padding: 12px 0; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
