@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-italic.woff2") format("woff2");
}

.home-refined {
  --ref-ink: #1f2933;
  --ref-body: #55636d;
  --ref-muted: #5f6f7a;
  --ref-blue: #2c6a94;
  --ref-blue-deep: #1e4f70;
  --ref-accent: #a34d2b;
  --ref-paper: #ffffff;
  --ref-mist: #f4f9fd;
  --ref-mist-deep: #e9f4fb;
  --ref-blush: #fdf6f1;
  --ref-line: rgba(31, 41, 51, 0.12);
  --ref-line-blue: rgba(44, 106, 148, 0.18);
  --ref-serif: "Playfair Display", "Josefin Slab", Georgia, serif;
  --ref-sans: "Questrial", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ref-ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--ref-paper);
  color: var(--ref-body);
}

.home-refined .ref-home {
  overflow: hidden;
}

.home-refined .reveal,
.home-refined .js .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.ref-wrap {
  width: min(100% - 64px, 1240px);
  margin-inline: auto;
}

.home-refined .ref-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--ref-blue);
  font-family: var(--ref-ui);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-refined .ref-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
}

.home-refined .ref-hero h1,
.home-refined .ref-services h2,
.home-refined .ref-rationale h2,
.home-refined .ref-specialist h2,
.home-refined .ref-contact h2 {
  font-family: var(--ref-serif);
  font-weight: 400;
  color: var(--ref-ink);
  letter-spacing: -0.025em;
}

.home-refined h1 em,
.home-refined h2 em {
  color: var(--ref-accent);
  font-weight: 400;
}

/* Header */
.home-refined .site-header {
  border-bottom: 1px solid var(--ref-line);
}

.home-refined .header-top {
  padding: 20px 0 14px;
}

.home-refined .brand img {
  width: 220px;
}

.home-refined .header-phone {
  color: var(--ref-muted);
  font-family: var(--ref-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.home-refined .social a,
.home-refined .social .social-maps,
.home-refined .social .social-instagram,
.home-refined .social .social-email {
  width: 28px;
  height: 28px;
  border: 1px solid var(--ref-line);
  background: transparent;
  color: var(--ref-muted);
}

.home-refined .social a:hover {
  border-color: var(--ref-blue);
  background: var(--ref-blue);
  color: #fff;
  transform: translateY(-1px);
}

.home-refined .nav-wrap {
  border-top: 1px solid var(--ref-line);
}

.home-refined .nav-link {
  position: relative;
  padding: 16px 14px 18px;
  color: var(--ref-ink);
  font-family: var(--ref-ui);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.home-refined .nav-link:hover,
.home-refined .nav-item.is-active > .nav-link {
  color: var(--ref-blue);
}

.home-refined .nav-item.is-active > .nav-link::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 11px;
  left: 14px;
  height: 1px;
  background: var(--ref-accent);
}

.home-refined .submenu {
  border-top: 1px solid var(--ref-line);
  box-shadow: 0 20px 44px rgba(31, 41, 51, 0.12);
}

.home-refined .submenu .nav-link {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.home-refined .fixed-bar {
  border-bottom: 1px solid var(--ref-line);
  box-shadow: 0 10px 28px rgba(31, 41, 51, 0.06);
}

.home-refined .fixed-nav-list .nav-link {
  padding: 21px 11px 23px;
  font-size: 10.5px;
}

/* Hero */
.home-refined .ref-hero {
  padding: clamp(52px, 6vw, 88px) 0 clamp(64px, 8vw, 108px);
  background: linear-gradient(180deg, #f7fbfe 0%, #ffffff 82%);
  border-bottom: 1px solid var(--ref-line);
}

.home-refined .ref-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}

.home-refined .ref-hero h1 {
  margin: 0 0 26px;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.98;
}

.home-refined .ref-lede {
  max-width: 490px;
  margin: 0 0 34px;
  color: var(--ref-body);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
}

.home-refined .ref-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  margin-bottom: 20px;
}

.home-refined .ref-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 25px;
  border: 1px solid var(--ref-blue);
  background: var(--ref-blue);
  color: #fff;
  font-family: var(--ref-ui);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-refined .ref-btn:hover {
  border-color: var(--ref-ink);
  background: var(--ref-ink);
  color: #fff;
}

.home-refined .ref-btn-soft {
  border-color: var(--ref-line-blue);
  background: transparent;
  color: var(--ref-ink);
}

.home-refined .ref-btn-soft:hover {
  border-color: var(--ref-blue);
  background: var(--ref-blue);
  color: #fff;
}

.home-refined .ref-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  color: var(--ref-blue);
  font-family: var(--ref-ui);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.home-refined .ref-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.home-refined .ref-link:hover {
  border-color: currentColor;
  color: var(--ref-ink);
}

.home-refined .ref-link:hover svg {
  transform: translateX(4px);
}

.home-refined .ref-call {
  margin: 0;
  color: var(--ref-muted);
  font-size: 13px;
}

.home-refined .ref-call a {
  border-bottom: 1px solid var(--ref-line);
  color: var(--ref-ink);
  text-decoration: none;
}

.home-refined .ref-call a:hover {
  border-color: var(--ref-blue);
  color: var(--ref-blue);
}

.home-refined .ref-hero-figure {
  margin: 0;
}

.home-refined .ref-hero-frame {
  background: var(--ref-mist-deep);
  box-shadow: 18px 18px 0 var(--ref-mist-deep);
}

.home-refined .ref-hero-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
}

.home-refined .ref-hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--ref-muted);
  font-family: var(--ref-ui);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Services */
