:root {
  --font-sans: Arial, Helvetica, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #edf7fb;
  color: #12374d;
  font-family: var(--font-sans);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  --bg: #edf7fb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-2: #dceff6;
  --page-bg-soft: rgba(237, 247, 251, 0.76);
  --page-surface-soft: rgba(255, 255, 255, 0.84);
  --text: #12374d;
  --muted: #58778b;
  --line: rgba(40, 115, 153, 0.19);
  --accent: #4da8d1;
  --accent-hover: #2f82b5;
  --on-accent: #fff;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

.site-shell::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image: url("../images/bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  opacity: 1;
  pointer-events: none;
}

.site-shell > * {
  position: relative;
  z-index: 1;
}

.hero {
  --hero-image: url("../images/up-folia-logo.png");

  position: relative;
  min-height: min(920px, 100svh);
  overflow: hidden;
  background-color: var(--bg);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;

  background-image: var(--hero-image);
  background-position: calc(50% + 275px) center;
  background-size: 70% auto;
  background-repeat: no-repeat;

  content: "";
  animation: hero-slide-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      transparent 90%,
      rgba(236, 244, 247, 0.65) 95%,
      rgba(255, 255, 255, 0.959) 100%
    ),

    
    radial-gradient(
      circle at 28% 74%,
      rgba(77, 168, 209, 0.15),
      transparent 28%
    ),

   
    linear-gradient(
      90deg,
      rgba(237, 247, 251, 0.98) 0%,
      rgba(237, 247, 251, 0.86) 37%,
      rgba(237, 247, 251, 0.12) 64%,
      transparent 78%
    );

  content: "";
}

.site-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 86px;
  padding: 0 clamp(24px, 5vw, 82px);
  border-bottom: 1px solid var(--line);
  background-color: rgb(255 255 255);
  background-image:
    url("../images/Header_Left.png"),
    url("../images/Header_Right.png");
  background-position: left center, right center;
  background-repeat: no-repeat;
  background-size: auto 100%, auto 100%;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-self: start;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(31, 134, 184, 0.15);
}

.brand-text {
  display: inline-flex;
  gap: 0.55ch;
  align-items: baseline;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand-text strong {
  font-weight: 850;
  text-transform: uppercase;
}

.brand-text small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  color: color-mix(in srgb, var(--text) 72%, transparent);
  font-size: 13px;
}

.desktop-nav a {
  position: relative;
  padding: 12px 0;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 38px;
  justify-self: end;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  font-size: 13px;
  font-weight: 750;
  transition: background 180ms ease, color 180ms ease;
}

.header-cta:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.mobile-menu {
  display: none;
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: calc(min(920px, 100svh) - 86px);
  align-items: center;
  padding: 70px clamp(24px, 7.5vw, 118px) 92px;
}

