:root {
  --navy: #0d192d;
  --gold: #e8b653;
  --paper: #f5f6f8;
  --ink: #15223a;
  --muted: #536076;
  --on-dark: #d4dbe8;
  --line: #d9dee7;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--navy);
  line-height: 1.6;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #b77503; outline-offset: 4px; }
.header :focus-visible, .hero :focus-visible, .diagnostic :focus-visible, .footer :focus-visible { outline-color: var(--gold); }
.skip { position: absolute; z-index: 2; left: 1rem; top: -8rem; padding: .75rem 1rem; background: white; color: var(--navy); }
.skip:focus { top: .75rem; }
.wrap { width: min(calc(100% - 2.5rem), 74rem); margin-inline: auto; }
.header { background: var(--navy); color: white; border-bottom: 1px solid #ffffff20; }
.bar { display: grid; align-items: center; gap: .6rem; padding-block: .8rem .4rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; width: fit-content; text-decoration: none; text-transform: uppercase; letter-spacing: .11em; font-weight: 750; line-height: 1.15; }
.brand img { border-radius: 50%; }
.brand small { display: block; color: var(--gold); letter-spacing: .43em; font-size: .75rem; margin-top: .23rem; }
nav { display: flex; flex-wrap: wrap; gap: 0 .95rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-dark); font-size: .875rem; font-weight: 600; }
nav a:hover, .footer a:hover { color: var(--gold); }
nav a[aria-current="page"] { color: var(--gold); text-decoration: underline; text-underline-offset: .35em; }
.bar > .button { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .66rem 1.2rem; border: 1px solid transparent; border-radius: .4rem; font-size: .9375rem; font-weight: 700; text-align: center; text-decoration: none; }
.gold { background: var(--gold); color: var(--navy); }
.gold:hover { background: #f6ce79; }
.outline { border-color: #cbd5e087; color: white; background: #0d192d50; }
.outline:hover { border-color: var(--gold); background: #233453; }
.light { border-color: #7a5a25; color: var(--ink); background: white; }
.light:hover { background: #f8ecd6; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero { color: white; background: linear-gradient(0deg, #0d192d 3%, #0d192dfa 26%, #0d192dd4 49%, #0d192d10 100%), url("farol-costa.webp") 30% top / auto 75% no-repeat, var(--navy); border-bottom: 1px solid #e8b65356; }
.hero-content { padding-block: clamp(12rem, 51vw, 17rem) 3.25rem; }
.eyebrow { margin: 0 0 1rem; color: #78520e; text-transform: uppercase; font-size: .875rem; font-weight: 750; letter-spacing: .14em; }
.hero .eyebrow, .diagnostic .eyebrow { color: var(--gold); }
h1, h2, h3, p, dd { margin: 0; }
h1, h2 { color: inherit; font-family: Georgia, serif; font-weight: 400; letter-spacing: -.042em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 9vw, 6.6rem); }
h1 em { color: var(--gold); font-weight: inherit; }
h2 { font-size: clamp(2.25rem, 5.4vw, 4rem); }
h3 { font-size: 1.22rem; line-height: 1.25; }
.desktop-break { display: none; }
.lead, .intro { font-size: clamp(1.0625rem, 2.1vw, 1.25rem); max-width: 37rem; margin-top: 1.25rem; }
.lead { color: var(--on-dark); max-width: 33rem; }
.hero .actions { margin-top: 1.8rem; }
.section { padding-block: clamp(3.75rem, 7.5vw, 7.2rem); }
.section h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); }
.home-intro { background: white; }
.home-card { display: block; text-decoration: none; }
.home-card:hover { background: #f8ecd6; }
.services, .faq { background: white; }
.service-grid { display: grid; gap: 1rem; margin-top: 2.2rem; }
.service { padding: clamp(1.35rem, 3vw, 2rem); border: 1px solid var(--line); border-top: 2px solid #c99942; border-radius: .35rem; background: #fafbfc; }
.service svg { width: 2.15rem; height: 2.15rem; fill: none; stroke: #86601d; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .9rem; }
.service p, .principles dd, .intro, .faq details p { color: var(--muted); }
.service p { margin-top: .65rem; }
.studio { background: var(--paper); }
.split, .portfolio-layout { display: grid; gap: clamp(1.8rem, 5vw, 5.5rem); }
.principles { margin: 0; }
.principles div { padding-block: 1rem; border-top: 1px solid #c9d1df; }
.principles div:last-child { border-bottom: 1px solid #c9d1df; }
.principles dt { font-weight: 750; margin-bottom: .25rem; }
.portfolio { background: #e8edf5; }
.portfolio .button { margin-top: 1.25rem; }
.cover { width: min(100%, 23rem); justify-self: center; overflow: hidden; border-radius: .6rem; box-shadow: 0 18px 55px #0d192d2b; align-self: center; }
.cover img { height: auto; width: 100%; }
.project-list { grid-column: 1 / -1; margin: 0; padding-inline-start: 1.2rem; }
.project-list li + li { margin-top: .7rem; }
.project-list a { font-weight: 700; }
.diagnostic { color: white; background: radial-gradient(ellipse at right top, #223954, var(--navy) 75%); }
.diagnostic .intro, .contact-panel p { color: var(--on-dark); }
.contact-panel { padding: clamp(1.25rem, 3vw, 2.1rem); border: 1px solid #e8b65362; background: #0d192d9c; border-radius: .5rem; }
.contact-panel p { margin-top: .65rem; }
.contact-panel .actions { margin-top: 1.2rem; }
.contact-panel .small { font-size: .875rem; margin-top: 1rem; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; position: relative; padding: .95rem 2.3rem .95rem 0; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; right: .25rem; content: "+"; color: #78520e; font-size: 1.25rem; line-height: 1.3; }
details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1rem; }
.footer { padding-block: 2.8rem 1.4rem; color: var(--on-dark); background: var(--navy); }
.footer-grid { display: grid; gap: 1.5rem; }
.footer .brand, .footer h2 { color: white; }
.footer h2 { font: 700 1rem/1.4 "Segoe UI", system-ui, sans-serif; letter-spacing: 0; margin-bottom: .55rem; }
.footer p, .footer address { font-size: .9rem; }
.footer .brand + p { margin-top: .65rem; }
.footer address { font-style: normal; display: grid; gap: .3rem; overflow-wrap: anywhere; }
.social-link { display: inline-flex; width: fit-content; align-items: center; gap: .45rem; }
.button .social-icon { margin-inline-end: .45rem; }
.social-icon { flex: 0 0 auto; }
.footer .copyright { margin-top: 2rem; padding-top: 1.15rem; border-top: 1px solid #ffffff29; }
@media (min-width: 46rem) {
  .bar { display: flex; justify-content: space-between; padding-block: .9rem; }
  .hero { background: linear-gradient(90deg, transparent 23%, #0d192d42 43%, #0d192d9e 100%), url("farol-costa.webp") 37% 51% / cover no-repeat, var(--navy); }
  .hero-content { padding-block: clamp(8rem, 14vw, 12rem) clamp(5rem, 8vw, 8rem); padding-inline-start: 36%; }
  .hero h1 { font-size: clamp(2.75rem, 6.1vw, 5.5rem); text-wrap: initial; }
  .desktop-break { display: initial; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split, .portfolio-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .portfolio-layout { align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr 1.2fr; }
}
@media (min-width: 61rem) {
  .bar > .button { display: inline-flex; }
  nav { gap: 1.6rem; }
}
