/* ============================================================
   Carla's | A Classic Design
   Design system ported from the Michael Fowler Creative site:
   strict black-and-white interface, photography supplies all
   color. Instrument Serif display / Instrument Sans body.
   ============================================================ */

:root {
  --ink: #000000;
  --ivory: #ffffff;
  --border-soft: rgba(0, 0, 0, 0.16);
  --font-display: "Instrument Serif", "Georgia", serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --tracking-label: 0.13em;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
}
::selection { background: #000000; color: #ffffff; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }

/* ---------- layout ---------- */
.wrap {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) {
  .wrap { padding-inline: 40px; }
}
.section { padding-block: 80px; }
@media (min-width: 768px) {
  .section { padding-block: 112px; }
}
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ---------- editorial type ---------- */
.font-display { font-family: var(--font-display); }

.display-xl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: 0.004em;
  text-transform: uppercase;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.9rem);
  line-height: 1.0;
  letter-spacing: 0.004em;
  text-transform: uppercase;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  line-height: 1.08;
  letter-spacing: 0.006em;
  text-transform: uppercase;
}
.editorial-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.67rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
}
.body-lg {
  font-size: 1.11rem;
  line-height: 1.68;
}
.statement {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: none;
  font-size: clamp(1.55rem, 3.2vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: 0;
  text-wrap: balance;
}
.statement-sm {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: none;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  line-height: 1.22;
  text-wrap: balance;
}
.prose p { margin-bottom: 1.15em; line-height: 1.72; }
.prose p:last-child { margin-bottom: 0; }
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.5);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.prose a:hover { opacity: 0.6; }

.muted { color: rgba(0, 0, 0, 0.7); }
.muted-2 { color: rgba(0, 0, 0, 0.5); }
.on-dark .muted { color: rgba(255, 255, 255, 0.75); }
.on-dark .muted-2 { color: rgba(255, 255, 255, 0.55); }

/* ---------- interactive ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid;
  padding: 16px 32px;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-ink { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.btn-ink:hover { background: transparent; color: var(--ink); }
.btn-ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-ivory { border-color: var(--ivory); background: transparent; color: var(--ivory); }
.btn-ivory:hover { background: var(--ivory); color: var(--ink); }

.link-rule { transition: color 0.22s ease, opacity 0.22s ease; }
.link-rule:hover { opacity: 0.55; }

.link-arrow::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.45em;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.link-arrow:hover::after { transform: translateX(4px); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.on-dark :where(a, button):focus-visible { outline-color: var(--ivory); }

/* ---------- imagery ---------- */
.img-frame {
  overflow: hidden;
  background: transparent;
  display: block;
}
.img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.6s ease;
}
html.js .img-frame img { animation: img-in 0.7s ease both; }
@keyframes img-in {
  from { opacity: 0.001; }
  to { opacity: 1; }
}
a:hover .img-frame img, .card-hover:hover .img-frame img {
  transform: scale(1.02);
}
.ar-21-10 { aspect-ratio: 21 / 10; }
.ar-4-3 { aspect-ratio: 4 / 3; }
.ar-3-4 { aspect-ratio: 3 / 4; }
.ar-4-5 { aspect-ratio: 4 / 5; }
.ar-3-2 { aspect-ratio: 3 / 2; }
.ar-1-1 { aspect-ratio: 1 / 1; }

/* ---------- reveal motion (opt-in via html.js) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
  html.js .img-frame img { animation: none; }
}

/* ---------- fine rules ---------- */
.rule-top { border-top: 1px solid var(--border-soft); }
.on-dark .rule-top { border-top-color: rgba(255, 255, 255, 0.2); }
hr.rule { border: 0; border-top: 1px solid var(--border-soft); }

/* ---------- dark bands ---------- */
.on-dark { background: var(--ink); color: var(--ivory); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}
.brand { flex-shrink: 0; display: block; }
.brand img { height: 60px; width: auto; }
@media (min-width: 768px) {
  .brand img { height: 74px; }
}
.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}
.nav-desktop a.nav-link {
  display: inline-block;
  padding-block: 8px;
}
.nav-desktop a.nav-link[aria-current="page"] { font-weight: 700; }
.nav-cta { padding: 10px 20px !important; }

.nav-toggle {
  display: flex;
  height: 44px;
  width: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}
