/* Strand Atelier — unified homepage
   Hero: Atelier Nord full-bleed · Body: Nordic ember · Accent: #e94e1b */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
address { font-style: normal; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.875rem;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.logo-accent { color: var(--ember); }

/* Header — Atelier scroll behaviour */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--ease), box-shadow var(--ease);
}

.site-header.is-scrolled {
  background: rgba(246, 247, 248, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--ice);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: var(--container);
  margin-inline: auto;
}

.site-header:not(.is-scrolled) .logo,
.site-header:not(.is-scrolled) .nav-primary a {
  color: var(--white);
}

.site-header.is-scrolled .logo,
.site-header.is-scrolled .nav-primary a {
  color: var(--ink);
}

.nav-primary ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-primary a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: opacity var(--ease);
}

.nav-primary a:hover { opacity: 0.75; }

.nav-cta {
  padding: 0.5rem 1rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.site-header:not(.is-scrolled) .menu-toggle { color: var(--white); }
.site-header.is-scrolled .menu-toggle { color: var(--ink); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white);
  padding: 2rem 1.5rem;
  z-index: 99;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.35;
  color: var(--ink);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Hero — Atelier layout, cool overlay */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 3rem) clamp(1.5rem, 5vw, 3rem) 3.5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 40, 48, 0.78) 0%,
    rgba(30, 40, 48, 0.22) 50%,
    rgba(26, 25, 23, 0.38) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  color: var(--white);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-meta {
  position: absolute;
  right: max(5vw, calc((100vw - var(--wrap)) / 2));
  bottom: 3.5rem;
  z-index: 1;
  padding: 1.15rem 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  max-width: 14rem;
  color: var(--ink);
}

.meta-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.meta-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-top: 0.35rem;
}

.meta-detail {
  font-size: 0.8125rem;
  color: var(--slate);
  margin-top: 0.2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.btn-primary {
  background: var(--white);
  color: var(--ink);
}

.btn-primary:hover {
  box-shadow: inset 0 -2px 0 var(--ember);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ice);
}

.btn-outline:hover {
  border-color: var(--ember);
  color: var(--slate);
}

/* Intro */
.intro {
  padding: 4rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--ice);
}

.intro-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: end;
}

.intro-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  line-height: 1.5;
  max-width: 32rem;
}

.intro-metrics {
  display: flex;
  gap: 2.5rem;
}

.metric-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.75rem;
  line-height: 1;
}

.metric-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--mist);
  letter-spacing: 0.04em;
}

/* Sections */
.section {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}

.label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.75rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 400;
}

.link-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ice);
  transition: color var(--ease), border-color var(--ease);
}

.link-more:hover {
  color: var(--ember);
  border-color: var(--ember);
}

.project-type {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

/* Work */
.work { background: var(--snow); }

.project-feature {
  display: block;
  margin-bottom: 2.5rem;
}

.project-feature figure {
  margin: 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--ice);
}

.project-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.project-feature:hover img { transform: scale(1.02); }

.feature-copy {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-top: 1.25rem;
}

.project-index {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ember);
  opacity: 0.75;
}

.feature-text h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-top: 0.25rem;
}

.feature-text p {
  font-size: 0.875rem;
  color: var(--slate);
  margin-top: 0.2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--ice);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.project-card:hover {
  border-color: rgba(233, 78, 27, 0.25);
  box-shadow: 0 12px 32px rgba(30, 40, 48, 0.06);
}

.project-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ice);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover img { transform: scale(1.03); }

.card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 0.35rem;
}

.card-body p {
  font-size: 0.8125rem;
  color: var(--mist);
  margin-top: 0.2rem;
}

/* Approach */
.approach { background: var(--white); }

.approach-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.approach-intro p {
  margin-top: 1rem;
  color: var(--slate);
  max-width: 26rem;
}

.principles li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--ice);
}

.principles li:last-child { border-bottom: 1px solid var(--ice); }

.principle-num {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--mist);
}

.principles h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}

.principles p {
  font-size: 0.9375rem;
  color: var(--slate);
  margin-top: 0.4rem;
  max-width: 28rem;
}

/* Studio */
.studio {
  background: linear-gradient(180deg, var(--snow) 0%, var(--ice) 100%);
}

.studio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.studio-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.studio-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.studio-copy p {
  margin-top: 1.15rem;
  color: var(--slate);
  max-width: 30rem;
}

.studio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0;
}

.studio-tags li {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--ice);
  border-radius: 100px;
  color: var(--slate);
}

.studio-tags li:hover { border-color: var(--ember-soft); }

/* Contact */
.contact { background: var(--white); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-intro p { margin-top: 0.85rem; color: var(--slate); }

.contact-intro address {
  margin-top: 2rem;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--slate);
}

.contact-intro a { transition: color var(--ease); }
.contact-intro a:hover { color: var(--ember); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.75rem;
  background: var(--snow);
  border: 1px solid var(--ice);
  border-radius: var(--radius);
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ice);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--slate);
  box-shadow: 0 0 0 3px var(--ember-soft);
}

.field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.contact-form .btn-primary {
  align-self: flex-start;
  background: var(--ink);
  color: var(--white);
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--ice);
  background: var(--snow);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.logo--footer .logo-text { font-size: 1.15rem; }

.footer-copy {
  font-size: 0.75rem;
  color: var(--mist);
  text-align: center;
}

.footer-inner nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

.footer-inner nav a {
  font-size: 0.8125rem;
  color: var(--mist);
  transition: color var(--ease);
}

.footer-inner nav a:hover { color: var(--ember); }

@media (max-width: 900px) {
  .intro-split,
  .approach-layout,
  .studio-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .project-grid { grid-template-columns: 1fr; }

  .hero-meta {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 2rem;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .nav-primary { display: none; }
  .menu-toggle { display: flex; }

  .intro-metrics {
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-copy { text-align: left; }
  .footer-inner nav { justify-content: flex-start; }
}
