/*
 * Fuentes alojadas en el propio dominio (H-002): ninguna petición a Google.
 * Son los mismos WOFF2 variables que servía Google Fonts, limitados a los
 * subconjuntos latin y latin-ext (los textos están en ES, EN y FR).
 * DM Sans y Playfair Display: licencia SIL Open Font License 1.1.
 */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-normal-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-normal-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/playfair-display-normal-latin-ext.woff2")
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/playfair-display-normal-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/playfair-display-italic-latin-ext.woff2")
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/playfair-display-italic-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/*
 * H-040: los textos que no llegaban al contraste WCAG AA (4,5:1) se oscurecieron lo justo,
 * bajando solo la luminosidad (mismo tono y saturación). Lo vigila tests/sitio/contraste.spec.js.
 */
:root {
  --accent: #38b6ff;
  --dark: #10263c;
  --serif: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: #f8f6f1;
  color: #172a3c;
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

section {
  scroll-margin-top: 78px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.container {
  width: min(1320px, calc(100% - 112px));
  margin: auto;
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -100px;
  z-index: 100;
  background: #fff;
  padding: 14px;
}

.skip-link:focus {
  top: 10px;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 116px;
  display: flex;
  align-items: center;
  padding: 0 55px;
  color: #fff;
  transition:
    background 0.25s,
    box-shadow 0.25s;
}

.site-header.scrolled {
  position: fixed;
  background: rgb(10 30 50 / 98%);
  box-shadow: 0 4px 25px #0002;
}

.brand {
  width: 155px;
  display: block;
  margin-right: auto;
}

.brand img {
  width: 145px;
  height: auto;
}

.desktop-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  margin: 0 auto;
}

.desktop-nav a {
  font-size: 12px;
  letter-spacing: 0.065em;
}

.desktop-nav a:hover,
.footer a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-left: auto;
}

.language {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
}

.language span {
  opacity: 0.4;
}

/* H-050: cada idioma es un enlace a su URL (antes un <button>). Se centra el texto como lo
   centraba el botón, también con el min-height del menú móvil. */
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: #ffffff9a;
}

.lang.active {
  color: #fff;
  font-weight: 700;
}

.nav-cta {
  border: 1px solid #ffffff85;
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
  display: flex;
  gap: 24px;
}

.nav-cta:hover {
  background: #fff;
  color: var(--dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 38px;
  height: 38px;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 1px;
  background: #fff;
  margin: 6px 0;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--dark);
  padding: 22px 35px 32px;
  box-shadow: 0 15px 20px #0004;
}

.mobile-nav:not([hidden]) {
  display: grid;
  gap: 22px;
}

.mobile-nav a {
  font-size: 15px;
}

.hero {
  height: 790px;
  min-height: 650px;
  max-height: 950px;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  transform: scale(1.005);
}

/* H-030: la foto del hero es un <img> (antes un background-image, que se descubre tarde).
   object-fit/object-position encuadran igual que background-size/background-position. */
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgb(6 26 45 / 67%),
      rgb(6 26 45 / 30%) 48%,
      rgb(6 26 45 / 7%) 95%
    ),
    linear-gradient(0deg, rgb(6 26 45 / 35%), transparent 28%);
}

.hero-inner {
  position: relative;
  padding-top: 85px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 27px;
}

.eyebrow-line {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font: 400 clamp(70px, 8.6vw, 132px)/1.09 var(--serif);
  letter-spacing: -0.047em;
  margin: 0 0 23px;
}

.hero h1 em {
  font-weight: 400;
}

.hero-subtitle {
  font-size: 16px;
  letter-spacing: 0.012em;
  line-height: 1.7;
  margin: 0 0 35px;
}

.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  font-size: 11px;
  letter-spacing: 0.095em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 18px 23px;
  border: 0;
  min-height: 54px;
}

.button-white {
  background: #fff;
  color: #10263c;
}

.button-white:hover {
  background: var(--accent);
}

.button-arrow {
  font-size: 18px;
  font-weight: 400;
}

.hero-bottom {
  position: absolute;
  bottom: 33px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.hero-bottom a {
  display: flex;
  gap: 19px;
}

.hero-bottom a span:last-child {
  font-size: 19px;
  line-height: 0.8;
}

.section {
  padding: 115px 0 125px;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 49px;
}

.eyebrow.dark {
  color: #15718d;
}

.section-mini {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #6a7371;
}

.section-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 57px;
}

