:root {
  --navy: #0b1b33;
  --navy-deep: #081428;
  --gold: #d9b47a;
  --gold-light: #e8cc9c;
  --cream: #f7f1e8;
  --white: #ffffff;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --header-h: 96px;
  --container: 1280px;

  /* Photos float a little above the cream. Navy-tinted rather than black, so the shadow sits in the palette. */
  --shadow-photo: 0 2px 6px rgba(11, 27, 51, 0.16), 0 12px 28px rgba(11, 27, 51, 0.18);
  --shadow-photo-lg: 0 4px 12px rgba(11, 27, 51, 0.18), 0 18px 44px rgba(11, 27, 51, 0.2);
  /* Full-height photo meeting a text panel: the shadow falls onto the panel (flip the x offset for a photo on the right). */
  --shadow-edge: 6px 0 28px rgba(11, 27, 51, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn-outline {
  padding: 15px 28px;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-solid {
  padding: 18px 32px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 500;
}

.btn-solid:hover {
  background: var(--gold-light);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  background: var(--navy);
}

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

.logo img {
  height: 58px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 62px;
}

.site-nav ul {
  display: flex;
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
  color: var(--gold);
}

.site-nav ul a:hover::after,
.site-nav ul a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Wide windows trim some sky above and floor below, keeping both chairs and ottomans;
     narrow ones trim the sides, centred on the two chairs. */
  object-position: 52% 75%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Warm, dark brown rather than navy: it sits with the golden tones of the photo. */
    linear-gradient(90deg, rgba(56, 38, 20, 0.5) 0%, rgba(56, 38, 20, 0.2) 35%, rgba(56, 38, 20, 0) 55%),
    linear-gradient(0deg, rgba(56, 38, 20, 0.32) 0%, rgba(56, 38, 20, 0) 45%);
}

/* As in the design: the text hangs off the window's left edge, not the header's container. */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: none;
  padding-left: clamp(20px, 6.25vw, 140px);
  padding-bottom: clamp(72px, 16vh, 150px);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(48px, 5.2vw, 76px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-rule {
  display: block;
  width: 240px;
  height: 1px;
  margin: 34px 0 32px;
  background: var(--gold);
}

.hero p {
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* ---------- Contact ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-page {
  display: grid;
  grid-template-columns: 46fr 54fr;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  background: var(--cream);
  color: var(--navy);
}

.contact-panel {
  display: flex;
  align-items: center;
  /* Vertical rhythm follows the window height, so the form and the whole photo fit at 100 % zoom on a laptop. */
  padding: clamp(20px, 4vh, 72px) clamp(32px, 4vw, 64px) clamp(20px, 4vh, 72px) clamp(40px, 6vw, 100px);
}

.contact-inner {
  width: 100%;
  max-width: 604px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 36px;
  padding-bottom: 14px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 58px 1px no-repeat;
}

.contact-inner .eyebrow {
  margin-bottom: clamp(14px, 3vh, 36px);
}

.contact-inner h1,
.contact-thanks h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, min(4.2vw, 6.6vh), 72px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--navy);
}

.contact-lead {
  margin: clamp(12px, 2.6vh, 36px) 0 clamp(14px, 2.6vh, 34px);
  font-size: clamp(15px, 2.1vh, 18px);
  line-height: 1.55;
  color: rgba(11, 27, 51, 0.8);
}

.contact-form {
  display: grid;
  gap: clamp(10px, 1.4vh, 14px);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: clamp(11px, 1.5vh, 14px) 16px;
  border: 1px solid rgba(11, 27, 51, 0.28);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.35);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--navy);
  transition: border-color 0.2s, background-color 0.2s;
}

.field textarea {
  min-height: clamp(64px, 10vh, 134px);
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(11, 27, 51, 0.7);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.7);
}

.field-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  font-size: 14px;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: #a8443a;
}

.contact-form .btn-solid,
.contact-thanks .btn-solid {
  justify-self: start;
  justify-content: center;
  min-width: 350px;
  margin-top: clamp(4px, 1.6vh, 18px);
  border: 0;
  cursor: pointer;
}

.contact-form .btn-solid {
  padding-top: clamp(13px, 2vh, 18px);
  padding-bottom: clamp(13px, 2vh, 18px);
}

.contact-form .btn-solid:disabled {
  opacity: 0.6;
  cursor: progress;
}

.contact-thanks {
  margin-top: 36px;
}

.contact-thanks h2 {
  font-size: clamp(32px, 2.8vw, 44px);
}

.contact-thanks p {
  margin: 16px 0 16px;
  font-size: 17px;
  line-height: 1.6;
}

.contact-photo {
  position: relative;
  z-index: 1;
  min-height: 420px;
  box-shadow: -6px 0 28px rgba(11, 27, 51, 0.22);
}

