/* The Artemis Collective — shared styles for every page.
   Palette and type come from the brand sheet; change them here and every page follows. */
:root {
  --ivory: #eceae0;    /* Alabaster */
  --charcoal: #434341; /* Iron Ore */
  --soot: #373c40;     /* Soot (navy) */
  --pewter: #c2bdb1;   /* Roycroft Mist */
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --gutter: clamp(20px, 5vw, 64px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font: 400 19px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* small spaced capitals used for nav, labels and buttons */
.caps { font-size: 13px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }

/* ---------- header ---------- */
.site-header {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 28px var(--gutter);
  padding-top: max(28px, env(safe-area-inset-top));
}
.site-header .brand img { height: 54px; width: auto; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: center; column-gap: clamp(28px, 4vw, 48px); row-gap: 4px; }
.site-header nav a { white-space: nowrap; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { border-color: currentColor; }

/* landing: header floats over the photograph */
.over { position: absolute; top: 0; left: 0; right: 0; z-index: 2; color: var(--soot); font-weight: 600; }

/* ---------- landing hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--soot); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 55%; animation: drift 30s ease-in-out infinite alternate; will-change: transform; }
/* starts slightly zoomed in, eases out over 30 seconds, then eases back in — forever */
@keyframes drift { from { transform: scale(1.14); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero > img { animation: none; transform: scale(1.06); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(236,234,224,.6), rgba(236,234,224,0) 20%, rgba(55,60,64,.25) 45%, rgba(55,60,64,0) 70%, rgba(236,234,224,.7)); }
.hero .scroll { font-weight: 600; }
.hero .mark { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: var(--gutter); }
.hero .mark img { width: min(400px, 70vw); height: auto; filter: drop-shadow(0 1px 18px rgba(0,0,0,.18)); }
.hero .scroll { position: absolute; left: 0; right: 0; bottom: max(32px, env(safe-area-inset-bottom)); z-index: 1; text-align: center; color: var(--soot); }

/* ---------- page bodies ---------- */
main { padding: 0 var(--gutter); }
.intro { max-width: 640px; margin: clamp(48px, 9vw, 120px) auto; text-align: center; }
.intro h1 { font-weight: 400; font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 0 0 18px; color: var(--soot); }
.intro p { margin: 0; font-size: 21px; font-style: italic; color: var(--charcoal); }
.rule { width: 48px; height: 1px; background: var(--pewter); border: 0; margin: 28px auto; }

.band { margin: 0 calc(var(--gutter) * -1); }
.band img { width: 100%; aspect-ratio: 5 / 1; max-height: 26vh; min-height: 120px; object-fit: cover; object-position: 50% 74%; } /* a slim strip: 30% of the old 3:2 height */

/* portfolio grid — add <figure>s as renderings arrive */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(16px, 3vw, 40px); max-width: 1280px; margin: 0 auto clamp(64px, 10vw, 140px); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { margin-top: 12px; text-align: center; }

.cta { text-align: center; margin: clamp(64px, 10vw, 140px) auto; }
.btn {
  display: inline-block; padding: 18px 40px; border: 1px solid var(--soot); color: var(--soot);
  background: transparent; font-family: var(--serif); cursor: pointer; transition: background .3s, color .3s;
}
.btn:hover { background: var(--soot); color: var(--ivory); }

/* ---------- two-column blocks (services intro, inquiry intro) ---------- */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 8vw, 140px); max-width: 1080px; margin: clamp(56px, 9vw, 120px) auto; align-items: start; }
.lede h1, .lede .big { font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.35; margin: 0 0 16px; color: var(--soot); max-width: 24em; }
.lede p { margin: 0 0 28px; max-width: 46ch; font-size: 17px; }
.lede .link { font-size: 16px; }
.link { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid var(--soot); color: var(--soot); }
.aside { justify-self: end; min-width: 240px; }
.aside h2 { font-weight: 400; font-size: 22px; margin: 0 0 10px; color: var(--soot); }
.aside .mail { display: inline-block; font-size: 17px; margin-bottom: 36px; }
.aside .handle { font-size: 17px; color: var(--charcoal); margin-left: 8px; }
.aside .social { display: flex; gap: 20px; color: var(--soot); }
.aside .social a { opacity: .85; transition: opacity .3s; }
.aside .social a:hover { opacity: 1; }
.aside .social svg { display: block; width: 24px; height: 24px; }
.divider { max-width: 1180px; margin: 0 auto; border: 0; border-top: 1px solid var(--pewter); }

.services-top { grid-template-columns: 1fr 1.35fr; max-width: 1240px; align-items: stretch; }
.services-top .lede { display: flex; flex-direction: column; }
.services-top .lede-end { margin-top: auto; padding-top: 40px; }
.services-top .lede-end .big { font-size: clamp(22px, 2vw, 26px); margin-bottom: 22px; }

/* services accordion */
.offer details { border-top: 1px solid var(--pewter); }
.offer details:last-child { border-bottom: 1px solid var(--pewter); }
.offer summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: clamp(26px, 3vw, 32px); color: var(--soot); }
.offer summary::-webkit-details-marker { display: none; }
.offer summary::after { content: "+"; font-size: 24px; color: var(--pewter); transition: transform .3s; }
.offer details[open] summary::after { transform: rotate(45deg); }
.offer details p { margin: 0 0 28px; max-width: 56ch; }

/* ---------- inquiry form ---------- */
.inquiry { max-width: 760px; margin: 0 auto clamp(64px, 10vw, 140px); display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.trio { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px 28px; }
@media (max-width: 640px) { .trio { grid-template-columns: 1fr 1fr; } .trio .field:first-child { grid-column: 1 / -1; } }
.field label { color: var(--soot); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 19px/1.4 var(--serif); color: var(--charcoal);
  background: transparent; border: 0; border-bottom: 1px solid var(--pewter); border-radius: 0;
  padding: 8px 0 10px; -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23434341'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 24px; }
/* site-styled dropdown (select.js) */
:root { --pop: #f6f4ec; }
.dd { position: relative; }
.dd select { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.dd-btn {
  display: block; width: 100%; text-align: left; cursor: pointer;
  font: 400 19px/1.4 var(--serif); color: var(--charcoal);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23434341'/%3E%3C/svg%3E") no-repeat right 4px center;
  border: 0; border-bottom: 1px solid var(--pewter); border-radius: 0; padding: 8px 24px 10px 0;
}
.dd-btn:focus { outline: none; border-color: var(--soot); }
.dd-btn.placeholder { color: var(--charcoal); opacity: .75; }
.dd-list {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  list-style: none; margin: 0; padding: 8px 0; max-height: 320px; overflow-y: auto;
  background: var(--pop); border: 1px solid var(--pewter); box-shadow: 0 14px 34px rgba(0,0,0,.12);
}
.dd.open .dd-list { display: block; }
.dd-list li { padding: 9px 18px; font-size: 19px; line-height: 1.35; color: var(--charcoal); cursor: pointer; }
.dd-list li.active { background: rgba(194,189,177,.32); }
.dd-list li[aria-selected="true"] { font-style: italic; }
.dd.open { z-index: 30; }
.field textarea { min-height: 150px; resize: vertical; border: 1px solid var(--pewter); padding: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--soot); }
.req { color: var(--pewter); }
.hp { position: absolute; left: -9999px; } /* spam trap: real people never see this field */
.form-actions { grid-column: 1 / -1; text-align: center; margin-top: 12px; }
.form-status { grid-column: 1 / -1; text-align: center; font-style: italic; min-height: 1.6em; margin: 0; }
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.choices legend { padding: 0; margin-bottom: 14px; color: var(--soot); }
.choices label { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.choices input { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--charcoal); border-radius: 0; display: grid; place-items: center; flex: none; }
.choices input[type="radio"] { border-radius: 50%; }
.choices input::after { content: ""; width: 8px; height: 8px; background: var(--soot); transform: scale(0); transition: transform .15s; }
.choices input[type="radio"]::after { border-radius: 50%; }
.choices input:checked::after { transform: scale(1); }
.privacy { grid-column: 1 / -1; margin: 0; text-align: center; font-size: 15px; font-style: italic; color: var(--charcoal); }
.thanks { max-width: 560px; margin: 0 auto clamp(64px, 10vw, 140px); text-align: center; font-size: 22px; font-style: italic; }

/* ---------- footer ---------- */
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--soot); color: var(--ivory); padding: 44px var(--gutter); padding-bottom: max(44px, env(safe-area-inset-bottom)); font-size: 18px; letter-spacing: .06em; }
.site-footer a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-footer a:hover { border-color: currentColor; }
.site-footer .social { display: flex; gap: 22px; }
.site-footer .social a { border: 0; opacity: .85; transition: opacity .3s; }
.site-footer .social a:hover { opacity: 1; }
.site-footer svg { display: block; width: 22px; height: 22px; }

@media (max-width: 760px) {
  .split, .services-top { grid-template-columns: 1fr; }
  .aside { justify-self: start; }
}
@media (max-width: 640px) {
  .inquiry { grid-template-columns: 1fr; }
  .inquiry .third { grid-column: auto; }
  .site-header .brand img { height: 42px; }
}

/* home page: cream footer under the photograph */
.home .site-footer { background: var(--ivory); color: var(--soot); }

/* ---------- dark mode: follows the visitor's device setting ---------- */
@media (prefers-color-scheme: dark) {
  body { background: var(--soot); }
  .site-header:not(.over), main {
    --soot: #eceae0; --charcoal: #eceae0; --pewter: rgba(236,234,224,.32);
    color: #eceae0; color-scheme: dark;
  }
  .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23eceae0'/%3E%3C/svg%3E"); }
  .field select option { color: #373c40; background: #eceae0; }
  main { --pop: #2f3438; }
  .dd-btn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23eceae0'/%3E%3C/svg%3E"); }
  .dd-list { box-shadow: 0 14px 34px rgba(0,0,0,.35); }
  .dd-list li.active { background: rgba(236,234,224,.1); }
  .btn:hover { color: #373c40; }
  .site-footer { border-top: 1px solid rgba(236,234,224,.18); }
  .home .site-footer { border-top: 0; } /* home footer stays ivory in both modes */
}

/* ---------- scroll reveal: blocks fade in while rising into place (see reveal.js) ---------- */
.js :is(.lede > :not(.lede-end), .lede-end > *, .aside > *, .offer details, .inquiry > *, .band) {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
.js :is(.lede > :not(.lede-end), .lede-end > *, .aside > *, .offer details, .inquiry > *, .band).in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js :is(.lede > :not(.lede-end), .lede-end > *, .aside > *, .offer details, .inquiry > *, .band) { transform: none; transition: opacity .6s ease; }
}
