/* =========================================================
   Coiffeur Gäli — hand-coded rebuild of the Framer site
   Breakpoints (same as Framer): Desktop ≥1200, Tablet 810–1199, Phone <810
   ========================================================= */

@font-face {
  font-family: "Erode";
  src: url("../fonts/erode-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Erode";
  src: url("../fonts/erode-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
/* Price list font (same family as the original price list image) */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* Used only by the 16px style (Framer "Text 16": opsz 14, wght 430) */
@font-face {
  font-family: "Inter Variable";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Color tokens (from the Framer project) */
  --dark: rgb(31, 31, 31);
  --orange: rgb(255, 106, 0);
  --white: rgb(255, 255, 255);
  --grey: rgb(117, 117, 117);
  --charcoal: rgb(69, 69, 69);
  --black: rgb(0, 0, 0);
  --white-off: rgb(250, 250, 250);
  --golden: rgb(245, 147, 9);
  --yellow: rgb(239, 191, 4);
  --link-blue: rgb(0, 153, 255);

  --serif: "Erode", "Times New Roman", serif;
  --sans: "Inter", Arial, sans-serif;
  --sans-var: "Inter Variable", "Inter", Arial, sans-serif;

  /* Type scale — Desktop */
  --h1: 64px;
  --h2: 56px;
  --h3: 44px;
  --h4: 38px;
  --h6: 28px;
  --t22: 22px;
  --t18: 18px;

  --nav-h: 120px;
  --gutter: 25px;
}
@media (max-width: 1199px) {
  :root { --h1: 52px; --h2: 50px; --h3: 42px; --h4: 32px; --h6: 28px; --t22: 20px; }
}
@media (max-width: 809px) {
  :root { --h1: 42px; --h2: 40px; --h3: 40px; --h4: 30px; --h6: 26px; --t18: 17px; --nav-h: 84px; --gutter: 20px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--dark);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
[id] { scroll-margin-top: 0; }

/* ---------- Text presets ---------- */
.h1 { font-family: var(--serif); font-weight: 500; font-size: var(--h1); letter-spacing: -0.045em; line-height: 1.15em; text-align: center; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: var(--h2); letter-spacing: -0.04em; line-height: 1.2em; text-align: center; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: var(--h3); letter-spacing: -0.04em; line-height: 1.35em; text-align: left; }
.h4 { font-family: var(--serif); font-weight: 500; font-size: var(--h4); letter-spacing: -0.04em; line-height: 1.45em; text-align: center; }
.h6 { font-family: var(--serif); font-weight: 500; font-size: var(--h6); letter-spacing: -0.04em; line-height: 1.2em; }
.t22 { font-family: var(--sans); font-weight: 500; font-size: var(--t22); letter-spacing: -0.045em; line-height: 1.65em; color: var(--grey); }
.t20 { font-family: var(--sans); font-weight: 500; font-size: 20px; letter-spacing: -0.045em; line-height: 1.5em; color: var(--grey); }
.t18 { font-family: var(--sans); font-weight: 500; font-size: var(--t18); letter-spacing: -0.03em; line-height: 1.5em; color: var(--grey); }
.t16 { font-family: var(--sans-var); font-weight: 430; font-variation-settings: "opsz" 14, "wght" 430; font-size: 16px; letter-spacing: -0.05em; line-height: 1.5em; color: var(--grey); }
.t14 { font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: -0.03em; line-height: 1.5em; color: var(--grey); }
.white { color: var(--white); }
.center { text-align: center; }
.left { text-align: left; }

/* ---------- Layout helpers ---------- */
.section { position: relative; width: 100%; background: var(--black); display: flex; flex-direction: column; align-items: center; }
.container { width: 100%; max-width: 1200px; padding: 0 var(--gutter); margin: 0 auto; display: flex; flex-direction: column; align-items: center; position: relative; }
.heading-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* Section tag: — Label */
.tag { display: inline-flex; align-items: center; gap: 10px; }
.tag::before { content: ""; width: 20px; height: 1px; background: var(--white); flex: none; }
.tag span { font-family: var(--sans-var); font-weight: 430; font-variation-settings: "opsz" 14, "wght" 430; font-size: 16px; letter-spacing: -0.05em; line-height: 1.5em; color: var(--white); white-space: nowrap; }

/* ---------- Button (Framer "Button" component, Orange variant) ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  padding: 8px 18px;
  background: var(--yellow);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--sans-var); font-weight: 430; font-variation-settings: "opsz" 14, "wght" 430; font-size: 16px; letter-spacing: -0.05em; line-height: 1.5em;
  color: var(--charcoal);
  white-space: nowrap;
  transition: padding .35s cubic-bezier(.22,1,.36,1);
}
.btn .arrow {
  width: 0; height: 18px; opacity: 0; flex: none;
  background: url("../img/arrow.svg") center / 17px 18px no-repeat;
  transform: rotate(0deg);
  transition: width .35s cubic-bezier(.22,1,.36,1), opacity .35s, transform .35s cubic-bezier(.22,1,.36,1);
}
@media (hover: hover) {
  .btn:hover { padding: 8px 12px 8px 18px; }
  .btn:hover .arrow { width: 17px; opacity: 1; transform: rotate(-45deg); }
}

/* Stars */
.stars { display: flex; align-items: center; }
.stars svg { display: block; flex: none; }

/* ---------- Appear animations ---------- */
.js .reveal { opacity: 0; transform: translateY(var(--ry, 0px)) scale(var(--rs, 1)); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--rd, 0s);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .btn, .btn .arrow { transition: none; }
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  background: var(--black);
  padding: 20px 0;
}
.nav .container { flex-direction: row; }
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; }
.logo { display: inline-flex; font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -0.05em; line-height: 1em; color: var(--yellow); white-space: nowrap; }
.nav-logo { width: 150px; flex: none; }
.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-link { font-family: var(--sans-var); font-weight: 430; font-variation-settings: "opsz" 14, "wght" 430; font-size: 16px; letter-spacing: -0.05em; line-height: 1.5em; color: var(--white); transition: opacity .2s; }
@media (hover: hover) { .nav-link:hover { opacity: .75; } }
.nav-actions { width: 150px; flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.menu-btn { display: none; position: relative; width: 40px; height: 40px; border-radius: 1000px; border: 0; padding: 0; background: var(--charcoal); cursor: pointer; flex: none; }
.menu-btn i { position: absolute; left: 10px; width: 20px; height: 2px; background: var(--white); transition: top .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1); }
.menu-btn i:nth-child(1) { top: 14px; }
.menu-btn i:nth-child(2) { top: 24px; }
.nav.open .menu-btn i:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav.open .menu-btn i:nth-child(2) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 809px) {
  .nav { padding: 12px 0; }
  .nav .container { height: 60px; }
  .nav-inner { height: 58px; padding: 20px 0; }
  .nav-menu {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; justify-content: center; gap: 24px;
    padding: 36px;
    background: var(--black);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s cubic-bezier(.22,1,.36,1), visibility 0s .3s;
  }
  .nav.open .nav-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s cubic-bezier(.22,1,.36,1); }
  .nav-actions { width: auto; gap: 16px; }
  .nav-actions .btn { display: none; }
  .menu-btn { display: block; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 132px 0 58px; flex-direction: row; justify-content: center; z-index: 0; overflow-x: clip; overflow-y: visible; }
main { overflow-x: clip; }
.hero-glow {
  position: absolute; left: 50%; bottom: -100px; z-index: 1;
  width: 900px; height: 700px; margin-left: -450px;
  background: var(--orange); opacity: .1; filter: blur(80px); border-radius: 1000px;
  pointer-events: none;
}
.hero .container { gap: 98px; z-index: 2; }
.hero-text { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero-heading { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 17px; }
.hero h1 { max-width: 700px; width: 100%; }
.hero-heading p { max-width: 480px; width: 100%; text-align: center; }

.hero-images { position: relative; display: flex; justify-content: center; }
.cover {
  border: 4px solid var(--white);
  box-shadow: 0 1px 36px 0 rgba(0, 0, 0, .15);
  overflow: hidden;
  background: #111;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-center { position: relative; z-index: 3; width: 310.28px; height: 383px; border-radius: 20px; }
.cover-side { position: absolute; z-index: 1; border-radius: 16px; }
.cover-right { top: 30px; right: -280px; width: 275px; height: 330px; transform: rotate(10deg); }
.cover-left { top: 38px; left: -282px; width: 278px; height: 334px; transform: rotate(-9deg); }
.cover-side.reveal.in { transform: rotate(var(--rot)); }
.cover-right { --rot: 10deg; }
.cover-left { --rot: -9deg; }
.js .cover-side.reveal:not(.in) { transform: translateY(20px) rotate(var(--rot)); }

@media (max-width: 1199px) {
  .cover-right { right: -170px; }
  .cover-left { left: -170px; }
}
@media (max-width: 809px) {
  .hero .container { gap: 132px; }
  .cover-center { width: 250px; height: 321px; }
  .cover-right { top: auto; right: -50px; bottom: -60px; width: 215px; height: 258px; --rot: 5deg; transform: rotate(5deg); }
  .cover-left { top: -70px; left: -45px; width: 215px; height: 258px; --rot: -5deg; transform: rotate(-5deg); }
}

/* =========================================================
   REVIEW (featured quote)
   ========================================================= */
.review { padding: 58px 0; overflow: hidden; z-index: 1; }
.review .container { max-width: 650px; gap: 32px; overflow: hidden; z-index: 10; }
.review .stars { gap: 3px; }
.review-spacer { height: 31px; }
@media (max-width: 1199px) { .review .container { max-width: 600px; } }
@media (max-width: 809px) { .review { padding: 78px 0; } }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { padding: 52px 0; }
.testimonials .container { gap: 75px; overflow: hidden; }
.testimonials .heading-wrap { max-width: 620px; }
.t-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.t-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.t-card { background: var(--white-off); border-radius: 24px; padding: 24px 20px; display: flex; flex-direction: column; gap: 32px; }
.t-card .stars { gap: 2px; }
.t-card .t18 { white-space: pre-line; }
.t-card .name { color: var(--dark); text-align: left; }
@media (max-width: 1199px) { .t-grid { gap: 14px; } }
@media (max-width: 809px) { .t-grid { grid-template-columns: 1fr; } .t-col { gap: 14px; } }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: 72px 0; }
.about .container { gap: 88px; overflow: hidden; }
.about .heading-wrap { max-width: 750px; }
.grid-2 { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px; align-items: center; }
.about-img { width: 100%; height: 470px; border-radius: 32px; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.about-text .h-wrap { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.about-text .t20 { text-align: left; }
.why .about-text { gap: 36px; }

/* Price list — rebuilt as HTML (sizes scale with the box width, like the original image) */
.prices { width: 100%; container-type: inline-size; }
.prices-inner {
  width: 100%;
  min-height: calc(100cqw * 798 / 1147);
  padding: 8.6cqw 10.2cqw 7cqw;
  background: linear-gradient(90deg, #000 0%, #1c1c1c 30%, #3a3a3a 60%, #6e6e6e 100%);
  color: var(--white);
  display: flex; flex-direction: column; align-items: stretch;
}
.prices-title {
  font-family: var(--serif); font-weight: 500;
  font-size: 6cqw; line-height: 1; letter-spacing: 0.2em;
  text-transform: uppercase; text-align: center;
  margin: 0 0 9.4cqw; padding-left: 0.2em; /* re-centre: tracking adds space after the last letter */
}
.price-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2.3cqw;
  font-family: "Montserrat", var(--sans); font-weight: 400;
  font-size: 2.75cqw; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase;
}
.price-list li { display: grid; grid-template-columns: minmax(0, 1fr) 16cqw; gap: 3cqw; align-items: baseline; }
.price-list li span:last-child { font-size: 1.1em; white-space: nowrap; }

@media (max-width: 809px) {
  .prices-inner { min-height: 0; padding: 40px 22px; }
  .prices-title { font-size: 30px; margin-bottom: 32px; }
  .price-list { font-size: 13px; gap: 18px; letter-spacing: 0.08em; }
  .price-list li { grid-template-columns: minmax(0, 1fr) 76px; gap: 16px; }
}

.bullets { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.bullet { display: flex; align-items: center; gap: 12px; }
.bullet-icon { width: 20px; height: 20px; border-radius: 1000px; background: var(--yellow); display: flex; align-items: center; justify-content: center; flex: none; }
.bullet-text { flex: 1; display: flex; align-items: center; gap: 16px; min-width: 0; }
.bullet-text .t20 { color: var(--white); text-align: left; white-space: nowrap; }
.bullet-text .t18 { flex: 1; text-align: right; }

@media (max-width: 1199px) {
  .grid-2 { gap: 24px; }
  .about-img { border-radius: 24px; }
  .bullet { align-items: flex-start; gap: 18px; }
  .bullet-text { flex-direction: column; align-items: flex-start; gap: 5px; }
  .bullet-text .t20 { white-space: normal; }
  .bullet-text .t18 { text-align: left; }
}
@media (max-width: 809px) {
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .about-img { height: 420px; border-radius: 20px; }
  .why .about-img { height: 277px; }
}

/* =========================================================
   TEAM
   ========================================================= */
.team { padding: 52px 0; }
.team .container { gap: 75px; overflow: hidden; }
.team .heading-wrap { max-width: 620px; }
.team-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.member { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.member-img { width: 100%; aspect-ratio: 1.01; border-radius: 20px; overflow: hidden; }
.member-img img { width: 100%; height: 100%; object-fit: cover; }
.member .h6 { width: 100%; padding-right: 12px; text-align: center; color: var(--white); }
@media (max-width: 1199px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 809px) { .team-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 25px; overflow: hidden; flex-direction: row; justify-content: center; }
.contact-card {
  width: 100%; max-width: 1150px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  padding: 34px;
  background: linear-gradient(180deg, rgb(84, 84, 84) 0%, rgb(0, 0, 0) 100%);
  border-radius: 38px; overflow: hidden;
}
.contact-text { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 120px; padding: 14px 0; border-radius: 10px; min-width: 0; }
.contact-text .h2 { max-width: 425px; text-align: left; }
.contact-review { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 22px; }
.contact-review .stars { gap: 2px; padding: 21px 0; }
.contact-review .t20 { text-align: left; }

.form { background: var(--white); border-radius: 15px; padding: 20px; display: flex; flex-direction: column; gap: 20px; min-width: 0; align-self: start; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field .label { font-family: var(--sans); font-weight: 500; font-size: 12px; line-height: 1.2em; color: var(--charcoal); }
.label .ph { display: none; }
.input {
  width: 100%; height: 40px; padding: 12px;
  background: rgba(187, 187, 187, .15);
  border: 1px solid rgba(136, 136, 136, .1);
  border-radius: 10px;
  font-family: var(--sans); font-size: 14px; line-height: 1.2em; color: rgb(153, 153, 153);
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s;
}
.input::placeholder { color: rgb(153, 153, 153); opacity: 1; }
.input:focus { border-color: rgb(0, 153, 255); }
.submit {
  width: 100%; height: 40px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--charcoal);
  transition: background-color .2s;
}
@media (hover: hover) { .submit:hover { background: rgba(239, 191, 4, .85); } }
.submit[disabled] { cursor: default; }
.submit.is-error { background: rgba(255, 34, 68, .15); color: rgb(255, 34, 68); }
.spinner { width: 20px; height: 20px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(69,69,69,0) 7deg, var(--charcoal) 342deg); -webkit-mask: radial-gradient(circle, transparent 7px, #000 7.5px); mask: radial-gradient(circle, transparent 7px, #000 7.5px); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map { width: 100%; height: 353px; border: 0; border-radius: 10px; display: block; }

@media (max-width: 1199px) {
  .contact-card { grid-template-columns: 1fr; gap: 58px; }
  .contact-text { justify-content: flex-start; gap: 70px; padding: 0; }
  .contact-review .stars { padding: 0; }
  .map { height: 338px; }
}
@media (max-width: 809px) {
  .contact { padding: 25px 15px; }
  .contact-card { padding: 28px 20px 18px; border-radius: 24px; }
  .contact-review { gap: 26px; }
  .label .ph { display: inline; }
  .map { height: 262px; }
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { padding: 52px 0; }
.gallery .container { gap: 75px; overflow: hidden; }
.gallery .heading-wrap { max-width: 620px; gap: 24px; }
.g-grid { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.g-main { height: 600px; border-radius: 24px; overflow: hidden; }
.g-small { height: 600px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 22px; }
.g-small div { border-radius: 24px; overflow: hidden; min-height: 0; }
.g-small .bordered { border: 1px solid #222; }
.g-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1199px) {
  .g-grid, .g-small { gap: 18px; }
  .g-main, .g-small { height: 520px; }
}
@media (max-width: 809px) {
  .g-grid { grid-template-columns: 1fr; gap: 14px; }
  .g-main { height: 420px; border-radius: 18px; }
  .g-small { height: 500px; gap: 14px; }
  .g-small div { border-radius: 16px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--white); padding: 68px 0 64px; }
.footer .container { align-items: flex-start; gap: 64px; overflow: hidden; }
.footer-main { width: 100%; display: flex; align-items: flex-start; }
.footer-brand { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.footer-brand .t22 { max-width: 300px; color: var(--charcoal); }
.credit { color: var(--link-blue); opacity: .5; }
.footer-links { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 24px; }
.f-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.f-col.wide { flex: 2; }
.f-col > .t20 { color: var(--black); text-align: left; }
.f-list { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.f-list a { color: var(--black); opacity: .7; overflow-wrap: break-word; word-break: break-word; }
.f-list .empty { height: 0; }
.c-list { width: 100%; display: flex; flex-direction: column; gap: 20px; }
.c-link { display: flex; align-items: center; gap: 7px; }
.c-icon { padding: 7px; border-radius: 999px; background: var(--yellow); display: flex; flex: none; }
.c-link .t16 { color: var(--dark); flex: 1; min-width: 0; }
@media (max-width: 809px) {
  .footer { padding: 48px 0 34px; }
  .footer-main { flex-direction: column; gap: 58px; }
  .footer-brand, .footer-links { width: 100%; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px; }
}

/* =========================================================
   404
   ========================================================= */
.notfound { min-height: 100vh; padding: 132px 0 58px; background: var(--white); flex-direction: row; justify-content: center; }
.notfound .container { flex-direction: row; justify-content: center; }
.nf-text { width: 100%; max-width: 550px; display: flex; flex-direction: column; align-items: center; gap: 38px; }
.nf-heading { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.nf-heading .h1 { color: var(--dark); }
.nf-heading .t22 { max-width: 500px; text-align: center; }

/* Responsive images: <picture> must not change layout */
picture { display: contents; }

/* Above-the-fold entrance: pure CSS (no JS wait) so the hero paints immediately */
.js .rise { animation: rise .7s cubic-bezier(.22,1,.36,1) var(--rd, 0s) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(var(--ry, 0px)) rotate(var(--rot, 0deg)); }
  to   { opacity: 1; transform: rotate(var(--rot, 0deg)); }
}
@media (prefers-reduced-motion: reduce) { .js .rise { animation: none; } }

/* Credit link: readable contrast on white */
.credit { color: #0a66b8; opacity: 1; }