.contact-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Portrait photo: keep the chandelier and the chairs, trim the rug at the bottom. */
  object-position: 50% 30%;
  /* No CSS filter: the file itself is colour-graded to match the Tjenester
     photo (same mean colour, saturation and contrast per channel).
     Source: originals/kontakt.jpg. */
}

/* ---------- About ---------- */

.about-page {
  display: grid;
  grid-template-columns: 53fr 47fr;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  background: var(--cream);
  color: var(--navy);
}

.about-photo {
  position: relative;
  z-index: 1;
  min-height: 420px;
  box-shadow: var(--shadow-edge);
}

.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-panel {
  display: flex;
  align-items: center;
  padding: clamp(24px, 4vh, 56px) clamp(32px, 3.5vw, 64px) clamp(24px, 4vh, 64px) clamp(32px, 4.5vw, 76px);
}

.about-inner {
  max-width: 620px;
}

.about-inner .eyebrow {
  margin-bottom: 30px;
}

.about-inner h1 {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-size: clamp(44px, 4vw, 66px);
  font-weight: 400;
  line-height: 1.1;
}

.about-inner > p:not(.eyebrow) {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(11, 27, 51, 0.8);
}

.about-quote {
  margin: clamp(20px, 3.5vh, 40px) 0 0;
}

.about-quote blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 1.95vw, 32px);
  font-style: italic;
  line-height: 1.3;
}

.about-quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(14px, 3vh, 32px);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.about-quote figcaption::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Services ---------- */

.services-page {
  display: grid;
  /* The photo column is at most 40.5 % wide, and never wider than the photo's own proportions at the
     window's height (917 × 1305): the whole chosen crop, chandelier to chair leg, is always in view. */
  grid-template-columns: min(40.5%, calc((100vh - var(--header-h)) * 0.7027)) minmax(0, 1fr);
  grid-template-columns: min(40.5%, calc((100svh - var(--header-h)) * 0.7027)) minmax(0, 1fr);
  background: var(--cream);
  color: var(--navy);
}

/* The photo stays in view while the services scroll past. */
.services-photo {
  position: sticky;
  top: var(--header-h);
  z-index: 1;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  box-shadow: var(--shadow-edge);
}

.services-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The column is never wider than the photo, so only the sides get trimmed, never the height. */
  object-position: 50% 50%;
}

/* Vertical sizes follow the window height, so the whole page fits one screen on a laptop at 100 % zoom.
   The photos keep their own proportions: when space is short they get smaller, never squeezed. */
.services-panel {
  --thumb-w: min(250px, 15.5vw, 19.5vh);
  padding: clamp(14px, 2.2vh, 32px) clamp(24px, 4.1vw, 66px) clamp(14px, 2.2vh, 32px) clamp(24px, 4.7vw, 75px);
}

.services-head {
  text-align: center;
  margin-bottom: clamp(10px, 1.5vh, 18px);
}

.services-head .eyebrow {
  margin-bottom: clamp(8px, 1.4vh, 14px);
  padding-bottom: 0;
  font-size: 13px;
  background: none;
}

.services-head h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, min(2.75vw, 4.6vh), 46px);
  font-weight: 400;
  line-height: 1.1;
}

.services-head p:not(.eyebrow) {
  max-width: 560px;
  margin: clamp(5px, 0.8vh, 10px) auto 0;
  font-size: clamp(14px, 1.65vh, 16px);
  line-height: 1.5;
  color: rgba(11, 27, 51, 0.8);
}

.services {
  display: grid;
  gap: clamp(8px, 1.1vh, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  display: grid;
  grid-template-columns: var(--thumb-w) minmax(0, 1fr);
  gap: clamp(18px, 1.75vw, 28px);
  align-items: center;
}

/* Same proportions as the chosen crop of the living room photo (1125 × 746), so all of it shows. */
.service img {
  width: 100%;
  aspect-ratio: 1125 / 746;
  object-fit: cover;
  box-shadow: var(--shadow-photo);
}

.service h2,
.partner h2 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.9vh, 28px);
  font-weight: 400;
  line-height: 1.15;
}

.service p,
.partner p {
  margin: 0 0 clamp(6px, 0.9vh, 8px);
  font-size: clamp(14px, 1.65vh, 16px);
  line-height: 1.45;
  color: rgba(11, 27, 51, 0.8);
}

.service p:last-child,
.partner p:last-child {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a8783f;
  cursor: pointer;
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--navy);
}

/* «Les mer»: the full text about a service, in a panel over the page. */
.service-dialog {
  width: min(680px, calc(100% - 40px));
  max-height: calc(100vh - 64px);
  max-height: calc(100svh - 64px);
  margin: auto;
  padding: 0;
  border: 0;
  overflow-y: auto;
  background: var(--cream);
  color: var(--navy);
  box-shadow: 0 24px 80px rgba(8, 20, 40, 0.45);
}

.service-dialog::backdrop {
  background: rgba(8, 20, 40, 0.6);
}

.service-dialog-inner {
  position: relative;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 60px) clamp(32px, 4vw, 48px);
}

