/* Norð Arkitektur — Nordic ember variant
   Cool Nordic base + sparse #e94e1b accent (logo, micro-interactions)
   Editorial structure inspired by Atelier Nord, fresher Nordic palette */

:root {
  --snow: #f6f7f8;
  --white: #ffffff;
  --ice: #e4eaef;
  --mist: #8a9aa8;
  --slate: #4a5966;
  --ink: #1e2830;
  --ember: #e94e1b;
  --ember-soft: rgba(233, 78, 27, 0.1);
  --ember-glow: rgba(233, 78, 27, 0.35);

  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;

  --wrap: min(1120px, 90vw);
  --header-h: 4.25rem;
  --radius: 4px;
  --ease: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::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: 999;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.875rem;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Logo — ember dot is the only strong orange block */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
}

.logo-mark {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ember);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--ember-soft);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.logo-accent {
  color: var(--ember);
}

/* Header */
.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-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: var(--wrap);
  margin-inline: auto;
}

.site-header:not(.is-scrolled) .logo,
.site-header:not(.is-scrolled) .nav a {
  color: var(--white);
}

.site-header.is-scrolled .logo,
.site-header.is-scrolled .nav a {
  color: var(--ink);
}

.nav ul {
  display: flex;
  gap: 2.25rem;
}

.nav a {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: opacity var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--ember);
  transition: width var(--ease);
}

.nav a:hover::after {
  width: 100%;
}

.site-header.is-scrolled .nav a:hover {
  color: var(--slate);
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.site-header:not(.is-scrolled) .menu-btn { color: var(--white); }
.site-header.is-scrolled .menu-btn { color: var(--ink); }

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--white);
  padding: 2rem var(--wrap);
}

.nav-mobile[hidden] { display: none; }

.nav-mobile a {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.35;
  color: var(--ink);
}

/* Labels */
.label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.label--dark {
  color: var(--mist);
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-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-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(30, 40, 48, 0.72) 0%,
    rgba(30, 40, 48, 0.25) 50%,
    rgba(30, 40, 48, 0.55) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin-inline: auto;
  max-width: 38rem;
  color: var(--white);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.hero-text {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.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);
}

.hero-note {
  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);
  border-left: 2px solid var(--ember);
  max-width: 13rem;
}

.note-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.note-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-top: 0.35rem;
  color: var(--ink);
}

.note-meta {
  font-size: 0.8125rem;
  color: var(--slate);
  margin-top: 0.2rem;
}

/* 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;
  color: var(--ink);
  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;
  color: var(--ink);
}

.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;
}

.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;
  margin-top: 0.25rem;
}

.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);
}

/* Work */
.work {
  background: var(--snow);
}

.project-feature {
  display: block;
  color: inherit;
  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;
  padding-bottom: 0.25rem;
}

.project-index {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ember);
  opacity: 0.75;
  flex-shrink: 0;
}

.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 {
  display: block;
  color: inherit;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--ice);
  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;
  color: var(--ink);
}

.principles p {
  font-size: 0.9375rem;
  color: var(--slate);
  margin-top: 0.4rem;
  max-width: 28rem;
}

/* Studio */
.studio {
  background: var(--ice);
  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);
}

.studio-copy .btn {
  margin-top: 0.5rem;
}

/* 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-radius: var(--radius);
  border: 1px solid var(--ice);
}

.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;
}

.contact-form .btn-primary:hover {
  box-shadow: inset 0 -2px 0 var(--ember);
}

/* 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);
}

/* Responsive */
@media (max-width: 900px) {
  .intro-split,
  .approach-layout,
  .studio-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 2rem;
    max-width: none;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .menu-btn { 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; }
}