.home-refined .ref-services {
  padding: clamp(72px, 8vw, 112px) 0;
}

.home-refined .ref-section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 54px;
}

.home-refined .ref-section-head h2 {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.04;
}

.home-refined .ref-section-intro {
  max-width: 440px;
  margin: 0 0 7px auto;
  font-size: 16px;
  line-height: 1.75;
}

.home-refined .ref-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.home-refined .ref-card {
  display: flex;
  flex-direction: column;
}

.home-refined .ref-card-media {
  display: block;
  overflow: hidden;
  background: var(--ref-mist);
}

.home-refined .ref-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.home-refined .ref-card:hover .ref-card-media img {
  transform: scale(1.03);
}

.home-refined .ref-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--ref-line);
}

.home-refined .ref-card-num {
  display: block;
  margin-bottom: 12px;
  color: var(--ref-muted);
  font-family: var(--ref-ui);
  font-size: 9.5px;
  letter-spacing: 0.2em;
}

.home-refined .ref-card h3 {
  margin: 0 0 8px;
  color: var(--ref-ink);
  font-family: var(--ref-serif);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.home-refined .ref-card h3 a {
  color: inherit;
  text-decoration: none;
}

.home-refined .ref-card h3 a:hover {
  color: var(--ref-blue);
}

.home-refined .ref-card-meta {
  margin: 0 0 14px;
  color: var(--ref-blue);
  font-family: var(--ref-ui);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.home-refined .ref-card-body > p:not(.ref-card-meta):not(.ref-card-num) {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.72;
}

.home-refined .ref-card .ref-link {
  margin-top: auto;
}

/* RATIONALE */
.home-refined .ref-rationale {
  padding: clamp(64px, 7vw, 96px) 0;
  border-top: 1px solid #f1e1d5;
  border-bottom: 1px solid #f1e1d5;
  background: var(--ref-blush);
}

.home-refined .ref-rationale-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.home-refined .ref-product {
  margin: 0;
  padding: clamp(24px, 4vw, 54px);
  background: #fff;
}

.home-refined .ref-product img {
  display: block;
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
}

.home-refined .ref-rationale h2 {
  margin: 0 0 22px;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.04;
}

.home-refined .ref-rationale-copy > p:not(.ref-kicker) {
  max-width: 500px;
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.75;
}

/* Specialist */
.home-refined .ref-specialist {
  padding: clamp(72px, 8vw, 110px) 0;
}

.home-refined .ref-specialist-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.home-refined .ref-specialist h2 {
  margin: 0 0 24px;
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.05;
}

.home-refined .ref-specialist-copy > p:not(.ref-kicker) {
  max-width: 500px;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

.home-refined .ref-credentials {
  margin: 32px 0;
  padding: 0;
  border-top: 1px solid var(--ref-line);
  list-style: none;
}

.home-refined .ref-credentials li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ref-line);
  color: var(--ref-ink);
  font-size: 13.5px;
  line-height: 1.55;
}

.home-refined .ref-credential-mark {
  width: 6px;
  height: 6px;
  margin-top: 7px;
  background: var(--ref-accent);
  border-radius: 50%;
}

.home-refined .ref-team {
  margin: 0;
}

.home-refined .ref-team img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  box-shadow: 18px 18px 0 var(--ref-mist-deep);
}