.display-title {
  font: 400 clamp(48px, 5.5vw, 79px)/1.16 var(--serif);
  letter-spacing: -0.035em;
  margin: 0;
}

.display-title em {
  font-weight: 400;
}

.section-intro p,
.why-header p {
  font-size: 15px;
  line-height: 1.95;
  color: #69716d;
  max-width: 360px;
  margin: 0 0 7px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px 23px;
}

.experience-card {
  min-width: 0;
}

.experience-photo {
  height: 340px;
  overflow: hidden;
  background: #d8dedb;
  position: relative;
  display: block;
}

.experience-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.experience-photo:hover img {
  transform: scale(1.055);
}

.experience-photo .photo-arrow {
  position: absolute;
  right: 17px;
  bottom: 17px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f9f9f5;
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 0.25s,
    transform 0.25s;
}

.experience-photo:hover .photo-arrow {
  opacity: 1;
  transform: none;
}

.experience-details {
  padding: 17px 0 0;
}

.experience-index {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #157a9f;
}

.experience-details h3 {
  font: 400 26px/1.35 var(--serif);
  letter-spacing: -0.025em;
  margin: 8px 0 9px;
}

.experience-details p {
  font-size: 13px;
  color: #596572;
  line-height: 1.75;
  margin: 0 0 16px;
  max-width: 375px;
  min-height: 6.4em;
}

.card-link {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1777aa;
  border-bottom: 1px solid #69a9bd;
  padding-bottom: 5px;
  font-weight: 700;
}

.card-link:hover {
  color: #124a70;
}

.experiences-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 72px;
}

.experiences-foot p {
  font: italic 25px var(--serif);
  margin: 0;
}

.text-link {
  display: inline-flex;
  gap: 30px;
  border-bottom: 1px solid currentcolor;
  padding-bottom: 8px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 700;
}

.text-link:hover {
  color: #198ac1;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 740px;
  background: #eae8df;
}

.about-image {
  min-height: 740px;
  overflow: hidden;
}

.about-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.about-copy {
  display: flex;
  align-items: center;
  padding: 80px clamp(45px, 7.4vw, 130px);
}

.about-copy-inner {
  max-width: 540px;
}

.about .eyebrow {
  display: block;
  margin-bottom: 40px;
}

.about h2 {
  font-size: clamp(46px, 4.1vw, 68px);
  margin-bottom: 33px;
}

.about p {
  font-size: 14px;
  line-height: 2;
  color: #616a65;
  margin: 0 0 16px;
}

.about .about-signature {
  font: italic 24px/1.6 var(--serif);
  color: #10263c;
  margin: 32px 0 34px;
}

.why {
  background: #f8f6f1;
}

.why-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 45px;
  margin-bottom: 72px;
}

.why-header .display-title {
  max-width: 850px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #d2d3cc;
}

.why-item {
  padding: 36px 20px 15px 0;
  min-height: 245px;
  border-right: 1px solid #d2d3cc;
}

.why-item:not(:first-child) {
  padding-left: 24px;
}

.why-item:last-child {
  border-right: 0;
}

.why-item > span {
  color: #0679a5;
  font-size: 11px;
}

.why-item h3 {
  font: 400 25px/1.35 var(--serif);
  margin: 38px 0 12px;
}

.why-item p {
  font-size: 12px;
  color: #6a736e;
  line-height: 1.85;
  max-width: 230px;
  margin: 0;
}

.contact-section {
  background: #10263c;
  color: #fff;
  padding: 112px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 11%;
  align-items: start;
}

.contact-left .eyebrow {
  color: #79caeb;
}

.contact-left h2 {
  font-size: clamp(51px, 5.3vw, 78px);
  margin: 44px 0 25px;
}

.contact-left > p {
  font-size: 15px;
  line-height: 1.9;
  color: #d2dbd6;
  max-width: 390px;
}

.contact-direct {
  display: grid;
  gap: 14px;
  margin-top: 90px;
}

.contact-direct > span {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #b3c4c1;
  text-transform: uppercase;
}

.contact-direct a {
  font: 400 clamp(20px, 2.2vw, 31px) var(--serif);
  border-bottom: 1px solid #78918d;
  padding-bottom: 12px;
  width: fit-content;
}

.form-panel {
  background: #f8f6f1;
  color: #10263c;
  padding: 42px 44px 46px;
}

.form-intro {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin: 0 0 32px;
}

.form-intro span:last-child {
  font-size: 21px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field {
  display: block;
  margin: 0 0 24px;
}

.field > span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.045em;
  color: #5d6560;
  margin-bottom: 10px;
}

