:root {
  --ink: #332820;
  --paper: #f7f0e6;
  --orange: #d8792d;
  --soft: rgba(51, 40, 32, 0.12);
  --white: #fffaf2;
  --shadow: 0 26px 80px rgba(137, 82, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 96px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(247, 240, 230, 0.78);
  border-bottom: 1px solid rgba(36, 25, 19, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(210px, 19vw, 270px);
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 34px);
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(36, 25, 19, 0.84);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--soft);
  border-radius: 999px;
}

.language-switcher button {
  min-width: 34px;
  height: 30px;
  padding: 0 9px;
  color: rgba(51, 40, 32, 0.72);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.language-switcher button.is-active {
  color: #fffaf2;
  background: var(--orange);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 168px clamp(20px, 7vw, 92px) clamp(56px, 9vh, 96px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(247, 240, 230, 0.95), rgba(247, 240, 230, 0.78) 46%, rgba(247, 240, 230, 0.2)),
    url("assets/osb-hero.png") center / cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 16% -8% auto auto;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(198, 109, 45, 0.34);
  border-radius: 50%;
  animation: slowTurn 18s linear infinite;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(0deg, var(--paper), rgba(247, 240, 230, 0));
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.14), rgba(255, 250, 242, 0.42)),
    linear-gradient(120deg, rgba(198, 109, 45, 0.12), transparent 42%);
  z-index: -1;
}

.hero-inner {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-family: inherit;
  font-size: clamp(44px, 6.5vw, 82px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-family: inherit;
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 780;
  line-height: 1.18;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 30px;
  color: rgba(36, 25, 19, 0.78);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.contact-actions {
  display: none;
}

.unused-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid var(--soft);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button-icon {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(198, 109, 45, 0.18);
}

.button.primary {
  color: #fffaf2;
  background: var(--orange);
  border-color: var(--orange);
}

.button.secondary {
  background: rgba(255, 250, 242, 0.76);
}

.section {
  padding: clamp(58px, 9vw, 106px) clamp(20px, 7vw, 92px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(280px, 1fr);
  gap: clamp(26px, 6vw, 90px);
  align-items: end;
}

.intro p:last-child {
  margin: 0;
  color: rgba(36, 25, 19, 0.68);
  font-size: clamp(18px, 2vw, 23px);
}

.section-heading {
  display: block;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.material-card {
  overflow: hidden;
  min-height: 452px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--soft);
  border-radius: 8px;
  box-shadow: 0 15px 44px rgba(36, 25, 19, 0.08);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.material-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.material-visual {
  position: relative;
  min-height: 295px;
  overflow: hidden;
  background: #dfc0a0;
}

.material-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(36, 25, 19, 0.18));
  pointer-events: none;
}

.material-visual img {
  height: 100%;
  min-height: 295px;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.03) sepia(0.08);
  transition: transform 520ms ease;
}

.material-card:hover .material-visual img {
  transform: scale(1.06);
}

.material-copy {
  padding: 22px;
}

.material-copy p {
  margin-bottom: 0;
  color: rgba(36, 25, 19, 0.66);
  font-size: 15px;
}

.feature-strip {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(58px, 9vw, 104px) clamp(20px, 7vw, 92px);
  background: linear-gradient(135deg, #fff7ec, #efd7be);
  color: var(--ink);
}

.feature-image {
  overflow: hidden;
  min-height: 430px;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(137, 82, 38, 0.18);
}

.feature-image img {
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  filter: saturate(0.9) sepia(0.18);
}

.feature-copy p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 22px;
  color: rgba(51, 40, 32, 0.68);
  font-size: 18px;
}

.service-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
  padding: clamp(62px, 9vw, 112px) clamp(20px, 7vw, 92px);
  color: var(--ink);
  background: linear-gradient(180deg, #f7f0e6, #f1e3d2);
}

.service-list {
  display: grid;
  gap: 10px;
}

.service-list div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(36, 25, 19, 0.14);
}

.service-list span {
  color: var(--orange);
  font-weight: 920;
}

.service-list p {
  margin: 0;
  color: rgba(36, 25, 19, 0.76);
  font-size: 18px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: clamp(62px, 10vw, 118px) clamp(20px, 7vw, 92px);
  background:
    linear-gradient(120deg, rgba(198, 109, 45, 0.09), transparent 40%),
    var(--paper);
}

.contact-panel {
  padding: clamp(28px, 5vw, 56px);
  background: var(--white);
  border: 1px solid var(--soft);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel p {
  max-width: 600px;
  color: rgba(36, 25, 19, 0.7);
  font-size: 18px;
}

.social-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8px;
}

.social-panel a {
  display: grid;
  width: 58px;
  height: 58px;
  min-height: 0;
  place-items: center;
  align-items: center;
  padding: 0;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--soft);
  border-radius: 50%;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-panel a:hover {
  transform: translateY(-3px);
  background: #fffaf2;
  border-color: rgba(198, 109, 45, 0.34);
}

.social-panel svg {
  width: 22px;
  height: 22px;
  fill: var(--orange);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 7vw, 92px) 32px;
  color: rgba(36, 25, 19, 0.62);
  border-top: 1px solid var(--soft);
}

.footer-logo {
  width: 152px;
  height: auto;
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  gap: 10px;
}

.float-link {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #fffaf2;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(198, 109, 45, 0.34);
  animation: floatPulse 2.8s ease-in-out infinite;
}

.email-float {
  color: var(--orange);
  background: #fffaf2;
  border: 1px solid rgba(216, 121, 45, 0.24);
  animation-delay: 160ms;
}

.float-link svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowTurn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .language-switcher {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 360px;
  }

  .intro,
  .feature-strip,
  .service-band,
  .contact {
    grid-template-columns: 1fr;
  }

  .social-panel {
    justify-content: flex-start;
    padding-bottom: 0;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: absolute;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    min-height: auto;
    padding: 16px 18px;
  }

  .brand {
    width: 100%;
  }

  .brand-logo {
    width: 198px;
  }

  .nav-links {
    width: 100%;
    gap: 18px;
    justify-content: flex-start;
    font-size: 13px;
  }

  .header-actions {
    width: 100%;
    align-items: flex-start;
  }

  .language-switcher {
    justify-content: flex-start;
    max-width: 100%;
  }

  .language-switcher button {
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }

  .hero {
    min-height: 88vh;
    padding: 222px 18px 48px;
    background:
      linear-gradient(90deg, rgba(247, 240, 230, 0.96), rgba(247, 240, 230, 0.78)),
      url("assets/osb-hero.png") center / cover;
  }

  h1 {
    font-size: clamp(40px, 11.5vw, 54px);
  }

  .hero::before {
    display: none;
  }

  .material-grid {
    grid-template-columns: 1fr;
  }

  .social-panel {
    justify-content: flex-start;
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 10px;
  }

  .material-card {
    min-height: auto;
  }

  .material-visual,
  .material-visual img,
  .feature-image,
  .feature-image img {
    min-height: 250px;
  }

  .footer {
    flex-direction: column;
  }
}
