:root {
  --ink: #2B2523;
  --cream: #F5F0E8;
  --body-text: #4A4340;
  --accent-light: #A8633A;
  --accent-dark: #D9A27F;
  --footer-secondary: #CFC7BD;
  --footer-muted: #9C948A;
  --footer-divider: #4A4340;
  --card-hover: #FFFFFF;

  --font-display: 'Jost', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --page-pad: clamp(20px, 5vw, 72px);
  --content-max: 1400px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: pretty;
}

p { text-wrap: pretty; }

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}

/* ================= intro overlay ================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--ink);
  pointer-events: none;
  opacity: 1;
  transition: opacity 2.6s ease;
}
.intro.fade { opacity: 0; }
.intro.done { display: none; }

.shard-stage {
  position: relative;
  width: min(78vw, 640px);
  aspect-ratio: 3891 / 2481;
}
.shard {
  position: absolute;
  inset: 0;
  clip-path: var(--clip);
  transform: translate(0, 0) rotate(0deg) scale(1);
  opacity: 1;
  transition: transform 3.6s cubic-bezier(.2,.7,.2,1), opacity 3.2s ease 1s;
  will-change: transform;
}
.shard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.intro.break .shard {
  transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1.15);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .intro { transition: none; }
  .shard { transition: none; }
}

/* ================= hero ================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--page-pad);
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}
.brand { display: block; margin: -14px 0; }
.brand-logo { height: 84px; width: auto; display: block; }

.nav { display: flex; gap: 32px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.nav a { color: var(--cream); transition: color 0.25s; }
.nav a:hover { color: var(--accent-dark); }

.map-area {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 8px clamp(16px, 4vw, 64px) 16px;
}

/* Handoff doesn't specify a small-screen header; shrink the lockup so the
   three nav links stay on one row instead of running off the edge. */
@media (max-width: 700px) {
  .brand-logo { height: 56px; }
  .brand { margin: -8px 0; }
  .nav { gap: 18px; font-size: 13px; }
}
/* Height comes from the flex leftover so header + map + headline fit in 100vh;
   the spec's clamp becomes the upper bound rather than a fixed height. */
.iceland-map {
  height: 100%;
  width: auto;
  min-height: 220px;
  max-height: clamp(220px, calc(100vh - 340px), 720px);
  max-width: 100%;
  aspect-ratio: 1100 / 600;
  display: block;
  /* The frame is a crop of western Iceland — the north, south and east
     coasts run past the edges and must be cut, not spill over the hero. */
  overflow: hidden;
}
.iceland-map .coast {
  stroke-dasharray: var(--coast-len);
  stroke-dashoffset: var(--coast-len);
  transition: stroke-dashoffset 3.4s cubic-bezier(.4,0,.2,1);
}
.iceland-map .pin-group .ring,
.iceland-map .pin-group .pin,
.iceland-map .pin-group .label {
  opacity: 0;
  transition: opacity 1.2s ease calc(2.6s + var(--stagger) * 0.35s);
}
.iceland-map .label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.08em;
  fill: var(--cream);
}
.iceland-map.draw .coast { stroke-dashoffset: 0; }
.iceland-map.draw .pin-group .ring,
.iceland-map.draw .pin-group .pin,
.iceland-map.draw .pin-group .label { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .iceland-map .coast,
  .iceland-map .pin-group .ring,
  .iceland-map .pin-group .pin,
  .iceland-map .pin-group .label { transition: none; }
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  padding: 0 var(--page-pad) clamp(32px, 5vw, 56px);
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}
.hero-copy { display: flex; flex-direction: column; gap: 14px; }
.hero-copy .eyebrow { color: var(--accent-dark); }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.25s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); }

/* ================= intro copy ================= */
.intro-copy {
  padding: clamp(56px, 8vw, 110px) var(--page-pad);
  max-width: var(--content-max);
  margin: 0 auto;
}
.intro-copy p {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.45;
  max-width: 44ch;
  color: var(--ink);
}

/* ================= companies ================= */
.companies {
  border-top: 1px solid var(--ink);
  max-width: var(--content-max);
  margin: 0 auto;
}
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 45%, 100%), 1fr));
  border-left: 1px solid var(--ink);
}
.company-cell {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 280px;
  padding: 32px 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--cream);
  transition: background 0.25s;
}
.company-cell:hover { background: var(--card-hover); }
.company-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.company-cell h2 {
  font-size: clamp(30px, 2.6vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.company-cell p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body-text);
}

/* ================= about ================= */
.about {
  padding: clamp(72px, 10vw, 140px) var(--page-pad);
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}
.about-body {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-body h2 {
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.about-body p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--body-text);
  max-width: 60ch;
}

/* ================= footer ================= */
.site-footer { background: var(--ink); color: var(--cream); }
.footer-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) var(--page-pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.footer-logo { height: 120px; width: auto; display: block; margin: -20px 0 -20px -24px; }
.footer-email { font-size: 22px; color: var(--cream); transition: color 0.25s; }
.footer-email:hover { color: var(--accent-dark); }
.footer-phone { font-size: 18px; color: var(--footer-secondary); transition: color 0.25s; }
.footer-phone:hover { color: var(--accent-dark); }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--footer-secondary);
}
.footer-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--footer-divider);
  padding: 20px var(--page-pad);
  max-width: var(--content-max);
  margin: 0 auto;
  font-size: 13px;
  color: var(--footer-muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
