@font-face {
  font-family: Roboto;
  src: url('/img/roboto-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url('/img/roboto-bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('/img/roboto-condensed-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('/img/roboto-condensed-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url('/img/inter-variable.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: Cardo;
  src: url('/img/cardo-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --surface: #f9f9f9;
  --header-bg: rgba(249, 249, 249, .78);
  --text: #111;
  --muted: #666;
  --focus: #a84427;
  --focus-on-orange: #111;
  --orange: #ee711e;
  --footer: #e8d8bd;
  --footer-text: #111;
  --footer-wordmark: #111;
  --footer-muted: #55504b;
  --footer-accent: #a84427;
  --line: #dedede;
  --field: #fff;
  --shadow: 0 12px 40px rgba(0, 0, 0, .2);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --surface: #171717;
  --header-bg: rgba(23, 23, 23, .78);
  --text: #f4f1ed;
  --muted: #c8c2bc;
  --focus: #ffb783;
  --focus-on-orange: #fff;
  --orange: #b95720;
  --footer: #0c0c0c;
  --footer-text: #f2eee9;
  --footer-wordmark: #fff;
  --footer-muted: #b5bdbc;
  --footer-accent: #e47a56;
  --line: #55504b;
  --field: #242424;
  --shadow: 0 12px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--surface) !important;
  color: var(--text) !important;
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  transition: background-color .2s, color .2s;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 400;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
}

body, a {
  color: var(--text);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  z-index: 1000;
  color: var(--text);
  background: var(--surface);
  padding: 10px;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

main[id="content"] {
  scroll-margin-top: 110px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 24px;
  transition: background-color .2s, backdrop-filter .2s;
}

.header-inner {
  max-width: 1180px;
  width: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: block;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: 300px;
  height: 74px;
  overflow: visible;
}

.brand-logo .header-wordmark {
  transition: filter .2s;
}

:root[data-theme="dark"] .brand-logo .header-wordmark {
  filter: brightness(0) invert(1);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-moon {
  display: none !important;
}

:root[data-theme="dark"] .icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-moon {
  display: block !important;
}

.hero {
  padding: clamp(44px, 5vw, 68px) min(6.5rem, 8vw) clamp(44px, 6vw, 82px);
  text-align: center;
}

.hero-copy {
  max-width: 700px;
  margin: auto;
}

.hero h1 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 2.5rem + ((1vw - .2rem)*1.283), 3.27rem);
  line-height: 1.15;
  margin: 0;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

.hero .muted {
  margin: 1.25rem 0 0;
}

.hero-image {
  width: min(100%, 1280px);
  max-width: 1280px !important;
  height: auto;
  max-height: 680px;
  object-fit: cover;
  display: block;
  margin: 80px auto 0;
  border-radius: 77px 0 77px 0;
}

.intro {
  text-align: center;
  padding: clamp(35px, 5vw, 65px) 24px clamp(50px, 7vw, 90px);
  max-width: 950px;
  margin: auto;
}

.section-logo {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 28px;
}

.intro h2 {
  font-size: clamp(1.85rem, 1.85rem + ((1vw - .2rem)*1.083), 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 auto;
  max-width: 860px;
}

.intro p {
  margin: 20px 0 0;
}

.headquarters {
  position: relative;
  background: var(--orange);
  color: var(--text);
  padding: clamp(50px, 7vw, 95px) max(5vw, 24px);
}

.headquarters::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: clamp(32px, 5vw, 68px);
  background: var(--surface);
  -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxNDQwIDEwMCcgcHJlc2VydmVBc3BlY3RSYXRpbz0nbm9uZSc+PHBhdGggZmlsbD0nd2hpdGUnIGQ9J00wIDBoMTQ0MHY0NWMtMTgwIDE5LTI3MCAyNy00NTAgMTktMTgwLTgtMjcwLTMyLTQ1MC0zMEMzNjAgMzYgMTgwIDY4IDAgNTB6Jy8+PC9zdmc+") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxNDQwIDEwMCcgcHJlc2VydmVBc3BlY3RSYXRpbz0nbm9uZSc+PHBhdGggZmlsbD0nd2hpdGUnIGQ9J00wIDBoMTQ0MHY0NWMtMTgwIDE5LTI3MCAyNy00NTAgMTktMTgwLTgtMjcwLTMyLTQ1MC0zMEMzNjAgMzYgMTgwIDY4IDAgNTB6Jy8+PC9zdmc+") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

.headquarters :focus-visible {
  outline-color: var(--focus-on-orange);
}

.headquarters-grid {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: auto;
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
  gap: 24px;
}

.headquarters-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
}

.headquarters h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: clamp(2.46rem, 2.46rem + ((1vw - .2rem)*3.567), 4.6rem);
  line-height: 1.3;
  writing-mode: vertical-rl;
  margin: 0;
  white-space: nowrap;
}

.address h3 {
  font-size: clamp(1.39rem, 1.39rem + ((1vw - .2rem)*.767), 1.85rem);
  font-weight: 400;
}

.address p {
  line-height: 1.6;
}

.office-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 0 45px 0 45px;
}

.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  text-align: center;
  padding: 55px 24px 42px;
}

.site-footer h2 {
  font-size: 1.5rem;
  color: var(--footer-accent);
  font-weight: 400;
}

.site-footer p {
  line-height: 1.55;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-logo {
  width: 153px;
  height: auto;
  color: var(--footer-wordmark);
}

.footer-logo .footer-wordmark {
  fill: var(--footer-wordmark) !important;
}

.copyright {
  color: var(--footer-muted);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.footer-nav a {
  color: var(--footer-muted);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.footer-email a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.footer-nav span {
  color: var(--footer-muted);
}

.policy-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 55px 24px 80px;
}

.policy-main h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0 0 30px;
}

.policy-main h2 {
  margin-top: 32px;
}

.policy-main p, .policy-main li {
  line-height: 1.65;
}

.policy-main a {
  overflow-wrap: anywhere;
}

@media (max-width:781px) {
  .site-header {
    padding: 16px 22px;
  }
  .brand-logo {
    width: 230px;
    height: auto;
  }
  .hero {
    padding-top: 45px;
    padding-bottom: 38px;
  }
  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.65rem);
  }
  .hero-image {
    margin-top: 30px;
    border-radius: 48px 0 48px 0;
  }
  .intro {
    padding-top: 35px;
    padding-bottom: 55px;
  }
  .intro h2 {
    font-size: clamp(1.65rem, 6vw, 2.1rem);
  }
  .headquarters-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .headquarters-copy {
    grid-template-columns: auto 1fr;
    gap: 22px;
  }
  .headquarters h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
  .office-image {
    width: 100%;
    max-height: 700px;
  }
  .policy-main {
    padding-top: 38px;
  }
  .hero, .intro, .headquarters {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
  }
  .hero-copy {
    box-sizing: border-box;
    width: 100%;
    max-width: 700px;
  }
}

@media (max-width:420px) {
  .brand-logo {
    width: 195px;
  }
  .theme-toggle {
    width: 34px;
    height: 34px;
  }
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-image {
    border-radius: 35px 0 35px 0;
  }
  .headquarters {
    padding-left: 22px;
    padding-right: 22px;
  }
  .headquarters-copy {
    gap: 16px;
  }
  .headquarters h2 {
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