.field input,
.field textarea {
  border: 0;
  border-bottom: 1px solid #c4cac4;
  background: transparent;
  border-radius: 0;
  width: 100%;
  padding: 10px 0 11px;
  outline: 0;
  font-size: 14px;
  color: #10263c;
  min-height: 35px;
}

.field textarea {
  resize: vertical;
  min-height: 68px;
}

.field input:focus,
.field textarea:focus {
  border-color: #148cc1;
  box-shadow: 0 1px 0 #148cc1;
}

.field textarea::placeholder {
  color: #6b736d;
}

.field input[type="date"] {
  min-width: 0;
  width: 100%;
  color: #253747;
  color-scheme: light;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 8px;
  font-size: 11px;
  line-height: 1.7;
  color: #64706b;
  cursor: pointer;
}

.privacy-check input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #1688c2;
}

.privacy-check a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #123d5c;
}

/* Honeypot (campo_extra): fuera de pantalla, sin hueco en el flujo ni cambio visual. */
.campo-extra {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-notice {
  font-size: 10px;
  line-height: 1.6;
  color: #68746e;
  margin: 16px 0 20px;
}

.button-blue {
  background: #38b6ff;
  color: #12323f;
  width: 100%;
}

.button-blue:hover {
  background: #72c9fc;
}

.form-feedback {
  font-size: 12px;
  line-height: 1.6;
}

.form-feedback a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #123d5c;
}

.footer {
  background: #091c30;
  color: #fff;
  padding: 55px 0 26px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 50px;
}

/* H-034: height: auto conserva la proporción del logo (antes se pintaba a 126×117,
   estrechado un 14 % por el height="117" del HTML). */
.footer-brand img {
  width: 126px;
  height: auto;
}

.footer-brand p {
  font: italic 18px var(--serif);
  color: #cad6d1;
  margin: 0;
}

.footer-meta {
  display: grid;
  gap: 12px;
}

.footer-meta span,
.back-top {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #9caeaa;
}

.footer-meta a {
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid #ffffff25;
  padding-top: 23px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #96a7a3;
  font-size: 10px;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  align-items: center;
}

.footer-credit {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #fff5;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #fff5;
}

.back-top:hover {
  color: #fff;
}

