:root {
  color-scheme: light;
  --navy: #0b1c30;
  --navy-deep: #091729;
  --navy-light: #152e49;
  --gold: #d8ad69;
  --gold-ink: #77521d;
  --text: #13283e;
  --muted: #4e5c6a;
  --line: #dbe2e9;
  --paper: #f1f4f7;
  --gutter: clamp(20px, 5vw, 76px);
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid #b97924; outline-offset: 4px; }
.wrap { width: min(1360px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; z-index: 5; top: 10px; left: 10px; padding: 10px 16px; background: #fff; transform: translateY(-150%); }
.skip:focus { transform: none; }

.header { background: #fff; position: relative; z-index: 2; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; }
.brand img { width: 91px; height: auto; }
.brand span { border-left: 1px solid var(--line); padding-left: 15px; max-width: 105px; font-size: .875rem; line-height: 1.25; font-weight: 650; }
.nav, .footer-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 36px); }
.nav a, .footer-nav a { font-size: .9375rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.nav a:hover, .footer-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.nav-contact { padding: 10px 18px; border: 1px solid #a6b3c0; }
.menu-button { display: inline-flex; align-items: center; gap: .6rem; padding: 8px 12px; min-height: 44px; color: var(--navy); background: #fff; border: 1px solid var(--line); cursor: pointer; font-weight: 650; }
.menu-icon { display: block; width: 16px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.menu-icon::after { content: ''; position: absolute; inset: 3px 0 auto; border-top: 2px solid currentColor; }

.hero { background: var(--navy-deep); position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero-image { position: absolute; z-index: -2; inset: 0 0 0 37%; background: url('assets/porto.webp') center 47% / cover no-repeat; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #091729 37%, rgba(9,23,41,.82) 45%, rgba(9,23,41,.26) 68%, rgba(9,23,41,.05) 100%); }
.hero-inner { display: flex; align-items: center; min-height: clamp(515px, 49vw, 690px); padding-block: 70px 79px; }
.hero-copy { max-width: 680px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--gold-ink); font-size: .875rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 16px; }
.eyebrow::before { content: ''; width: 25px; height: 1px; background: currentColor; flex: 0 0 25px; }
.eyebrow-light { color: #e1bd82; }
h1, h2, h3 { margin: 0; line-height: 1.07; letter-spacing: -.04em; }
h1 { font-size: clamp(3rem, 5.4vw, 5.6rem); font-weight: 720; }
h2 { font-size: clamp(2.125rem, 4vw, 4.15rem); font-weight: 720; }
h3 { font-size: 1.25rem; line-height: 1.2; }
.hero-description { max-width: 500px; margin: 25px 0 29px; color: #e3e9f0; font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 17px; font-size: .9375rem; font-weight: 720; text-decoration: none; border: 1px solid transparent; transition: background-color .16s ease, color .16s ease; }
.button-gold { background: var(--gold); color: var(--navy-deep); }
.button-gold:hover { background: #edca8e; }
.button-outline { border-color: #a7b7c9; color: #fff; background: #09172947; }
.button-outline:hover { background: #fff; color: var(--navy-deep); }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); align-items: center; gap: clamp(30px, 7vw, 110px); padding-block: clamp(62px, 8vw, 122px); }
.about h2 { max-width: 620px; }
.about-body > p:not(.eyebrow), .portfolio-head > p { font-size: 1.06rem; line-height: 1.68; color: var(--muted); }
.about-body > p:not(.eyebrow) { margin: 19px 0 0; }
.about-image { margin: 0; border-left: 4px solid var(--gold); padding-left: 9px; }
.about-image img { width: 100%; height: auto; aspect-ratio: 1.24; object-fit: cover; }

.portfolio { background: var(--paper); padding-block: clamp(58px, 7vw, 104px); }
.portfolio-head { display: flex; justify-content: space-between; align-items: end; gap: 26px; margin-bottom: 33px; }
.portfolio-head > p { width: min(100%, 390px); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.card > img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; background: #d9e0e7; }
.card-body { flex: 1; display: flex; align-items: start; flex-direction: column; padding: 20px 17px 16px; }
.card-body p { margin: 10px 0 11px; line-height: 1.52; color: var(--muted); }
.card-body a { margin-top: auto; padding-block: 9px; font-size: .9375rem; font-weight: 700; text-underline-offset: .28em; text-decoration-color: #b58a4e; }
.card-body a:hover { color: var(--gold-ink); }
.caption { color: var(--muted); font-size: .875rem; margin: 15px 0 0; }

.contact { background: var(--navy); color: #fff; padding-block: clamp(62px, 7vw, 103px); }
.contact-inner { display: grid; grid-template-columns: 1fr .82fr; align-items: center; gap: clamp(25px, 7vw, 100px); }
.contact-inner > div:first-child > p:not(.eyebrow) { color: #d5dfeb; max-width: 420px; line-height: 1.65; margin: 21px 0 24px; }
.contact-card { background: var(--navy-light); border: 1px solid #41607b; border-top: 2px solid var(--gold); padding: clamp(18px, 3vw, 33px); }
.contact-card h3 { letter-spacing: -.02em; }
address { font-style: normal; }
.contact-card dl { margin: 13px 0 0; }
.contact-card dl > div { padding: 11px 0; border-bottom: 1px solid #415d76; }
.contact-card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-card dt { font-size: .875rem; font-weight: 650; color: #c9d6e5; }
.contact-card dd { margin: 4px 0 0; line-height: 1.45; overflow-wrap: anywhere; }
.contact-card a { text-underline-offset: .25em; text-decoration-color: var(--gold); }
.contact-card a:hover { color: #f0c88c; }

.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 22px; padding-block: 30px; }
.footer-brand img { width: 78px; height: auto; }
.footer p { margin: 0; font-weight: 650; font-size: .9375rem; }
.footer small { display: block; font-size: .875rem; margin-top: 4px; font-weight: 500; color: var(--muted); }
.footer-nav { margin-left: auto; flex-wrap: wrap; }

@media (max-width: 950px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-image { left: 27%; }
  .hero::before { background: linear-gradient(90deg, #091729 27%, #091729e8 36%, #0917294f 86%); }
}
@media (max-width: 680px) {
  .header-inner { min-height: 70px; flex-wrap: wrap; gap: 0; }
  .brand { gap: 10px; }
  .brand img { width: 73px; }
  .brand span { padding-left: 10px; }
  .nav { width: 100%; flex-wrap: wrap; gap: 3px 18px; padding: 7px 0 14px; border-top: 1px solid var(--line); }
  .nav a { padding: 11px 0; }
  .nav-contact { border: 0; }
  .hero-inner { min-height: 590px; align-items: end; padding-block: 190px 44px; }
  .hero-image { inset: 0 0 auto; height: 330px; background-position: 50% 43%; }
  .hero::before { background: linear-gradient(0deg, #091729 47%, #091729e8 58%, #09172916 100%); }
  h1 { font-size: clamp(2.4rem, 8.5vw, 3.6rem); }
  .desktop-break { display: none; }
  .hero-description { margin: 17px 0 20px; }
  .about, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .about-image { max-width: 520px; }
  .portfolio-head { display: block; }
  .portfolio-head > p { margin-top: 13px; }
  .footer-nav { width: 100%; margin-left: 0; margin-top: 9px; padding-top: 15px; border-top: 1px solid var(--line); }
}
@media (max-width: 405px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
