/* Midnight Mice — design system. Warm, plainspoken. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/Fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/Inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F6F3EC;
  --surface: #FFFDF8;
  --band: #F1EDE4;
  --border: #E2DCCF;
  --border-strong: #DDD6C8;
  --heading: #141821;
  --text: #3A404C;
  --text-strong: #2A2F3A;
  --muted: #4A505C;
  --muted-2: #5A606B;
  --navy: #1E2A44;
  --navy-dark: #0F1626;
  --accent: #E0A458;
  --on-dark: #EDE8DD;
  --on-dark-muted: #D9D2C3;
  --radius-btn: 8px;
  --radius-card: 12px;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: #1B1F27;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: short pages (e.g. contact) keep the footer at the bottom of the window. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.site-header, .site-footer { flex: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.band-dark :focus-visible { outline-color: #fff; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-btn);
}
.skip-link:focus { top: 12px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; color: var(--heading); margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { padding: 112px var(--gutter); }
.section--surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2, .h2 {
  font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 16px;
}
.lede { font-size: 19px; color: var(--muted); }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }
.label { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; text-align: center; cursor: pointer;
  font: 600 17px/1.4 var(--font-body);
  padding: 16px 28px; border-radius: var(--radius-btn); border: 1px solid var(--navy);
  background: var(--navy); color: var(--bg);
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--navy-dark); color: #fff; }
.btn--sm { padding: 12px 20px; font-size: 15px; }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--bg); }
.link-strong { font-weight: 600; text-decoration: none; }
.link-strong:hover { text-decoration: underline; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); position: relative; }
.site-header .wrap {
  padding: 20px var(--gutter); display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-name { font-family: var(--font-head); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; color: var(--text); padding: 6px 0; }
.nav a:not(.btn):hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn); padding: 10px 14px; color: var(--navy);
  font: 600 15px var(--font-body); cursor: pointer;
}

/* Hero */
.hero { padding: 96px var(--gutter) 88px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.1rem); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 24px;
}
.hero-sub { font-size: 20px; color: var(--muted); max-width: 34em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.hero-creds { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 15px; color: var(--muted-2); }
.hero-visual { flex: 1 1 460px; min-width: 0; position: relative; padding-bottom: 48px; }
.frame {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-card); box-shadow: 0 24px 60px rgba(20, 24, 33, 0.10); overflow: hidden;
}
.frame-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid #E8E2D6; background: var(--band); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #D3CCBE; }
.frame img, .frame .placeholder { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.phone {
  position: absolute; right: -8px; bottom: 0; width: 170px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 22px; padding: 10px;
  box-shadow: 0 18px 40px rgba(20, 24, 33, 0.16);
}
.phone img, .phone .placeholder { width: 100%; aspect-ratio: 6 / 11; object-fit: cover; border-radius: 14px; }

/* Placeholder */
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: repeating-linear-gradient(135deg, #F7F3EA 0 14px, #F2EDE2 14px 28px);
  color: var(--muted-2); font-size: 15px; font-weight: 500;
}
.phone .placeholder { font-size: 13px; padding: 12px; }

/* Strip */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--band); padding: 28px var(--gutter); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; justify-content: space-between; }
.strip-names { display: flex; flex-wrap: wrap; gap: 12px 40px; font-family: var(--font-head); font-size: 22px; font-weight: 500; color: var(--navy); list-style: none; margin: 0; padding: 0; }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--signs { gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px; }
.sign { padding: 28px; }
.sign-num { font-family: var(--font-head); font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.sign-text { font-size: 18px; color: var(--text-strong); }
.step { background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.step h3 { font-size: 28px; }
.step-note { margin-top: 8px; font-weight: 600; color: var(--navy); }
.after-grid { margin-top: 40px; font-size: 18px; color: var(--text-strong); }

/* Work */
.work-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; margin-bottom: 80px; }
.work-row--reverse { flex-wrap: wrap-reverse; }
.work-media { flex: 1 1 480px; min-width: 0; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-card); overflow: hidden; }
.work-media img, .work-media .placeholder { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.work-body { flex: 1 1 400px; min-width: 0; }
.work-body .label { margin-bottom: 8px; }
.work-body h3 { font-size: 36px; margin-bottom: 16px; }
.work-body p { color: var(--text); margin-bottom: 20px; }
.work-cards { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.work-cards .label { margin-bottom: 8px; }
.work-cards h3 { font-size: 28px; margin-bottom: 12px; }
.work-cards p { color: var(--text); }

/* Dark band */
.band-dark { background: var(--navy); color: var(--on-dark); }
.band-dark .eyebrow { color: var(--on-dark-muted); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lede { color: var(--on-dark-muted); }
.band-dark .section-head { max-width: 760px; }
.band-dark .card { background: transparent; border-color: rgba(237, 232, 221, 0.22); }
.band-dark .card h3 { font-size: 26px; margin-bottom: 12px; }
.band-dark .card p { color: var(--on-dark-muted); }

/* Pricing */
.price-card { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.price-card h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; }
.price-card--featured { border: 2px solid var(--navy); }
.price { font-family: var(--font-head); font-size: 40px; font-weight: 500; color: var(--heading); line-height: 1.2; }
.price-card p.desc { color: var(--text); flex-grow: 1; }
.price-note { margin-top: 32px; color: var(--muted); }

/* About */
.about { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.about-photo { flex: 0 1 360px; min-width: 260px; }
.about-photo img, .about-photo .placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-card); border: 1px solid var(--border-strong); }
.about-copy { flex: 1 1 420px; min-width: 0; }
.about-copy h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 20px; }
.about-copy p { font-size: 19px; color: var(--text); margin-bottom: 18px; }
.about-copy p.sign-off { font-weight: 600; color: var(--heading); margin-bottom: 0; }

/* Closing CTA */
.closing { padding: 128px var(--gutter); text-align: center; }
.closing .inner { max-width: 820px; margin: 0 auto; }
.closing h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px; }
.closing .lede { margin-bottom: 36px; }
.closing .actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px var(--gutter); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted-2); }
.footer-brand { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--navy); text-decoration: none; }

