@font-face {
  font-family: Figtree;
  src: url("assets/Figtree.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}
:root {
  --navy: #0c1539;
  --brand: #00047a;
  --orange: #ff6f43;
  --edge: clamp(22px, 5vw, 104px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--navy); background: #f8f8f5; font: 16px/1.5 Figtree,sans-serif; }
button,a { font: inherit; color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
p,h1,h2,h3 { margin: 0; }
header,footer { display: flex; align-items: center; padding: 15px var(--edge); gap: 36px; }
header { color: white; background: var(--navy); }
.wordmark { font-size: clamp(24px,2.1vw,40px); letter-spacing: -.065em; font-weight: 300; line-height: 1; }
.wordmark u { font-weight: 500; text-decoration: none; margin: 0px 1px; }
.wordmark b { font-weight: 900; }
nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
nav a:hover, footer a[href="#grup"]:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact { background: transparent; border: 1px solid #ffffff66; border-radius: 28px; padding: 7px 17px; font-size: 14px; }
.contact span { margin-left: 14px; color: var(--orange); }
main { max-width: 2040px; margin: auto; padding: 0 var(--edge); }
.opening { display: grid; grid-template-columns: 1.45fr 1fr; align-items: end; gap: 6vw; padding: clamp(25px,4.6vh,66px) 0; }
.eyebrow, .label { font-size: 10px; letter-spacing: .16em; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 13px; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--orange); }
h1 { margin-top: 17px; font-size: clamp(44px,min(5.2vw,8.2vh),96px); line-height: 1.04; letter-spacing: -.035em; font-weight: 330; }
h1 em { color: var(--navy); font-family: Baskerville, "Palatino Linotype", Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -.034em; }
.profile { max-width: 43ch; margin-bottom: 4px; font-size: clamp(16px,1.28vw,24px); line-height: 1.5; color: #424858; }
.companies { border-top: 1px solid #b6bac5; padding: 15px 0 clamp(22px,3vh,42px); }
.companies h2 { margin-bottom: 25px; font-size: 26px; font-weight: 600; letter-spacing: -.012em; }
.directory { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
.company { position: relative; display: flex; flex-direction: column; justify-content: end; padding: clamp(16px,1.2vw,35px); min-height: clamp(220px,39vh,520px); color: white; background: var(--navy); isolation: isolate; overflow: hidden; }
.photo, .company::after { position: absolute; inset: 0; z-index: -1; }
.photo img, .photo canvas { display: block; height: 31vh; width: 100%; object-fit: cover; object-position: center; }
.company::after { content: ""; background: linear-gradient(180deg,transparent 18%,#06102630 36%,#061026e8 90%); }
.identity h3 { font-size: clamp(27px,2.6vw,48px); letter-spacing: -.025em; line-height: 1.12; font-weight: 360; }
.identity p { font-size: clamp(14px,1.1vw,20px); margin-top: 7px; }
.summary { border-top: 1px solid #ffffff66; margin-top: 16px; padding-top: 11px; }
.summary strong { font-size: 13px; font-weight: 500; }
.arrow { position: absolute; right: 7%; bottom: clamp(16px,1vw,35px); }
.company:hover .arrow, .company:focus-visible .arrow { color: var(--orange); }
footer { justify-content: space-between; border-top: 1px solid #d5d6dc; font-size: 13px; }
footer .wordmark { font-size: 21px; }
dialog { width: min(420px,92vw); padding: 32px; color: var(--navy); border: 0; }
dialog::backdrop { background: #080e35bb; }
dialog button { float: right; border: 0; background: transparent; font-size: 26px; }
dialog h2 { margin: 12px 0; font-weight: 450; letter-spacing: -.02em; }
dialog a { display: block; padding: 12px 0; border-bottom: 1px solid #ccc; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
@media(max-width:720px) {
  header { justify-content: space-between; padding-block: 10px; }
  nav { display: none; }
  .opening { display: block; padding: 19px 0; }
  h1 { font-size: clamp(34px,8.9vw,54px); margin-top: 8px; }
  h1 br { display: none; }
  h1 em::before { content: " "; }
  .profile { font-size: 14px; line-height: 1.4; margin: 10px 0 0; }
  .companies { padding: 9px 0 15px; }
  .directory { grid-template-columns: 1fr; }
  .company { min-height: 96px; padding: 11px 38px 11px 27%; }
  .photo { width: 24%; }
  .company::after { display: none; }
  .identity h3 { font-size: 23px; }
  .identity p { font-size: 13px; margin-top: 2px; line-height: 1.2; }
  .summary { border: 0; padding: 0; margin: 3px 0 0; line-height: 1; }
  .summary strong { font-size: 11px; color: #d1d6ef; }
  .arrow { bottom: 42%; right: 14px; }
}
@media(prefers-reduced-motion:no-preference) {
  .photo { transition: transform .45s ease; }
  .company:hover .photo { transform: scale(1.035); }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }

.identity .field { font-weight: 540; }
.identity .description {display:none;
  max-width: 47ch;
  margin-top: 8px;
  font-size: clamp(14px, 0.35vw, 18px);
  line-height: 1.4;
  font-weight: 400;
  color: #f4f5fa;
  letter-spacing: 0.3px;
}
.company::after {
  background: linear-gradient(180deg, transparent, #06102666 42%, #061026dc 76%);
}

.project-card { position: relative; display: grid; }
.gallery-open {
  position: absolute; inset: 14px 14px auto auto; padding: 6px 12px;
  border: 1px solid #ffffff85; border-radius: 24px; background: #091533cd;
  color: white; font-size: 13px;
}
.gallery-open:hover { background: var(--navy); }
#gallery { width: min(960px,94vw); max-height: 94svh; padding: 0; background: #0c1539; color: white; }
.gallery-head,.gallery-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; }
.gallery-head h2 { font-size: clamp(18px,2vw,27px); margin: 0; }
#gallery button { color: white; }
.gallery-image { display: block; width: 100%; height: min(60svh,650px); object-fit: contain; background: #070d1c; }
#gallery .switch { background: transparent; border: 1px solid #ffffff55; border-radius: 24px; padding: 5px 12px; font-size: 14px; white-space: nowrap; }
.gallery-foot p { font-size: 14px; }
.opening { position: relative; }
.opening::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 21%; height: 2px; background: linear-gradient(90deg,var(--brand) 0 92%,var(--orange) 92%); transform-origin: left; }
@media (prefers-reduced-motion:no-preference) {
  .opening::after { animation: trace .95s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy, .profile, .project-card { animation: arrive .68s cubic-bezier(.18,.75,.2,1) backwards; }
  .profile { animation-delay: .08s; }
  .project-card:nth-child(2) { animation-delay: .12s; }
  .project-card:nth-child(3) { animation-delay: .24s; }
  @keyframes trace { from { transform: scaleX(0); } }
  @keyframes arrive { from { opacity: 0; transform: translateY(14px); } }
}
@media(max-width:720px) {
  .gallery-open { inset: auto auto 4px 4px; max-width: 23%; font-size: 10px; padding: 3px 5px; }
}

.identity h3 b { font-weight: 680; letter-spacing: -.035em; }