.service-dialog .eyebrow {
  margin-bottom: 16px;
  padding-bottom: 0;
  font-size: 12px;
  background: none;
}

.service-dialog h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.1;
}

.service-dialog-lead {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.8vw, 24px);
  font-style: italic;
  line-height: 1.3;
}

.service-dialog p:not(.eyebrow):not(.service-dialog-lead) {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(11, 27, 51, 0.82);
}

.service-dialog .btn-solid {
  margin-top: 12px;
  padding: 14px 28px;
  font-size: 12px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  transition: color 0.2s;
}

.dialog-close:hover {
  color: #a8783f;
}

.partner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  margin-top: clamp(12px, 1.6vh, 22px);
  padding-top: clamp(8px, 1vh, 12px);
  border-top: 1px solid rgba(11, 27, 51, 0.15);
}

.partner > div {
  max-width: 520px;
}

.partner-eyebrow {
  margin: 0 0 clamp(6px, 1vh, 10px);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a8783f;
}

.partner h2 {
  margin-bottom: clamp(6px, 1vh, 10px);
  font-size: clamp(26px, 3.6vh, 36px);
}

.partner p {
  margin-bottom: clamp(10px, 1.4vh, 14px);
}

.partner .btn-solid {
  padding: 13px 26px;
  font-size: 12px;
}

/* Portrait photo of the Platou Home corner: the height follows the window, the width follows the height. */
.partner img {
  height: min(273px, 22vh);
  width: auto;
  aspect-ratio: 700 / 817;
  object-fit: cover;
  box-shadow: var(--shadow-photo-lg);
}

/* ---------- Responsive ---------- */

/* Low laptop windows: keep Om Sirina on one screen. */
@media (min-width: 901px) and (max-height: 880px) {
  .about-inner .eyebrow { margin-bottom: 18px; }
  .about-inner h1 { margin-bottom: 18px; font-size: clamp(40px, 6.5vh, 66px); }
  .about-inner > p:not(.eyebrow) { margin-bottom: 14px; font-size: 15.5px; line-height: 1.55; }
  .about-quote blockquote { font-size: clamp(22px, 3.2vh, 32px); }
}

/* Low laptop windows: tighten the contact form a little more so the page still fits without scrolling. */
@media (min-width: 901px) and (max-height: 740px) {
  .contact-inner .eyebrow { margin-bottom: 12px; padding-bottom: 10px; }
  .contact-lead { margin: 10px 0 12px; font-size: 15px; }
  .contact-form { gap: 8px; }
  .field-row { gap: 8px; }
  .field textarea { min-height: 56px; }
}

@media (max-width: 1100px) {
  .site-nav { gap: 36px; }
  .site-nav ul { gap: 28px; }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }

  .container { padding: 0 20px; }

  .logo img { height: 44px; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 1px;
    background: var(--gold);
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    gap: 48px;
    background: var(--navy);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .site-nav ul a { font-size: 14px; }

  .hero-content { padding-bottom: 72px; }

  .hero::before {
    background: linear-gradient(0deg, rgba(56, 38, 20, 0.7) 0%, rgba(56, 38, 20, 0.2) 55%, rgba(56, 38, 20, 0) 100%);
  }

  .hero-rule { width: 160px; margin: 24px 0; }

  .hero p { font-size: 16px; }

  .contact-page { grid-template-columns: 1fr; }
  .contact-panel { padding: 48px 20px 56px; }
  .eyebrow { margin-bottom: 24px; font-size: 13px; }
  .contact-lead { margin: 24px 0; font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form .btn-solid,
  .contact-thanks .btn-solid { min-width: 0; width: 100%; }
  .contact-photo { min-height: 0; aspect-ratio: 1 / 1; box-shadow: none; }

  .services-page { grid-template-columns: 1fr; }
  .services-photo { position: static; height: auto; aspect-ratio: 917 / 1305; box-shadow: none; }
  .services-panel { padding: 40px 20px 56px; }
  .services-head { margin-bottom: 28px; }
  .services-head .eyebrow { margin-bottom: 14px; }
  .services-head h1 { font-size: 36px; }
  .services-head p:not(.eyebrow) { margin-top: 12px; font-size: 16px; }
  .services { gap: 28px; }
  .service { grid-template-columns: 1fr; gap: 14px; }
  .service h2, .partner h2 { font-size: 26px; }
  .service p, .partner p { font-size: 16px; }
  .partner { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; padding-top: 28px; }
  .partner h2 { font-size: 32px; }
  .partner img { order: -1; height: auto; width: 100%; max-width: 420px; }
  .service-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); }

  .about-page { grid-template-columns: 1fr; }
  .about-photo { min-height: 0; aspect-ratio: 4 / 3; box-shadow: none; }
  .about-panel { padding: 40px 20px 56px; }
  .about-inner > p:not(.eyebrow) { font-size: 16px; }
}