.hero-copy {
  max-width: 670px;
  animation: copy-in 750ms 180ms both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.eyebrow,
.section-kicker {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: #153b52;
  font-size: clamp(68px, 7.5vw, 116px);
  font-weight: 700;
  line-height: 0.91;
  letter-spacing: -0.065em;
}

.hero-lead {
  max-width: 580px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 760;
}

.button-primary {
  gap: 46px;
  min-width: 220px;
  padding: 0 24px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.button-primary span {
  transition: transform 180ms ease;
}

.button-primary:hover span {
  transform: translateX(5px);
}

.button-link {
  position: relative;
  min-height: 44px;
  padding: 0 2px;
}

.button-link::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
}

.hero-note {
  position: absolute;
  bottom: 13%;
  left: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-note::after {
  width: 1px;
  height: 88px;
  margin: 8px auto 0;
  background: var(--accent);
  content: "";
}

.section {
  padding: clamp(84px, 10vw, 150px) clamp(24px, 7.5vw, 118px);
  background-image:
    radial-gradient(circle at 12% 14%, rgba(77, 168, 209, 0.08), transparent 26%),
    linear-gradient(rgba(42, 122, 158, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 122, 158, 0.032) 1px, transparent 1px);
  background-size: auto, 128px 128px, 128px 128px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 80px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 84px);
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section-heading > p,
.about-copy > p,
.contact-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.services-section {
  background-color: var(--page-bg-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 390px;
  padding: clamp(28px, 3.2vw, 50px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(54, 129, 163, 0.08);
  transition: background 220ms ease, transform 220ms ease;
}

.service-card:hover {
  background: var(--surface-2);
  transform: translateY(-5px);
}

.service-card > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

.service-card h3 {
  max-width: 330px;
  margin: 80px 0 20px;
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.service-card p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.service-card a {
  display: flex;
  justify-content: space-between;
  margin-top: 46px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-card,
.about-number,
.contact-map,
.material-card,
.care-card,
.care-warranty {
  border-radius: 24px;
}

.materials-section {
  background-color: var(--page-surface-soft);
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.material-card {
  min-height: 330px;
  padding: clamp(30px, 3.5vw, 52px);
  border: 1px solid var(--line);
  background: var(--bg);
}
 

.material-type {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.material-card h3 {
  max-width: 620px;
  margin: 50px 0 18px;
  font-size: clamp(27px, 3vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.material-card p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.material-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.material-card li {
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.material-card li::before {
  margin-right: 7px;
  color: var(--accent);
  content: "✓";
}

.material-why {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 20px 30px;
  align-items: center;
  margin-top: 34px;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}

.material-why strong {
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -0.03em;
}

.material-why p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.care-section {
  background-color: var(--page-bg-soft);
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.care-card {
  min-height: 440px;
  padding: clamp(30px, 3.5vw, 52px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(54, 129, 163, 0.08);
}

.care-card-heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.care-number {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 750;
}

.care-card h3 {
  margin: 0;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.care-card ul {
  display: grid;
  gap: 15px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.care-card li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.care-card li::before {
  color: var(--accent);
  content: "✓";
  font-weight: 800;
}

.care-warranty {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 20px 30px;
  align-items: center;
  margin-top: 18px;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

.care-warranty span {
  color: var(--text);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.care-warranty p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.gallery-section {
  background-color: var(--page-surface-soft);
}

.gallery-heading-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.gallery-heading-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.gallery-heading-copy a,
.works-back {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(270px, 34vw));
  gap: 18px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--surface-2);
}

.gallery-card-1 {
  grid-row: 1 / 3;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-card:hover img {
  transform: scale(1.035);
}

.gallery-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.8));
  content: "";
}

.gallery-card figcaption {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 25px;
  left: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: #fff;
}

.gallery-card figcaption span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-card figcaption strong {
  font-size: clamp(20px, 2.3vw, 34px);
  letter-spacing: -0.04em;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
  background-color: var(--page-surface-soft);
}

.intro-media {
  min-height: clamp(390px, 48vw, 650px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.intro-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.intro-media:hover img {
  transform: scale(1.025);
}

.intro-copy h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.intro-copy > p:not(.section-kicker) {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.intro-copy h2 + p {
  margin-top: 30px;
}

.about-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 9vw, 150px);
  align-items: center;
  background-color: var(--page-bg-soft);
}

.about-number {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: clamp(84px, 13vw, 190px);
  font-weight: 800;
  letter-spacing: -0.09em;
}

.about-logo {
  width: clamp(180px, 23vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 24px 70px rgba(31, 134, 184, 0.16);
}

.about-number small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.about-copy > p {
  max-width: 710px;
  margin-top: 30px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 58px;
  border-top: 1px solid var(--line);
}

.stats > div {
  padding: 27px 12px 0 0;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  color: var(--accent);
  font-size: clamp(30px, 3.8vw, 54px);
  letter-spacing: -0.05em;
}

.stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(60px, 10vw, 150px);
  padding: clamp(84px, 10vw, 150px) clamp(24px, 7.5vw, 118px);
  background-color: var(--page-surface-soft);
}

.contact-copy > p {
  max-width: 550px;
  margin-top: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-top: 48px;
  color: var(--muted);
  font-size: 14px;
}

.contact-details a {
  border-bottom: 1px solid var(--accent);
  color: var(--text);
}

.contact-map {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  margin-top: 38px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85) contrast(1.03);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 22px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  padding: 14px 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form option {
  background: var(--bg);
}

.form-wide {
  grid-column: 1 / -1;
}

.contact-form button {
  margin-top: 10px;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: 128px;
  padding: 30px clamp(24px, 7.5vw, 118px);
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
}

.footer-brand {
  color: var(--text);
}

.footer-brand .brand-logo {
  width: 58px;
  height: 58px;
}

.site-footer p {
  margin: 0;
}

.site-footer > div {
  display: flex;
  gap: 24px;
  justify-self: end;
}

.works-page {
  overflow: visible;
}

.works-header {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 7.5vw, 118px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.works-hero {
  max-width: 1040px;
  padding: clamp(90px, 11vw, 170px) clamp(24px, 7.5vw, 118px)
    clamp(70px, 8vw, 120px);
}

.works-hero h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 118px);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.works-hero > p:last-child {
  max-width: 680px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.works-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  padding: 0 clamp(24px, 7.5vw, 118px) clamp(90px, 10vw, 150px);
}

.works-card {
  position: relative;
  grid-column: span 7;
  overflow: hidden;
  min-height: 430px;
  margin: 0;
  background: var(--surface);
}

.works-card:nth-child(3n + 2) {
  grid-column: span 5;
}

.works-card:nth-child(3n) {
  grid-column: span 12;
  min-height: 520px;
}

.works-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.works-card:hover img {
  transform: scale(1.035);
}

.works-card::after {
  position: absolute;
  cursor:pointer;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.82));
  content: "";
}

.works-card figcaption {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: 28px;
  left: 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: #fff;
}

.works-card figcaption span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.works-card figcaption strong {
  font-size: clamp(24px, 3vw, 46px);
  letter-spacing: -0.045em;
}

.works-footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  padding: 30px clamp(24px, 7.5vw, 118px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.works-footer p {
  margin: 0;
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-settle {
  from {
    transform: scale(1.025);
  }
  to {
    transform: scale(1);
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .header-cta {
    margin-right: 60px;
  }

  .mobile-menu {
    position: absolute;
    right: 24px;
    display: block;
  }

  .mobile-menu summary {
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    width: 18px;
    height: 1px;
    background: currentColor;
  }

  .mobile-menu nav {
    position: absolute;
    top: 50px;
    right: 0;
    display: grid;
    min-width: 220px;
    padding: 14px;
    border: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  }

  .mobile-menu nav a {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 300px;
  }

  .service-card h3 {
    margin-top: 48px;
  }

  .material-grid {
    grid-template-columns: 1fr;
  }

  .care-grid {
    grid-template-columns: 1fr;
  }

  .material-card:last-child {
    grid-column: auto;
  }

  .intro-section,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .about-number {
    min-height: 360px;
  }

  .works-card,
  .works-card:nth-child(3n + 2),
  .works-card:nth-child(3n) {
    grid-column: span 12;
    min-height: 480px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 72px;
    padding: 0 20px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand {
    gap: 10px;
  }

  .brand-text {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.05;
  }

  .brand-text small {
    font-size: 8px;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu {
    right: 20px;
  }

  .hero {
    --hero-actions-extra-space: 50px;
    min-height: calc(800px + var(--hero-actions-extra-space));
    padding-bottom: var(--hero-actions-extra-space);
  }

  .hero::before,
  .hero::after {
    bottom: var(--hero-actions-extra-space);
  }

  .hero::before {
    background-image: var(--hero-image);
    background-position: center bottom 12px;
    background-size: clamp(390px, 115vw, 620px) auto;
    background-repeat: no-repeat;
  }

  .hero::after {
    background:
      linear-gradient(
        180deg,
        rgba(237, 247, 251, 1) 0%,
        rgba(237, 247, 251, 0.98) 38%,
        rgba(237, 247, 251, 0.88) 52%,
        rgba(237, 247, 251, 0.34) 68%,
        rgba(237, 247, 251, 0.08) 82%,
        rgba(237, 247, 251, 0.9) 97%,
        rgba(237, 247, 251, 1) 100%
      ) !important;
  }

  .hero-grid {
    min-height: 728px;
    align-items: stretch;
    padding: 88px 20px 26px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero-lead {
    max-width: 520px;
    font-size: 15px;
  }

  .hero-actions {
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 16px;
    margin-top: auto;
    padding-top: 28px;
    transform: translateY(calc(8px + var(--hero-actions-extra-space)));
  }

  .hero-actions .button {
    min-height: 44px;
    white-space: nowrap;
  }

  .hero-actions .button-primary {
    flex: 0 1 176px;
    width: auto;
    min-width: 0;
    max-width: none;
    gap: 12px;
    padding: 0 16px;
  }

  .hero-actions .button-link {
    flex: 0 0 auto;
  }

  .button-primary {
    width: 100%;
    max-width: 330px;
  }

  .hero-note {
    display: none !important;
  }

  .section,
  .contact-section {
    padding: 78px 20px;
  }

  .section-heading h2,
  .intro-copy h2,
  .about-copy h2,
  .contact-copy h2 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .service-card {
    min-height: auto;
    padding: 30px 24px;
  }

  .service-card h3 {
    margin-top: 44px;
  }

  .material-card {
    min-height: auto;
    padding: 30px 24px;
  }

  .material-card h3 {
    margin-top: 38px;
  }

  .material-why,
  .care-warranty {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px;
  }

  .care-card {
    min-height: auto;
    padding: 30px 24px;
  }

  .care-card-heading {
    gap: 16px;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 320px);
  }

  .gallery-card-1 {
    grid-row: auto;
  }

  .gallery-card figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .works-header {
    min-height: 78px;
    padding: 0 20px;
  }

  .works-header .brand-text {
    display: none;
  }

  .works-back {
    gap: 12px;
    font-size: 10px;
  }

  .works-hero {
    padding: 82px 20px 64px;
  }

  .works-hero h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .works-gallery {
    gap: 14px;
    padding: 0 20px 80px;
  }

  .works-card,
  .works-card:nth-child(3n + 2),
  .works-card:nth-child(3n) {
    min-height: 340px;
  }

  .works-card figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    right: 22px;
    bottom: 22px;
    left: 22px;
  }

  .works-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 28px 20px;
  }

  .about-number {
    min-height: 280px;
  }

  .intro-media {
    min-height: 360px;
  }

  .stats {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .stats > div {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form label,
  .form-wide {
    grid-column: 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-bottom: 100px;
    text-align: left;
  }

  .site-footer > div {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.works-card {
  cursor: zoom-in;
}

.works-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.works-card.is-portrait,
.works-card.is-portrait:nth-child(3n + 2),
.works-card.is-portrait:nth-child(3n) {
  grid-column: span 5;
  min-height: 0;
  aspect-ratio: 3 / 4;
}

.works-card.is-portrait img {
  object-position: center;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

html.gallery-lightbox-open,
html.gallery-lightbox-open body {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(58px, 8vw) minmax(0, 1fr) minmax(58px, 8vw);
  grid-template-rows: minmax(54px, 8vh) minmax(0, 1fr) auto;
  background: rgba(5, 18, 27, 0.96);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
}

.gallery-lightbox__stage {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: clamp(54px, 7vh, 88px) 0 18px;
  cursor: default;
}

.gallery-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 1600px);
  max-height: calc(100vh - 180px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(10px);
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:focus-visible {
  box-shadow: 0 0 0 3px rgba(77, 168, 209, 0.6);
}

.gallery-lightbox__close {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
}

.gallery-lightbox__close span {
  margin-top: -3px;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.gallery-lightbox__nav {
  z-index: 2;
  align-self: center;
  width: 52px;
  height: 70px;
  border-radius: 999px;
}

.gallery-lightbox__nav span {
  display: block;
  margin-top: -5px;
  font-size: 46px;
  font-weight: 300;
  line-height: 1;
}

.gallery-lightbox__prev {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
}

.gallery-lightbox__next {
  grid-column: 3;
  grid-row: 2;
  justify-self: center;
}

.gallery-lightbox__prev:hover {
  transform: translateX(-3px);
}

.gallery-lightbox__next:hover {
  transform: translateX(3px);
}

.gallery-lightbox__info {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  min-height: 92px;
  padding: 18px clamp(24px, 6vw, 92px) 24px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
}

.gallery-lightbox__caption {
  display: grid;
  gap: 5px;
}

.gallery-lightbox__category {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery-lightbox__title {
  font-size: clamp(20px, 2.5vw, 34px);
  letter-spacing: -0.035em;
}

.gallery-lightbox__counter {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

@media (min-width: 721px) and (max-width: 1100px) {
  .works-card.is-portrait,
  .works-card.is-portrait:nth-child(3n + 2),
  .works-card.is-portrait:nth-child(3n) {
    grid-column: span 6;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 720px) {
  .works-card.is-portrait,
  .works-card.is-portrait:nth-child(3n + 2),
  .works-card.is-portrait:nth-child(3n) {
    grid-column: span 12;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .gallery-lightbox {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    grid-template-rows: 64px minmax(0, 1fr) auto;
  }

  .gallery-lightbox__stage {
    grid-column: 1 / -1;
    padding: 68px 14px 14px;
  }

  .gallery-lightbox__image {
    max-width: 100%;
    max-height: calc(100svh - 170px);
  }

  .gallery-lightbox__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .gallery-lightbox__nav {
    align-self: center;
    width: 42px;
    height: 58px;
    background: rgba(5, 18, 27, 0.46);
  }

  .gallery-lightbox__prev {
    grid-column: 1;
  }

  .gallery-lightbox__next {
    grid-column: 3;
  }

  .gallery-lightbox__info {
    gap: 16px;
    min-height: 82px;
    padding: 14px 18px 18px;
  }

  .gallery-lightbox__title {
    font-size: 19px;
  }
}

@media (max-width: 420px) {
  .gallery-lightbox__info {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox,
  .gallery-lightbox__close,
  .gallery-lightbox__nav {
    transition: none !important;
  }
}

.site-shell {
  --site-header-height: 86px;
}

.site-shell > .site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    transform 220ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease,
    visibility 0s;
}

.site-header-space {
  height: var(--site-header-height);
  pointer-events: none;
}

.site-shell > .site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(18, 55, 77, 0.14);
}

.site-shell > .site-header.is-hidden-at-contact {
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(-100% - 16px));
  pointer-events: none;
  transition:
    transform 220ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease,
    visibility 0s 220ms;
}

.site-shell > section[id]:not(#home):not(#contact) {
  scroll-margin-top: calc(var(--site-header-height) + 16px);
}

.site-header .header-call {
  display: none;
}

@media (max-width: 1100px) {
  .site-header .mobile-menu nav {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - var(--site-header-height) - 20px);
    max-height: calc(100dvh - var(--site-header-height) - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 720px) {
  .site-shell {
    --site-header-height: 72px;
  }

  .site-shell > .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 10px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-header .brand {
    min-width: 0;
  }

  .site-header .brand-logo {
    flex-shrink: 0;
  }

  .site-header .header-cta {
    display: none;
  }

  .site-header .header-call {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #17688f;
    border-radius: 4px;
    background: #17688f;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 180ms ease;
  }

  .site-header .header-call:hover {
    background: #125474;
  }

  .site-header .header-call:focus-visible {
    outline: 3px solid var(--text, #12374d);
    outline-offset: 3px;
  }

  .header-call svg {
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .site-header .mobile-menu {
    position: relative;
    right: auto;
    justify-self: end;
  }
}

@media (max-width: 380px) {
  .site-header .brand-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-shell > .site-header,
  .site-shell > .site-header.is-hidden-at-contact,
  .site-header .header-call {
    transition: none;
  }
}