/* Project detail */
.page-hero { padding: 80px var(--gutter) 40px; }
.page-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px; }
.page-hero .label { margin-bottom: 12px; }
.project-media { padding: 0 var(--gutter) 24px; }
.project-media .frame { max-width: var(--wrap); margin: 0 auto; }
.project-media .frame img, .project-media .frame .placeholder { aspect-ratio: 16 / 9; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-top: 8px; }
.facts dt { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--text-strong); }
.case { max-width: 780px; margin: 0 auto; }
.case-block { margin-bottom: 48px; }
.case-block h2 { font-size: 28px; margin-bottom: 12px; }
.case-block p { color: var(--text); font-size: 18px; white-space: pre-line; }
.quote { border-left: 3px solid var(--accent); padding-left: 24px; font-family: var(--font-head); font-size: 24px; color: var(--heading); }
.quote cite { display: block; margin-top: 12px; font: 600 15px var(--font-body); color: var(--muted-2); font-style: normal; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: var(--radius-card); border: 1px solid var(--border-strong); }
.gallery figcaption { margin-top: 8px; font-size: 15px; color: var(--muted-2); }

/* Contact */
.contact-page { padding: 96px var(--gutter); }
.contact-wrap { max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 64px; }
.contact-info { flex: 1 1 320px; }
.contact-info h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; }
.contact-info p { color: var(--muted); margin-bottom: 16px; }
.contact-form-section { flex: 1 1 420px; }
.contact-form-section h2 { font-size: 24px; margin-bottom: 20px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-input, .contact-textarea {
  width: 100%; font: 400 17px var(--font-body); color: var(--heading);
  background: var(--surface); border: 1px solid #B9B2A3; border-radius: var(--radius-btn); padding: 14px 16px;
}
.contact-input::placeholder, .contact-textarea::placeholder { color: var(--muted-2); opacity: 1; }
.contact-textarea { resize: vertical; min-height: 110px; }
.contact-message { background: var(--surface); border: 1px solid var(--border-strong); border-left: 4px solid var(--navy); border-radius: var(--radius-btn); padding: 14px 18px; margin-bottom: 18px; color: var(--heading); }
.contact-form .btn { align-self: flex-start; }
.field-errors { color: #8A1C1C; font-size: 15px; margin: -6px 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Responsive */
@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .section { padding: 72px var(--gutter); }
  .hero { padding: 56px var(--gutter) 56px; }
  .hero .wrap { gap: 40px; }
  .closing { padding: 80px var(--gutter); }
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-top: 8px; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 8px; }
  .work-row { margin-bottom: 56px; gap: 28px; }
  .phone { width: 120px; right: 0; }
  .phone .placeholder, .phone img { }
  .about { gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.brand-mark { width: 62px; height: 48px; flex: none; }
.brand { gap: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 41px; height: 32px; }
