@font-face {
  font-family: "Cormorant Garamond";
  src: url("./fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./fonts/CormorantGaramond-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bjorkvit: #f6f5f2;
  --barrskog: #2a3b32;
  --mossgron: #5f6f60;
  --renlav: #9cad9a;
  --naver: #d9d2c7;
  --silverlark: #bfc5c6;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: 1180px;
  --wide-shell: 1320px;
  --gutter: clamp(1.1rem, 3vw, 2.5rem);
  --line: rgb(42 59 50 / 0.16);
  --soft-line: rgb(191 197 198 / 0.58);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 5.5rem;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--barrskog);
  background: var(--bjorkvit);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

p {
  max-width: 43rem;
}

p + p {
  margin-top: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--barrskog);
  font-family: var(--font-heading);
  font-weight: 430;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  max-width: 46rem;
  font-size: clamp(3.75rem, 6.5vw, 6.15rem);
  line-height: 1.08;
}

h2 {
  max-width: 44rem;
  font-size: clamp(2.7rem, 5vw, 4.85rem);
}

h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
}

.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  color: var(--bjorkvit);
  background: var(--barrskog);
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  border-bottom: 1px solid var(--soft-line);
  background: rgb(246 245 242 / 0.97);
}

.header-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: clamp(1.25rem, 2.8vw, 2.5rem);
}

.wordmark {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: clamp(9.4rem, 13vw, 11.5rem);
  color: var(--barrskog);
  line-height: 0;
  text-decoration: none;
}

.wordmark-image {
  display: block;
  width: 100%;
  height: auto;
}

.wordmark-text,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
}

.site-nav {
  display: flex;
  gap: clamp(1.25rem, 2.4vw, 2rem);
  align-items: center;
  margin-left: auto;
  color: rgb(42 59 50 / 0.88);
  font-size: 0.92rem;
  font-weight: 560;
}

.site-nav a {
  text-decoration: none;
  text-underline-offset: 0.35em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
}

.mobile-menu {
  position: relative;
  display: none;
  margin-left: auto;
}