@media (width <= 1100px) {
  .desktop-nav {
    gap: 18px;
  }

  .site-header {
    padding: 0 30px;
  }

  .container {
    width: calc(100% - 64px);
  }

  .experience-photo {
    height: 270px;
  }

  .about-copy {
    padding: 65px 50px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-item:nth-child(2) {
    border-right: none;
  }

  .why-item:nth-child(-n + 2) {
    border-bottom: 1px solid #d2d3cc;
  }

  .contact-grid {
    gap: 5%;
  }
}

@media (width <= 760px) {
  .container {
    width: calc(100% - 42px);
  }

  .site-header {
    height: 78px;
    padding: 0 20px;
  }

  .brand {
    width: 114px;
  }

  .brand img {
    width: 112px;
  }

  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .language {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .lang {
    min-width: 34px;
    min-height: 44px;
    padding: 10px 4px;
  }

  .menu-toggle {
    display: block;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 11px;
  }

  .mobile-nav {
    padding: 22px 24px 30px;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .hero {
    height: 100svh;
    min-height: 580px;
    max-height: 820px;
  }

  .hero-photo img {
    object-position: 56% center;
  }

  .hero-inner {
    padding-top: 55px;
  }

  .hero h1 {
    font-size: clamp(52px, 10.5vw, 80px);
    line-height: 1.08;
    letter-spacing: -0.045em;
  }

  .hero-subtitle {
    max-width: 270px;
    font-size: 14px;
  }

  .hero-bottom {
    bottom: 23px;
    gap: 12px;
  }

  .hero-bottom a {
    white-space: nowrap;
  }

  .hero-bottom > span {
    font-size: 8px;
  }

  .button {
    min-height: 48px;
  }

  .section {
    padding: 77px 0 85px;
  }

  .section-top {
    margin-bottom: 35px;
  }

  .section-mini {
    display: none;
  }

  .section-intro {
    display: block;
    margin-bottom: 37px;
  }

  .display-title {
    font-size: clamp(44px, 9.4vw, 70px);
  }

  .section-intro p {
    margin: 23px 0 0;
    font-size: 14px;
  }

  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 39px 15px;
  }

  .experience-photo {
    height: auto;
    aspect-ratio: 4/4.25;
  }

  .experience-details h3 {
    font-size: 21px;
  }

  .experience-details p {
    font-size: 13px;
    line-height: 1.75;
  }

  .about {
    display: block;
  }

  .about-image {
    min-height: 0;
    height: 390px;
  }

  .about-copy {
    padding: 72px 28px 77px;
  }

  .about .eyebrow {
    margin-bottom: 25px;
  }

  .about h2 {
    font-size: clamp(42px, 9vw, 62px);
  }

  .why-header {
    display: block;
    margin-bottom: 45px;
  }

  .why-header p {
    margin-top: 23px;
  }

  .why-item {
    min-height: 220px;
  }

  .contact-section {
    padding: 74px 0;
  }

  .contact-grid {
    display: block;
  }

  .contact-left h2 {
    margin: 32px 0 16px;
  }

  .contact-direct {
    margin: 30px 0 44px;
  }

  .contact-direct a {
    overflow-wrap: anywhere;
  }

  .form-panel {
    padding: 30px 25px 35px;
  }

  .footer-top {
    align-items: start;
    flex-wrap: wrap;
  }

  .footer-brand {
    width: 100%;
  }

  .footer-meta a {
    overflow-wrap: anywhere;
  }

  .footer-bottom {
    line-height: 1.7;
  }
}

@media (width <= 640px) {
  .privacy-check {
    line-height: 1.5;
  }

  .footer-legal {
    gap: 12px 18px;
  }
}

@media (width <= 480px) {
  .hero {
    min-height: 600px;
    max-height: 780px;
  }

  .hero-photo img {
    object-position: 62% center;
  }

  .hero h1 {
    font-size: clamp(46px, 12vw, 58px);
  }

  .hero-subtitle {
    max-width: 310px;
    font-size: 14px;
  }

  .hero-bottom > span {
    letter-spacing: 0.065em;
    max-width: 150px;
    line-height: 1.5;
  }

  .hero-bottom a {
    gap: 8px;
    align-items: center;
  }

  .hero-bottom a span:first-child {
    font-size: 9px;
  }

  .section {
    padding: 68px 0 76px;
  }

  .section-top {
    margin-bottom: 28px;
  }

  .section-intro {
    margin-bottom: 32px;
  }

  .section-intro p {
    line-height: 1.8;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .experience-photo {
    height: auto;
    aspect-ratio: 5/4;
  }

  .experience-details {
    padding-top: 13px;
  }

  .experience-details h3 {
    font-size: 25px;
    margin: 6px 0 8px;
  }

  .experience-details p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 12px;
    min-height: 0;
  }

  .card-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-top: 8px;
  }

  .experiences-foot {
    display: block;
    text-align: center;
  }

  .experiences-foot p {
    margin-bottom: 16px;
  }

  .about-image {
    height: 310px;
  }

  .about-copy {
    padding: 65px 22px 69px;
  }

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

  .why-item,
  .why-item:not(:first-child) {
    padding: 26px 0 28px;
    border-right: 0;
    border-bottom: 1px solid #d2d3cc;
    min-height: 0;
  }

  .why-item h3 {
    margin-top: 16px;
  }

  .why-item p {
    max-width: none;
  }

  .contact-section {
    padding: 65px 0 78px;
  }

  .contact-left h2 {
    font-size: clamp(45px, 12vw, 60px);
  }

  .contact-direct {
    margin: 28px 0 36px;
  }

  .contact-direct a {
    font-size: clamp(19px, 5.5vw, 26px);
  }

  .form-panel {
    padding: 28px 22px 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .field input,
  .field textarea {
    font-size: 16px;
    min-height: 44px;
  }

  .field textarea {
    min-height: 100px;
  }

  .footer {
    padding-top: 45px;
  }

  .footer-top {
    padding-bottom: 30px;
  }

  .footer-meta {
    width: 100%;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }
}

@media (width <= 380px) {
  .hero h1 {
    font-size: clamp(41px, 11.6vw, 49px);
  }

  .form-panel {
    padding-inline: 16px;
  }

  .footer-bottom {
    overflow-wrap: anywhere;
  }
}

@media (width <= 360px) {
  .container {
    width: calc(100% - 32px);
  }

  .site-header {
    padding: 0 14px;
  }

  .brand,
  .brand img {
    width: 105px;
  }

  .button {
    gap: 24px;
    padding: 16px 18px;
  }

  .form-panel {
    padding: 25px 16px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
