/* ============================================
   Summit Design Group — styles
   Palette: #212121 ink · #454545 slate · #D4D4D4 mist · #FCFCFC paper
   ============================================ */

:root {
  --ink: #212121;
  --slate: #454545;
  --mist: #D4D4D4;
  --paper: #FCFCFC;

  --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --header-h: 84px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 12px;
  font-weight: 600;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ---------- placeholder image handling ---------- */
/* Until real photos are dropped into /images with matching filenames,
   broken <img> tags collapse and this label fills the frame. */
[data-label] {
  position: relative;
  background: var(--mist);
  overflow: hidden;
}
[data-label] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[data-label] img.is-broken { display: none; }
[data-label]::after {
  content: attr(data-label);
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  background: linear-gradient(135deg, var(--mist), #c4c4c4);
}
[data-label].img-missing::after { display: flex; }

/* Media wrapper: carries the aspect-ratio + placeholder clipping so
   captions in a parent <figure> are never cut off by overflow:hidden. */
.media {
  display: block;
  border-radius: 2px;
}
.media.ratio-4-3 { aspect-ratio: 4 / 3; }
.media.ratio-3-4 { aspect-ratio: 3 / 4; }
.media.ratio-3-2 { aspect-ratio: 3 / 2; }
.media.ratio-1-1 { aspect-ratio: 1 / 1; }
.media.ratio-4-5 { aspect-ratio: 4 / 5; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(33, 33, 33, 0.5) 0%, rgba(33, 33, 33, 0.28) 55%, rgba(33, 33, 33, 0) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 28px;
  width: auto;
}

.primary-nav {
  display: flex;
  gap: 40px;
}
.primary-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  position: relative;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease);
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.primary-nav a:hover,
.primary-nav a.active {
  opacity: 1;
}
.primary-nav a:hover::after,
.primary-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

/* The mobile dropdown panel is an opaque sheet, so its links are
   always dark regardless of what's scrolled behind the header bar. */
.primary-nav.open a {
  color: var(--ink);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
}
/* Six photos cross-fade and slowly zoom in turn — a continuous,
   seamless loop driven entirely by CSS. Each slide runs the same
   42s animation but offset by a negative delay one slot apart, so
   only one is ever visible (and mid-zoom) at a time. */
.hero-slideshow {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  animation: hero-ken-burns 42s ease-in-out infinite;
}
.hero-slide:nth-child(1) img { animation-delay: 0s; }
.hero-slide:nth-child(2) img { animation-delay: -35s; }
.hero-slide:nth-child(3) img { animation-delay: -28s; }
.hero-slide:nth-child(4) img { animation-delay: -21s; }
.hero-slide:nth-child(5) img { animation-delay: -14s; }
.hero-slide:nth-child(6) img { animation-delay: -7s; }

/* Consecutive slides overlap heavily (one is still fading out while
   the next is already fading in) so the cross-fade never dips
   through black — there's always at least one fully-visible frame. */
@keyframes hero-ken-burns {
  0%   { opacity: 0; transform: scale(1); }
  4%   { opacity: 1; }
  14%  { opacity: 1; transform: scale(1.15); }
  27%  { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33,33,33,0.72) 0%, rgba(33,33,33,0.55) 45%, rgba(33,33,33,0.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--paper);
  padding: 0 24px;
}
.hero-content .eyebrow { color: var(--mist); }
.hero-content h1 {
  color: var(--paper);
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 200;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--mist);
  margin: 0;
}
.btn-hero {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 40px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-hero:hover {
  background: transparent;
  color: var(--paper);
}

/* ============ SECTION SHARED ============ */
section { padding: 120px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 300; }

/* ============ PROJECTS ============ */
.projects { background: var(--paper); }

/* Two-column masonry: CSS columns let each card keep its natural
   height so the grid reads as an organic wall of work, not a
   uniform grid of identical tiles. */
.project-grid {
  column-count: 2;
  column-gap: 28px;
}
.project-card {
  margin: 0 0 40px;
  break-inside: avoid;
  cursor: default;
}
.project-card img {
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.project-card:hover img {
  transform: scale(1.045);
}
.project-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mist);
}
.project-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--slate);
  transition: color 0.25s var(--ease);
}
.project-arrow {
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.project-card:hover .project-title { color: var(--ink); }
.project-card:hover .project-arrow {
  opacity: 1;
  transform: translateX(0);
}

.projects-more {
  text-align: center;
  margin-top: 56px;
}
.btn-outline {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-outline:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ============ ABOUT ============ */
.about { background: var(--paper); border-top: 1px solid var(--mist); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.about-portrait {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  margin: 0;
}
.about-portrait figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--slate);
}
.about-copy h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 300; }
.about-copy p {
  color: var(--slate);
  font-weight: 400;
  font-size: 16px;
  max-width: 62ch;
}
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink) !important;
  border-left: 2px solid var(--ink);
  padding-left: 24px;
  margin-top: 40px !important;
}

/* ============ CONTACT ============ */
.contact { background: var(--ink); color: var(--paper); }
.contact .eyebrow { color: var(--mist); }
.contact h2 { color: var(--paper); font-size: clamp(28px, 3.6vw, 40px); font-weight: 300; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
}
.contact-address {
  font-style: normal;
  color: var(--mist);
  margin: 24px 0;
}
.addr-name {
  color: var(--paper);
  font-weight: 600;
  margin: 0 0 16px;
}
.addr-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  line-height: 1.5;
}
.addr-row:last-child { margin-bottom: 0; }
.addr-icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--paper);
}
.addr-row a { border-bottom: 1px solid var(--slate); transition: border-color 0.25s var(--ease); }
.addr-row a:hover { border-color: var(--mist); }
.contact-note {
  color: var(--mist);
  font-size: 15px;
  max-width: 40ch;
}
.contact-note a { border-bottom: 1px solid var(--slate); }

.contact-map {
  margin-top: 32px;
  border: 1px solid var(--slate);
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  filter: grayscale(1) contrast(1.1) brightness(0.9);
  transition: filter 0.4s var(--ease);
}
.contact-map:hover { filter: grayscale(0); }
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 20px;
}
.contact-form legend {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  padding: 0 0 24px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--mist);
  margin-bottom: 8px;
}
.req {
  font-size: 11px;
  color: #EA3E3E;
  margin-left: 6px;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--slate);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 2px;
  resize: vertical;
  transition: border-color 0.25s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--paper);
}
.field input:invalid:not(:placeholder-shown) { border-color: #8a8a8a; }

.btn-submit {
  margin-top: 8px;
  padding: 14px 40px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-submit:hover {
  background: transparent;
  color: var(--paper);
}
.form-status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--mist);
  min-height: 20px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding: 32px 0;
  border-top: 1px solid var(--slate);
  font-size: 13px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-logo {
  height: 20px;
  width: auto;
  flex-shrink: 0;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 560px;
}
.footer-info p {
  margin: 0;
  line-height: 1.6;
}
.footer-credit { color: var(--paper); margin: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait { position: static; max-width: 360px; }
}

@media (max-width: 640px) {
  .project-grid { column-count: 1; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .wrap { padding: 0 20px; }
  section { padding: 80px 0; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .primary-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .primary-nav a {
    padding: 18px 20px;
    border-top: 1px solid var(--mist);
  }
  .primary-nav a::after { display: none; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .hero-slide img { animation: none !important; opacity: 0; transform: none; }
  .hero-slide:first-child img { opacity: 1; }
}