.mobile-menu summary {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  padding: 0.62rem 0.78rem;
  border: 1px solid rgb(42 59 50 / 0.22);
  border-radius: 999px;
  color: var(--barrskog);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1.2;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu[open] summary {
  border-color: rgb(95 111 96 / 0.58);
  background: rgb(217 210 199 / 0.28);
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  display: grid;
  min-width: 12.5rem;
  padding: 0.65rem;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: var(--bjorkvit);
}

.mobile-menu-panel a {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: var(--barrskog);
  font-size: 0.94rem;
  font-weight: 620;
  text-decoration: none;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a:focus-visible {
  background: rgb(217 210 199 / 0.34);
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.22rem;
  border: 1px solid var(--barrskog);
  border-radius: 999px;
  color: var(--bjorkvit);
  background: var(--barrskog);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 680;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  color: var(--barrskog);
  background: transparent;
}

.button-large {
  min-height: 3.25rem;
  padding: 1rem 1.55rem;
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  color: var(--barrskog);
  font-size: 0.98rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgb(95 111 96 / 0.48);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
}

.editorial-hero {
  padding-block: clamp(3.8rem, 7vw, 7rem) clamp(4rem, 6.5vw, 6.5rem);
}

.editorial-hero-grid {
  display: grid;
  width: min(100%, var(--wide-shell));
  grid-template-columns: minmax(0, 0.92fr) minmax(30rem, 1.08fr);
  gap: clamp(2.5rem, 5.5vw, 5.5rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: clamp(1.15rem, 2vw, 1.65rem);
}

.hero-lead {
  max-width: 43rem;
  color: rgb(42 59 50 / 0.9);
  font-size: clamp(1.16rem, 1.65vw, 1.42rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  align-items: center;
  margin-top: 0.35rem;
}

.hero-portrait {
  position: relative;
  align-self: center;
  aspect-ratio: 16 / 10;
  min-height: clamp(22rem, 30vw, 28.5rem);
  max-height: 30rem;
  border: 1px solid rgb(42 59 50 / 0.12);
  border-radius: var(--radius);
  background: var(--naver);
  transform: translateY(-0.35rem);
  overflow: hidden;
}

.hero-portrait-image,
.service-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-portrait-image {
  object-position: 50% 34%;
}

.section {
  padding-block: clamp(4.2rem, 7vw, 7rem);
  border-top: 1px solid var(--soft-line);
}

.service-row > span,
.service-number {
  display: block;
  color: var(--mossgron);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 680;
  letter-spacing: 0.12em;
}

.section-split {
  display: grid;
  width: min(100%, 1080px);
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(2.25rem, 5vw, 4.75rem);
  align-items: center;
}

.section-copy {
  color: rgb(42 59 50 / 0.88);
  font-size: clamp(1.04rem, 1.2vw, 1.12rem);
  line-height: 1.7;
}

.line-list {
  display: grid;
  gap: 0;
  margin-top: 2.2rem;
  list-style: none;
  border-top: 1px solid var(--line);
}

.line-list li {
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
  color: rgb(42 59 50 / 0.9);
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  line-height: 1.55;
}

.section-intro {
  margin-top: 1.2rem;
  color: rgb(42 59 50 / 0.84);
  font-size: clamp(1.02rem, 1.2vw, 1.1rem);
  line-height: 1.68;
}

.service-rows {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  padding-block: clamp(1.5rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--line);
}

.service-row h3 {
  max-width: 26rem;
}

.service-row p {
  margin-top: 0.85rem;
  color: rgb(42 59 50 / 0.84);
  font-size: 1.02rem;
  line-height: 1.68;
}

.service-row .text-link {
  margin-top: 1rem;
}

.contact-editorial {
  padding-block: clamp(4rem, 6.5vw, 6rem);
  border-top: 1px solid var(--soft-line);
}

.contact-grid {
  display: grid;
  width: min(100%, 1080px);
  grid-template-columns: minmax(0, 0.62fr) minmax(16rem, 0.38fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.contact-grid p {
  margin-top: 1rem;
  color: rgb(42 59 50 / 0.86);
  font-size: clamp(1.04rem, 1.24vw, 1.14rem);
  line-height: 1.68;
}

.contact-actions {
  display: grid;
  justify-items: end;
}

.contact-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  color: rgb(42 59 50 / 0.88);
  font-size: 0.96rem;
}

.contact-links a,
.footer-links a {
  text-decoration: none;
}

.contact-links a:hover,
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.site-footer {
  padding-block: clamp(1.6rem, 2.6vw, 2.2rem);
  border-top: 1px solid var(--soft-line);
  background: rgb(217 210 199 / 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-symbol {
  display: block;
  width: 2.55rem;
  height: 2.55rem;
}

.service-hero {
  position: relative;
  min-height: clamp(26rem, 44vw, 39rem);
  border-bottom: 1px solid var(--soft-line);
  background:
    linear-gradient(90deg, rgb(246 245 242 / 0.97) 0%, rgb(246 245 242 / 0.86) 44%, rgb(246 245 242 / 0.34) 100%),
    url("./images/hero-meeting-room.png") right center / cover no-repeat,
    var(--naver);
}

.service-hero-inner {
  display: grid;
  min-height: inherit;
  align-content: center;
  justify-items: start;
}

.service-hero h1 {
  max-width: 42rem;
  font-size: clamp(3.75rem, 6.3vw, 5.85rem);
}

.service-hero .hero-lead {
  margin-top: 1.35rem;
}

.service-hero .hero-actions {
  margin-top: 1.65rem;
}

.service-context {
  padding-block: clamp(4rem, 7vw, 6.5rem);
  border-bottom: 1px solid var(--soft-line);
}

.service-context-inner {
  display: grid;
  width: min(100%, 1080px);
  gap: clamp(2rem, 4.5vw, 4rem);
}

.service-context-copy {
  max-width: 760px;
}

.service-context-copy p {
  margin-top: 1.2rem;
  color: rgb(42 59 50 / 0.88);
  font-size: clamp(1.04rem, 1.24vw, 1.14rem);
  line-height: 1.72;
}

.context-lines {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.context-line {
  display: grid;
  grid-template-columns: minmax(12rem, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding-block: clamp(1.2rem, 2.3vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}

.context-line h3 {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 720;
  line-height: 1.35;
}

.context-line p {
  color: rgb(42 59 50 / 0.86);
  font-size: clamp(1rem, 1.14vw, 1.08rem);
  line-height: 1.65;
}

.service-detail {
  padding-block: clamp(4rem, 7vw, 6.8rem);
  border-top: 1px solid var(--soft-line);
}

.service-detail:first-of-type {
  border-top: 0;
}

.service-context + .service-detail {
  border-top: 0;
}

.service-detail-grid {
  display: grid;
  width: min(100%, 1080px);
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

.service-number {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.service-detail-copy {
  max-width: 920px;
}

.service-detail-copy h2 {
  margin-bottom: 1.25rem;
}

.service-detail-copy > p {
  max-width: 48rem;
  color: rgb(42 59 50 / 0.88);
  font-size: clamp(1.04rem, 1.25vw, 1.14rem);
  line-height: 1.7;
}

.service-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.service-list-grid h3 {
  margin-bottom: 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.service-list-grid ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.1rem;
}

.service-list-grid li {
  padding-left: 0.15rem;
  color: rgb(42 59 50 / 0.88);
  font-size: 0.98rem;
  line-height: 1.58;
}

.service-closing {
  padding-block: clamp(4rem, 7vw, 6.5rem);
  border-top: 1px solid var(--soft-line);
}

.service-closing-inner {
  display: grid;
  justify-items: center;
  max-width: 760px;
  text-align: center;
}

.service-closing p {
  margin-top: 1rem;
  color: rgb(42 59 50 / 0.86);
  font-size: clamp(1.04rem, 1.24vw, 1.14rem);
  line-height: 1.68;
}

.service-closing .button {
  margin-top: 1.5rem;
}

:focus-visible {
  outline: 3px solid var(--mossgron);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  h1 {
    font-size: clamp(3.4rem, 10vw, 5.4rem);
  }

  .header-inner {
    flex-wrap: wrap;
    min-height: 78px;
    padding-block: 0.85rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .header-inner > .button {
    margin-left: auto;
  }

  .editorial-hero-grid,
  .section-split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .context-line {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .service-number {
    width: 4rem;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .header-inner {
    min-height: 66px;
    flex-wrap: nowrap;
    gap: 0.55rem;
    padding-block: 0.75rem;
  }

  .wordmark {
    width: clamp(7.4rem, 33vw, 8.5rem);
  }

  .header-inner > .button {
    margin-left: 0;
    min-height: 2.5rem;
    padding: 0.64rem 0.84rem;
    font-size: 0.82rem;
  }

  .editorial-hero {
    padding-block: 3rem 4rem;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-portrait {
    order: -1;
    aspect-ratio: 16 / 10;
    max-height: 22rem;
    transform: none;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .service-list-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions,
  .contact-links,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-actions {
    justify-items: start;
  }

  .service-hero {
    min-height: 29rem;
    background:
      linear-gradient(180deg, rgb(246 245 242 / 0.96) 0%, rgb(246 245 242 / 0.82) 52%, rgb(246 245 242 / 0.44) 100%),
      url("./images/hero-meeting-room.png") center / cover no-repeat,
      var(--naver);
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 1rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.1rem);
  }

  h2 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .button {
    width: fit-content;
  }

  .editorial-hero .hero-actions {
    flex-wrap: nowrap;
    gap: 0.7rem;
    align-items: center;
    flex-direction: row;
  }

  .editorial-hero .hero-actions .button {
    min-height: 2.55rem;
    padding: 0.68rem 0.9rem;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .editorial-hero .hero-actions .text-link {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .hero-portrait {
    border-radius: 14px;
    max-height: 19rem;
  }

  .section,
  .contact-editorial,
  .service-context,
  .service-detail,
  .service-closing {
    padding-block: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