.nav-toggle span {
  height: 1.5px;
  width: 24px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  top: var(--header-h, 85px);
  z-index: 40;
  overflow-y: auto;
  background: var(--ivory);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav-mobile.open { opacity: 1; pointer-events: auto; }
.nav-mobile nav { padding: 32px 24px; }
.nav-mobile li { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.nav-mobile li a { display: block; padding-block: 16px; }
.nav-mobile .btn { width: 100%; margin-top: 32px; }

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

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: var(--ivory);
  background: var(--ink);
}
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html.js .hero-slide.active img {
  animation: hero-drift 9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes hero-drift {
  from { transform: scale(1.06); }
  to { transform: scale(1.0); }
}
@media (prefers-reduced-motion: reduce) {
  html.js .hero-slide.active img { animation: none; }
  .hero-slide { transition: none; }
}
.hero-scrim {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.3) 55%, transparent);
}
.hero-in {
  position: relative;
  max-width: 1800px;
  margin-inline: auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 160px 20px 48px;
}
@media (min-width: 768px) {
  .hero-in { padding-inline: 40px; padding-bottom: 56px; }
}
.hero-in .eyebrow { text-shadow: 0 1px 14px rgba(0,0,0,0.5); color: rgba(255,255,255,0.9); margin-bottom: 16px; }
.hero-in h1 { max-width: 24ch; text-shadow: 0 2px 28px rgba(0,0,0,0.55); }
.hero-caption {
  margin-top: 32px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}

/* short interior page hero */
.page-head { padding-top: 96px; }
@media (min-width: 768px) {
  .page-head { padding-top: 128px; }
}

/* ---------- cards / grids ---------- */
.card-hover { position: relative; display: block; }
.hover-bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14.4px 18.4px;
  background: #000;
  color: #fff;
  transform: translateY(101%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-hover:hover .hover-bar,
.card-hover:focus-visible .hover-bar { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .hover-bar { transition: none; }
}

.grid-3 {
  display: grid;
  gap: 24px 24px;
}
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.split {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1.1fr; gap: 80px; }
  .split.rev { grid-template-columns: 1.1fr 1fr; }
}

/* dark index rows (services band) */
.index-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 4px;
  transition: background-color 0.28s ease, color 0.28s ease, padding 0.28s ease;
}
.index-row .index-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  transition: opacity 0.2s ease;
}
.index-row .index-arrow {
  color: rgba(255,255,255,0.5);
  transition: transform 0.3s ease;
}
.index-row:hover .index-arrow { transform: translateX(6px); }
.index-list li { border-bottom: 1px solid rgba(255,255,255,0.15); }
.index-list { border-top: 1px solid rgba(255,255,255,0.15); }
@media (prefers-reduced-motion: reduce) {
  .index-row { transition: none; }
}

/* ---------- portfolio gallery ---------- */
.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  align-items: baseline;
}
.masonry {
  columns: 1;
  column-gap: 20px;
}
@media (min-width: 560px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry > li {
  break-inside: avoid;
  margin-bottom: 20px;
}
.masonry button {
  display: block;
  width: 100%;
  overflow: hidden;
}
.masonry button img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}
.masonry button:hover img { transform: scale(1.02); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; animation: lb-in 0.32s ease both; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: min(92vw, 1600px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: lbimg-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes lbimg-in {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: none; }
}
.lightbox .lb-btn {
  position: absolute;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  padding: 18px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  user-select: none;
}
.lightbox .lb-btn:hover { opacity: 1; }
.lb-close { top: 12px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- forms ---------- */
.field { margin-bottom: 22px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  background: var(--ivory);
  padding: 12px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
  outline: none;
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--ivory); }
.footer-in {
  max-width: 1440px;
  margin-inline: auto;
  padding: 64px 20px 40px;
}
@media (min-width: 768px) {
  .footer-in { padding: 96px 40px 48px; }
}
.footer-brand img { height: 110px; width: auto; }
@media (min-width: 768px) {
  .footer-brand img { height: 140px; }
}
.footer-statement {
  margin-top: 24px;
  max-width: 38ch;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.35;
}
@media (min-width: 768px) {
  .footer-statement { font-size: 1.6rem; }
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
  padding-top: 40px;
  margin-top: 48px;
}
@media (min-width: 768px) {
  .footer-cols { grid-template-columns: repeat(4, 1fr); padding-top: 48px; }
}
.footer-cols h2 {
  font-family: var(--font-body);
  font-size: 0.67rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.footer-cols ul { display: grid; gap: 12px; font-size: 0.95rem; }
.footer-legal {
  margin-top: 32px;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}
@media (min-width: 768px) {
  .footer-legal { flex-direction: row; align-items: center; justify-content: space-between; }
}
.social-row {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  align-items: center;
}
.social-row a {
  display: inline-flex;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.social-row a:hover { opacity: 1; }
.social-row svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- video embed ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- misc ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; } .mt-5 { margin-top: 40px; } .mt-6 { margin-top: 48px; }
.mt-7 { margin-top: 56px; } .mt-9 { margin-top: 72px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }
.maxw-46 { max-width: 46ch; } .maxw-52 { max-width: 52ch; } .maxw-58 { max-width: 58ch; }
.maxw-62 { max-width: 62ch; } .maxw-22t { max-width: 22ch; } .maxw-16t { max-width: 16ch; }
.maxw-18t { max-width: 18ch; }
.indent-38 { margin-left: 0; }
@media (min-width: 768px) {
  .indent-38 { margin-left: 38%; }
  .indent-24 { margin-left: 24%; }
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #000000; }
::-webkit-scrollbar-track { background: transparent; }
