/* =========================================================
   The Sunlane — light editorial theme
   ========================================================= */

:root {
  /* Palette — warm ivory, near-black ink, sand/gold accent */
  --bg:        #FBFAF6;
  --bg-soft:   #F3F0E9;
  --surface:   #FFFFFF;
  --ink:       #1A1916;
  --ink-soft:  #4A463E;
  --muted:     #837C70;
  --line:      rgba(26, 25, 22, 0.12);
  --line-soft: rgba(26, 25, 22, 0.07);
  --accent:    #B98A3E;   /* sand / sun gold */
  --accent-dk: #976E2C;
  --accent-tint: #F1E7D3;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 11vw, 140px); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
.section-label {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-dk);
  font-weight: 600;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-size: clamp(30px, 5vw, 54px);
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--accent-dk); }
.section-sub {
  color: var(--muted);
  max-width: 46ch;
  margin-top: 20px;
  font-size: 1.05rem;
}
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 15px 28px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease),
              color .35s var(--ease), border-color .35s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 104px;
}
.brand-mark { height: 76px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 46px; }
.nav a {
  font-size: 16px; font-weight: 500; letter-spacing: 0.03em;
  color: var(--ink-soft);
  position: relative;
  transition: color .3s var(--ease);
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent);
  transition: width .35s var(--ease);
}
.nav a:not(.nav-cta):hover { color: var(--ink); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--line);
  padding: 13px 26px; border-radius: 100px;
  color: var(--ink); font-weight: 600;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink); display: block;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav a {
  font-family: var(--serif); font-size: 26px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 9vw, 96px);
  padding-bottom: clamp(24px, 5vw, 48px);
}
.hero-inner { max-width: 860px; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent-dk); font-weight: 600; margin-bottom: 26px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(46px, 9.5vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-title em { font-style: italic; color: var(--accent-dk); }
.hero-lead {
  margin-top: 30px;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-media {
  margin-top: clamp(48px, 7vw, 90px);
}
.hero-photo {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 15% 10%, rgba(255,255,255,.55), transparent 50%),
    linear-gradient(135deg, var(--accent-tint), #E7DECB 45%, #D8C7A6 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(60, 45, 15, .45);
}
.hero-photo::after {
  /* subtle sun-flare grain so empty placeholders still feel intentional */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 90% at 85% 0%, rgba(255,236,196,.85), transparent 55%),
    radial-gradient(40% 60% at 10% 100%, rgba(151,110,44,.18), transparent 60%);
  mix-blend-mode: multiply;
}
.feature-media .hero-photo { aspect-ratio: 4 / 5; }

/* Real photo fills the placeholder; gradient stays as a load-in fallback */
.hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* With a photo present, swap the warm flare for a soft bottom vignette */
.hero-photo:has(img)::after {
  background: linear-gradient(180deg, transparent 55%, rgba(26,25,22,.12));
  mix-blend-mode: normal;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(180px, 22vw, 260px);
  grid-auto-flow: dense;
  gap: 14px;
}
.gallery-item {
  position: relative; margin: 0; overflow: hidden;
  border-radius: 12px; background: var(--bg-soft);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px; color: #fff;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(20,16,8,.6));
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery-item:hover figcaption { opacity: 1; transform: none; }
.gi-tall { grid-row: span 2; }
.gi-wide { grid-column: span 2; }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-soft);
  padding-block: 16px;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 26px;
  white-space: nowrap;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--ink-soft);
  animation: scroll-x 34s linear infinite;
  will-change: transform;
}
.marquee-track .dot { color: var(--accent); font-style: normal; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Studio ---------- */
.studio-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.studio-body p { color: var(--ink-soft); margin-bottom: 20px; }
.chips {
  list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px;
}
.chips li {
  font-size: 13px; letter-spacing: 0.04em;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px;
  color: var(--ink-soft); background: var(--surface);
}

/* ---------- Services ---------- */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.service-card {
  background: var(--surface);
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column;
  transition: background .4s var(--ease);
}
.service-card:hover { background: #FFFDF8; }
.service-no {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--accent); margin-bottom: 18px;
}
.service-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.12;
  letter-spacing: -0.01em; margin-bottom: 14px;
}
.service-card > p { color: var(--muted); font-size: .98rem; margin-bottom: 22px; }
.service-card ul {
  list-style: none; padding: 0; margin-top: auto;
  display: flex; flex-direction: column; gap: 11px;
}
.service-card ul li {
  position: relative; padding-left: 22px;
  font-size: .92rem; color: var(--ink-soft); line-height: 1.45;
}
.service-card ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--accent);
}

