:root {
  --bg: #C0D6ED;
  --ink: #732E33;
  --line: rgba(115, 46, 51, 0.34);
  --gutter: clamp(18px, 3.2vw, 56px);
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", "Arial Nova", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; width: 100%; height: auto; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 1000;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  background: rgba(192, 214, 237, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
}
.brand-name {
  display: inline-block;
  line-height: 1;
}
.site-nav { display: flex; gap: clamp(18px, 3vw, 50px); }
.site-nav a, .brand, .site-footer a { position: relative; }
.site-nav a::after, .brand::after, .site-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transition: right .2s ease;
}
.site-nav a:hover::after, .brand:hover::after, .site-footer a:hover::after { right: 0; }

.language-toggle {
  justify-self: end;
  border: 0;
  background: transparent;
  padding: 10px 0 10px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.language-toggle .slash { opacity: .45; margin: 0 4px; }
.language-toggle .lang { opacity: .42; transition: opacity .2s ease; }
html[lang="no"] .language-toggle .lang-no,
html[lang="en"] .language-toggle .lang-en { opacity: 1; }

main { overflow: clip; }
.hero {
  min-height: 100svh;
  padding: calc(var(--header-h) + 4vh) var(--gutter) 5vh;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, .65fr);
  grid-template-rows: 1fr auto;
  gap: 36px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.hero-copy { align-self: center; }
.eyebrow {
  margin: 0 0 clamp(22px, 4vh, 52px);
  font-size: clamp(11px, .85vw, 14px);
  font-weight: 600;
  letter-spacing: .09em;
}
h1 {
  margin: 0;
  font-size: clamp(72px, 13.4vw, 240px);
  line-height: .77;
  letter-spacing: -.07em;
  font-weight: 500;
}
.hero-intro {
  align-self: end;
  padding-bottom: .4vw;
}
.hero-intro p {
  margin: 0;
  max-width: 520px;
  font-size: clamp(17px, 1.45vw, 27px);
  line-height: 1.22;
  letter-spacing: -.025em;
}

.work, .services, .contact { padding: 0 var(--gutter); }
.section-heading {
  min-height: 175px;
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: end;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.section-number {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}
h2 {
  margin: 0;
  font-size: clamp(35px, 4.8vw, 78px);
  line-height: .95;
  letter-spacing: -.05em;
  font-weight: 500;
}

.project { margin: 0; padding: var(--gutter) 0 0; }
.project img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(255,255,255,.18);
}
.project-wide img { aspect-ratio: 16 / 10; }
.project-landscape img { aspect-ratio: 2048 / 1298; }
.project figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.project-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}

