/* Viewport-led home composition. Content can still grow at enlarged text sizes. */
:root { --header-height: 91px; }
.hero {
  height: calc(100svh - var(--header-height));
  min-height: min(500px, calc(100svh - var(--header-height)));
  display: flex;
  align-items: center;
}
.hero > .container { position: relative; z-index: 2; }
.hero-content { padding-block: 28px 50px; max-width: 700px; }
.hero h1 { font-size: clamp(3rem, min(6.2vw, 10svh), 6rem); margin-bottom: 22px; }
.hero .eyebrow { margin-bottom: 25px; }
.hero .lead { margin-bottom: 0; }
.hero-actions { margin-top: 26px; }
.hero-portrait { object-fit: cover; object-position: center top; width: 57%; height: 100%; opacity: 1; }
.hero-note { bottom: 35px; z-index: 2; }
.neural-field { position: absolute; inset: 0 auto 0 0; width: 65%; height: 100%; pointer-events: none; z-index: 1; opacity: .58; mask-image: linear-gradient(90deg, #000 40%, transparent); }

/* Preserve the full photograph, including the head, at every aspect ratio. */
.wide-photo { height: auto; aspect-ratio: 3 / 2; object-fit: contain; object-position: center; }

/* The line grows from the left without moving the menu text. */
.navbar .nav-link::after,
.navbar .nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 5px;
  width: auto; height: 1px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.navbar .nav-link.active::after { transform: scaleX(.24); }
.navbar .nav-link:hover::after,
.navbar .nav-link:focus-visible::after { transform: scaleX(1); }
.nav-contact { position: relative; transition: background .3s, color .3s, border-color .3s; }
.nav-contact::after { content: ''; position: absolute; bottom: 6px; left: 21px; right: 21px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.nav-contact:hover::after,.nav-contact:focus-visible::after { transform: scaleX(1); }
.stage-card { transition: background .4s ease; }
.portrait-frame { overflow: visible; }
.pillar { transition: border-color .5s ease; }
.pillar:hover { border-color: #8edce6; }
.btn-brand .arrow,.text-link .arrow { transition: transform .3s ease; }
.btn-brand:hover .arrow,.text-link:hover .arrow { transform: translate(3px,-3px); }
.js-motion .three-pillars .reveal:nth-child(2) { transition-delay: .1s; }
.js-motion .three-pillars .reveal:nth-child(3) { transition-delay: .2s; }

/* Contact form: generous fields, clear labels and honest preview feedback. */
.enquiry-form { border: 1px solid var(--line); padding: 42px; background: #fff; box-shadow: 0 12px 45px #122d3d05; }
.form-heading { margin-bottom: 34px; }
.form-heading .eyebrow { margin-bottom: 15px; }
.form-heading h2 { font-size: clamp(1.8rem,2.8vw,2.6rem); margin-bottom: 17px; }
.form-heading p { font-size: .92rem; margin: 0; max-width: 500px; }
.enquiry-form .form-label { font-size: .84rem; color: #244254; margin-bottom: 10px; }
.optional { font-size: .72rem; color: var(--muted); margin-left: 5px; }
.enquiry-form .form-control,.enquiry-form .form-select { min-height: 54px; background-color: #f6f9fa; border: 1px solid #d9e3e8; padding: 13px 15px; font-size: .94rem; transition: border-color .25s, background .25s, box-shadow .25s; }
.enquiry-form .form-control::placeholder { color: #738792; font-weight: 300; opacity: 1; }
.enquiry-form .form-select { padding-right: 35px; }
.enquiry-form .form-control:focus,.enquiry-form .form-select:focus { background-color: white; border-color: #5a99ad; box-shadow: 0 0 0 3px #5a99ad12; }
.enquiry-form textarea { resize: vertical; min-height: 155px; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.form-required { font-size: .73rem; color: var(--muted); margin: 0; }
.form-preview-note { font-size: .78rem; color: var(--muted); margin: 20px 0 0; }
.form-status { margin: 20px 0 0; padding: 15px 0 0; border-top: 1px solid var(--line); color: #28556b; font-size: .88rem; }
.contact-panel { background: var(--navy); padding: 37px 30px; display: flex; flex-direction: column; }
.contact-panel h2 { font-size: 2.2rem; }
.contact-panel p { color: #becfda; }
.contact-panel .contact-monogram { width: 77px; height: 90px; margin-bottom: 25px; }
.contact-channel { border-top: 1px solid #ffffff26; padding: 24px 0; }
.contact-channel .eyebrow { font-size: .65rem; margin-bottom: 9px; }
.contact-channel a { font-size: .92rem; overflow-wrap: anywhere; }
.contact-channel a:hover { color: var(--cyan); }
.contact-panel-bottom { margin-top: auto; padding-top: 30px; }
.contact-panel-bottom p { font-size: .83rem; margin-bottom: 8px; }
.contact-panel .text-link { font-size: .82rem; }

@media (max-width: 991px) {
  :root { --header-height: 81px; }
  .hero-content { max-width: 570px; }
  .hero h1 { font-size: clamp(3rem,min(8vw,9.5svh),4.8rem); }
  .hero-portrait { width: 65%; opacity: .7; }
  .hero:after { background: linear-gradient(90deg,#071b2c 4%,#071b2cf0 30%,#071b2c30 90%),linear-gradient(0deg,#071b2c 0%,transparent 25%); }
  .hero-note { bottom: 20px; right: 30px; }
  .navbar .nav-link::after,.navbar .nav-link.active::after { left: 12px; right: 12px; }
  .navbar .nav-link.active::after { transform: scaleX(.08); }
  .navbar .nav-link:hover::after,.navbar .nav-link:focus-visible::after { transform: scaleX(1); }
  .contact-panel { margin-top: 0; height: 100%; }
}
@media (max-width: 575px) {
  :root { --header-height: 69px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; height: calc(100svh - var(--header-height)); min-height: 470px; }
  .hero>.container { flex: 0 0 auto; order: 1; }
  .hero-content { padding: clamp(16px,3svh,30px) 0 12px; }
  .hero h1 { font-size: clamp(2.05rem,min(10.9vw,6.1svh),3rem); margin-bottom: 15px; }
  .hero .eyebrow { font-size: .62rem; margin-bottom: 17px; letter-spacing: .11em; gap: 10px; }
  .hero .eyebrow:before { width: 16px; }
  .hero .lead { font-size: .92rem; line-height: 1.65; max-width: 345px; }
  .hero-actions { gap: 17px; margin-top: 18px; flex-wrap: nowrap; }
  .hero-actions .btn-brand { padding: 11px 12px; font-size: .7rem; gap: 9px; white-space: nowrap; }
  .hero-actions .text-link { font-size: .7rem; gap: 8px; white-space: nowrap; }
  .hero-portrait { position: relative; order: 2; flex: 1 1 0; min-height: 0; width: 100%; height: 0; object-fit: cover; object-position: center top; opacity: 1; }
  .hero:after { background: linear-gradient(0deg,#071b2c99 0%,transparent 16%); }
  .hero-note { bottom: 18px; left: 22px; right: auto; max-width: 170px; padding-left: 12px; }
  .hero-note strong { font-size: .82rem; }
  .hero-note span { font-size: .61rem; line-height: 1.6; max-width: 145px; }
  .neural-field { width: 100%; opacity: .38; }
  .enquiry-form { padding: 25px 21px; }
  .form-heading { margin-bottom: 26px; }
  .form-heading h2 { font-size: 1.9rem; }
  .form-bottom { gap: 12px; }
  .form-bottom .btn-brand { gap: 20px; padding: 14px 20px; }
  .contact-panel { padding: 32px 25px; }
}
@media (min-width: 576px) and (max-height: 650px) {
  .hero-content { padding-block: 15px 35px; }
  .hero h1 { font-size: clamp(2.25rem,8svh,3.5rem); margin-bottom: 15px; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero .lead { font-size: .94rem; max-width: 400px; line-height: 1.65; }
  .hero-actions { margin-top: 17px; }
  .hero-note { bottom: 18px; }
}
@media (max-width: 360px) {
  .hero-actions { gap: 12px; }
  .hero-actions .btn-brand { font-size: .65rem; padding-inline: 9px; gap: 5px; }
  .hero-actions .text-link { font-size: .65rem; gap: 5px; }
  .hero .eyebrow { font-size: .57rem; }
}
@media (min-width: 576px) and (max-height: 500px) {
  .hero-content { padding-block: 10px; }
  .hero h1 { font-size: clamp(1.8rem,8svh,2.2rem); margin-bottom: 10px; }
  .hero .eyebrow { margin-bottom: 9px; font-size: .64rem; }
  .hero .lead { font-size: .82rem; line-height: 1.5; max-width: 375px; }
  .hero-actions { margin-top: 13px; gap: 22px; }
  .hero-actions .btn-brand { padding: 9px 16px; font-size: .73rem; }
  .hero-actions .text-link { font-size: .73rem; }
  .hero-note { max-width: 185px; }
  .hero-note strong { font-size: .88rem; }
  .hero-note span { font-size: .64rem; }
}
@media (prefers-reduced-motion: reduce) {
  .neural-field { opacity: .25; }
}

/* An editorial journey composition: each idea arrives whole, in sequence. */
.introduction { background: #fcfcf9; }
.intro-copy h2 { font-size: clamp(2.3rem,3.7vw,3.5rem); margin-bottom: 26px; }
.intro-copy h2 span { color: #517b88; }
.intro-copy p { line-height: 1.9; max-width: 470px; }
.intro-copy .text-link { margin-top: 18px; }
.journey-composition { position: relative; padding: 35px 42px 12px; background: linear-gradient(135deg,#edf4f3,#f3f4f8); border: 1px solid #dce6e6; }
.journey-composition-label { display: flex; justify-content: space-between; color: #50717c; text-transform: uppercase; letter-spacing: .16em; font-size: .65rem; margin-bottom: 22px; }
.journey-composition-label span { font-size: 1.1rem; }
.journey-words { list-style: none; padding: 0; margin: 0; }
.journey-words li { display: flex; align-items: baseline; gap: 22px; padding: 21px 0; border-top: 1px solid #cbdcde; }
.journey-index { font-size: .65rem; color: #547b88; font-variant-numeric: tabular-nums; }
.journey-words h3 { font-size: clamp(1.55rem,2.6vw,2.55rem); font-weight: 300; letter-spacing: -.045em; margin: 0 0 7px; }
.journey-words p { font-size: .77rem; color: #627983; margin: 0; }
.js-motion .journey-words li { transition-duration: .85s; transform: translateX(20px); }
.js-motion .journey-words li.is-visible { transform: none; }
.js-motion .journey-words li:nth-child(2) { transition-delay: .13s; }
.js-motion .journey-words li:nth-child(3) { transition-delay: .26s; }
.js-motion .journey-words li:nth-child(4) { transition-delay: .39s; }
@media (max-width: 575px) {
  .journey-composition { padding: 27px 24px 9px; }
  .journey-words h3 { font-size: clamp(1.5rem,7vw,2rem); }
  .journey-words li { gap: 15px; padding: 20px 0; }
}

/* Preserve the original tablet overlay, with enough width for the full gesture. */
@media (min-width: 576px) and (max-width: 1199px) {
  .hero-portrait { width: 100%; object-fit: contain; object-position: right bottom; }
}