.home-refined .ref-team figcaption {
  margin-top: 18px;
  color: var(--ref-muted);
  font-family: var(--ref-ui);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Contact */
.home-refined .ref-contact {
  padding: clamp(64px, 7vw, 96px) 0;
  border-top: 1px solid #dcecf6;
  background: var(--ref-mist);
}

.home-refined .ref-contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
}

.home-refined .ref-contact h2 {
  margin: 0;
  font-size: clamp(40px, 4.8vw, 66px);
  line-height: 1;
}

.home-refined .ref-contact-actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 18px;
  padding-left: 40px;
  border-left: 1px solid var(--ref-line-blue);
}

.home-refined .ref-phone {
  color: var(--ref-ink);
  font-family: var(--ref-serif);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.2;
  text-decoration: none;
}

.home-refined .ref-phone:hover {
  color: var(--ref-blue);
}

.home-refined .ref-contact-actions p {
  margin: 0;
  color: var(--ref-body);
  font-size: 13.5px;
  line-height: 1.7;
}

/* Footer */
.home-refined .site-footer {
  border-top: 1px solid var(--ref-line);
  background: #fff;
}

.home-refined .footer-bottom {
  background: var(--ref-mist);
}

@media (max-width: 1100px) {
  .ref-wrap {
    width: min(100% - 48px, 1240px);
  }

  .home-refined .ref-hero h1 {
    font-size: clamp(46px, 5.8vw, 72px);
  }

  .home-refined .ref-section-head {
    gap: 32px;
  }

  .home-refined .ref-service-grid {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .home-refined .ref-hero-grid,
  .home-refined .ref-section-head,
  .home-refined .ref-rationale-grid,
  .home-refined .ref-specialist-grid,
  .home-refined .ref-contact-grid {
    grid-template-columns: 1fr;
  }

  .home-refined .ref-hero-grid {
    gap: 42px;
  }

  .home-refined .ref-hero-copy {
    max-width: 700px;
  }

  .home-refined .ref-section-head {
    gap: 22px;
    margin-bottom: 38px;
  }

  .home-refined .ref-section-intro {
    margin: 0;
  }

  .home-refined .ref-rationale-grid {
    gap: 34px;
  }

  .home-refined .ref-product {
    max-width: 520px;
  }

  .home-refined .ref-rationale-copy {
    padding-bottom: 6px;
  }

  .home-refined .ref-specialist-grid {
    gap: 38px;
  }

  .home-refined .ref-team {
    max-width: 680px;
  }

  .home-refined .ref-contact-grid {
    gap: 34px;
  }

  .home-refined .ref-contact-actions {
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid var(--ref-line-blue);
    border-left: 0;
  }
}

@media (max-width: 767px) {
  .ref-wrap {
    width: min(100% - 32px, 1240px);
  }

  .home-refined .brand img {
    width: 178px;
  }

  .home-refined .ref-hero {
    padding: 38px 0 56px;
  }

  .home-refined .ref-hero h1 {
    margin-bottom: 20px;
    font-size: clamp(40px, 11vw, 58px);
  }

  .home-refined .ref-lede {
    margin-bottom: 26px;
    font-size: 16.5px;
  }

  .home-refined .ref-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .home-refined .ref-hero-frame {
    box-shadow: 10px 10px 0 var(--ref-mist-deep);
  }

  .home-refined .ref-hero-figure figcaption {
    flex-direction: column;
    gap: 4px;
  }

  .home-refined .ref-section-head h2,
  .home-refined .ref-rationale h2,
  .home-refined .ref-specialist h2 {
    font-size: clamp(34px, 9vw, 44px);
  }

  .home-refined .ref-service-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .home-refined .ref-card-body {
    margin-top: 18px;
  }

  .home-refined .ref-rationale,
  .home-refined .ref-specialist,
  .home-refined .ref-services,
  .home-refined .ref-contact {
    padding: 54px 0;
  }

  .home-refined .ref-product {
    padding: 22px;
  }

  .home-refined .ref-credentials li {
    font-size: 13px;
  }

  .home-refined .ref-team img {
    box-shadow: 10px 10px 0 var(--ref-mist-deep);
  }

  .home-refined .ref-contact h2 {
    font-size: clamp(38px, 10vw, 50px);
  }

  .home-refined .ref-contact-actions {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-refined .ref-card-media img,
  .home-refined .ref-link svg {
    transition: none;
  }
}