/* ---------- Feature band ---------- */
.feature { background: var(--bg-soft); }
.feature-inner {
  display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.feature-body p { color: var(--ink-soft); margin-top: 18px; }
.ticks {
  list-style: none; padding: 0; margin-top: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.ticks li {
  position: relative; padding-left: 30px; color: var(--ink-soft);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 9px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Network ---------- */
.network-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.network-list li {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(24px, 4.5vw, 46px);
  line-height: 1.1; letter-spacing: -0.01em;
  padding: clamp(20px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex; align-items: baseline; gap: 22px;
  transition: padding-left .4s var(--ease), color .4s var(--ease);
}
.network-list li::before {
  content: "→"; color: var(--accent); font-family: var(--sans);
  font-size: .5em; opacity: 0; transform: translateX(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.network-list li:hover { padding-left: 18px; color: var(--accent-dk); }
.network-list li:hover::before { opacity: 1; transform: translateX(0); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); color: var(--ink); }
.contact .section-title { color: var(--ink); }
.contact .section-label { color: var(--accent-dk); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.contact-intro > p { color: var(--ink-soft); margin-top: 18px; max-width: 40ch; }
.contact-direct { margin-top: 40px; }
.contact-mail {
  font-family: var(--serif); font-size: clamp(22px, 3vw, 32px);
  color: var(--ink); border-bottom: 1px solid var(--line);
  padding-bottom: 4px; transition: border-color .3s var(--ease), color .3s var(--ease);
}
.contact-mail:hover { color: var(--accent-dk); border-color: var(--accent); }
.contact-loc { color: var(--muted); margin-top: 18px; font-size: .95rem; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  font-family: var(--sans); font-size: 16px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  padding: 14px 16px; border-radius: 10px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(26,25,22,.34); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185,138,62,.14);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn-primary { background: var(--ink); color: var(--bg); margin-top: 8px; }
.contact-form .btn-primary:hover { background: var(--accent-dk); color: #fff; }
.contact-form .btn-primary[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.form-status { font-size: .9rem; min-height: 1.2em; color: var(--accent-dk); }
.form-status.error { color: #B4453B; }

/* ---------- Location / map ---------- */
.location-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px); align-items: center;
}
.office-address {
  font-family: var(--serif); font-style: normal;
  font-size: clamp(20px, 2.4vw, 27px); line-height: 1.5;
  color: var(--ink); margin: 24px 0 30px;
}
.location-map {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -42px rgba(60, 45, 15, .45);
}
.location-map iframe {
  width: 100%; height: clamp(320px, 44vh, 470px);
  border: 0; display: block;
  filter: grayscale(0.25) contrast(1.03);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); padding-top: clamp(56px, 7vw, 90px); padding-bottom: 40px; text-align: center; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.footer-mark { height: 64px; width: auto; margin: 0 auto 16px; }
.footer-brand p { color: var(--muted); font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }
.footer-nav a { color: var(--ink-soft); font-size: .95rem; transition: color .3s var(--ease); }
.footer-nav a:hover { color: var(--accent-dk); }
.footer-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding-top: 28px; color: var(--muted); font-size: .85rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-grid, .feature-inner, .contact-grid, .location-grid { grid-template-columns: 1fr; }
  .feature-media { order: 2; }
  .location-map { order: 1; }
  .location-info { order: 2; text-align: center; }
  .location-info .btn { margin-inline: auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gi-wide { grid-column: span 2; }
  .gi-tall { grid-row: span 1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .footer-bottom { flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gi-wide, .gi-tall { grid-column: auto; grid-row: auto; }
  .gallery-item figcaption { opacity: 1; transform: none; }
}