.services { padding-top: clamp(70px, 10vw, 160px); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.service {
  min-height: 350px;
  padding: 30px clamp(18px, 2.8vw, 45px) 45px 0;
  border-right: 1px solid var(--line);
}
.service + .service { padding-left: clamp(18px, 2.8vw, 45px); }
.service:last-child { border-right: 0; }
.service h3 {
  margin: 0 0 110px;
  font-size: clamp(26px, 2.4vw, 42px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 500;
}
.service p {
  margin: 0;
  max-width: 430px;
  font-size: clamp(15px, 1.1vw, 19px);
  line-height: 1.35;
}

.contact { padding-top: clamp(70px, 10vw, 160px); }
.contact-grid {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.6fr .7fr;
  align-items: end;
  gap: 40px;
  padding: 40px 0 55px;
  border-bottom: 1px solid var(--line);
}
.contact-lead {
  margin: 0;
  max-width: 980px;
  font-size: clamp(38px, 5.4vw, 90px);
  line-height: .98;
  letter-spacing: -.055em;
}
.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-bottom: 5px;
  font-size: clamp(16px, 1.2vw, 20px);
}
.contact-details a { border-bottom: 1px solid transparent; }
.contact-details a:hover { border-bottom-color: currentColor; }
.contact-details p { margin: 18px 0 0; }

.site-footer {
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 var(--gutter);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-footer p { margin: 0; }
.site-footer > a { justify-self: end; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.75,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 820px) {
  :root { --header-h: 70px; }
  .site-header {
    grid-template-columns: 1fr auto;
    font-size: 11px;
  }
  .site-nav { display: none; }
  .brand { gap: 10px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { max-width: 135px; }
  .hero {
    min-height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    align-items: end;
    gap: 34px;
    padding-top: calc(var(--header-h) + 20px);
  }
  .hero-copy { align-self: end; }
  h1 { font-size: clamp(66px, 22vw, 130px); }
  .hero-intro { max-width: 92%; }
  .section-heading { min-height: 130px; grid-template-columns: 56px 1fr; }
  .project-pair { grid-template-columns: 1fr; gap: 0; }
  .project img, .project-wide img { aspect-ratio: 4 / 3; }
  .project-landscape img { aspect-ratio: 2048 / 1298; }
  .services-grid { grid-template-columns: 1fr; }
  .service, .service + .service {
    min-height: 0;
    padding: 26px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .service:last-child { border-bottom: 0; }
  .service h3 { margin-bottom: 65px; }
  .contact-grid {
    grid-template-columns: 1fr;
    min-height: 520px;
    align-content: space-between;
  }
  .contact-details { margin-top: 30px; }
  .site-footer {
    grid-template-columns: 1fr auto;
    min-height: 140px;
    align-content: center;
    row-gap: 12px;
  }
  .site-footer > a { grid-column: 2; grid-row: 1; }
}


@media (max-width: 460px) {
  .hero-intro p { font-size: 17px; }
  .section-number, .project figcaption, .site-footer { font-size: 10px; }
  .contact-lead { font-size: 42px; }
}

/* Refined portfolio width */
.work {
  width: min(88vw, 1500px);
  margin-inline: auto;
  padding-inline: 0;
}

/* About */
.about {
  width: min(88vw, 1500px);
  margin-inline: auto;
  padding: clamp(70px, 10vw, 160px) 0 0;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 6vw, 110px);
  align-items: end;
  padding: var(--gutter) 0 clamp(70px, 8vw, 130px);
  border-bottom: 1px solid var(--line);
}
.about-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.portrait-note {
  position: absolute;
  left: calc(100% - 145px);
  top: 70px;
  width: clamp(240px, 24vw, 340px);
  color: rgba(115, 46, 51, 0.88);
  pointer-events: none;
}
.about-portrait {
  margin: 0;
  position: relative;
}
.portrait-note-arrow {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.portrait-note-text {
  position: absolute;
  right: 12px;
  top: -6px;
  display: inline-block;
  font-family: "Helvetica Neue", "Arial Nova", Helvetica, Arial, sans-serif;
  font-size: clamp(18px, 1.35vw, 24px);
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  transform: rotate(-8deg);
  white-space: nowrap;
}

.portrait-caption {
  margin-top: 10px;
  font-size: clamp(13px, .95vw, 16px);
  line-height: 1.3;
  font-style: italic;
  letter-spacing: .01em;
}
.about-copy {
  max-width: 760px;
  padding-bottom: 4px;
}
.about-copy p { margin: 0; }
.about-lead {
  margin-bottom: clamp(38px, 5vw, 78px) !important;
  font-size: clamp(30px, 3.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.about-copy p:last-child {
  max-width: 620px;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.42;
}

@media (max-width: 820px) {
  .work, .about { width: calc(100% - (2 * var(--gutter))); }
  .about-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 38px;
  }
  .about-portrait { max-width: 620px; }
  .portrait-note {
    left: 6px;
    top: auto;
    bottom: 76px;
    width: 152px;
  }
  .portrait-note-arrow {
    width: 100%;
    transform: scaleX(-1) rotate(-42deg);
    transform-origin: left center;
  }
  .portrait-note-text {
    left: 8px;
    right: auto;
    top: 48px;
    font-size: 22px;
    transform: rotate(-7deg);
  }
  .about-copy { padding-bottom: 0; }
  .about-lead { margin-bottom: 34px !important; }
}
