:root {
  color-scheme: light;
  --ink: #182235;
  --ink-soft: #526071;
  --navy: #101a2d;
  --navy-deep: #09111f;
  --gold: #d9b45a;
  --gold-light: #f0d994;
  --paper: #f6f3eb;
  --white: #fffefa;
  --line: #e2ddcf;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #e6bd59; outline-offset: 4px; border-radius: 4px; }
.skip-link { position: fixed; z-index: 20; left: 1rem; top: 1rem; transform: translateY(-180%); padding: .7rem 1rem; background: var(--white); color: var(--ink); border-radius: 6px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 5; background: var(--navy-deep); color: var(--white); border-bottom: 1px solid rgba(240, 217, 148, .2); }
.header-inner, .footer-inner { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.header-inner { min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; min-width: max-content; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-family: var(--serif); font-size: 1.08rem; letter-spacing: .02em; }
.brand-copy span { color: #c6cbd4; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; margin-top: .25rem; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.85rem, 2vw, 1.8rem); }
.main-nav a { color: #f5f2e9; text-decoration: none; font-size: .88rem; transition: color .18s ease; }
.main-nav a:hover { color: var(--gold-light); }
.main-nav .nav-contact { padding: .55rem .9rem; border: 1px solid rgba(240, 217, 148, .55); border-radius: 999px; }

.hero { position: relative; min-height: min(720px, calc(100svh - 84px)); display: flex; align-items: center; overflow: hidden; background: var(--navy) url("assets/castle.jpg") center 48% / cover no-repeat; color: var(--white); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 13, 25, .96) 0%, rgba(9, 17, 31, .88) 42%, rgba(9, 17, 31, .43) 100%), linear-gradient(0deg, rgba(9, 17, 31, .56), transparent 42%); }
.hero-inner { position: relative; width: min(calc(100% - 48px), var(--content)); min-height: 630px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(250px, .75fr); align-items: center; gap: 3rem; padding-block: 5rem; }
.hero-copy { max-width: 640px; }
.eyebrow, .section-kicker, .card-label { margin: 0; color: #bb9138; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { color: var(--gold-light); }
.eyebrow span { margin-right: .45rem; }
.hero h1 { margin: .8rem 0 1rem; font: 500 clamp(3.2rem, 7vw, 6rem)/.94 var(--serif); letter-spacing: -.045em; }
.hero-lede { max-width: 590px; margin: 0; color: #e6e8ec; font: 400 clamp(1.15rem, 2vw, 1.4rem)/1.55 var(--serif); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 48px; padding: .72rem 1.12rem; border: 1px solid transparent; border-radius: 3px; text-decoration: none; font-size: .88rem; font-weight: 750; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: #171a20; }
.button-gold:hover { background: var(--gold-light); }
.button-outline { border-color: rgba(255,255,255,.62); color: #fff; background: rgba(10, 17, 29, .2); }
.button-outline:hover { border-color: var(--gold-light); }
.hero-note { margin: 1.25rem 0 0; color: #cbd0d7; font-size: .83rem; }
.hero-mark { position: relative; display: grid; justify-items: center; align-content: center; min-height: 370px; margin: 0; }
.hero-mark img { position: relative; z-index: 1; width: min(100%, 330px); height: auto; filter: drop-shadow(0 22px 30px rgba(0,0,0,.45)); }
.hero-mark-ring { position: absolute; width: min(90%, 345px); aspect-ratio: 1; border: 1px solid rgba(240,217,148,.42); border-radius: 50%; box-shadow: 0 0 0 16px rgba(240,217,148,.035), 0 0 70px rgba(217,180,90,.12); }
.hero-mark-caption { position: relative; z-index: 1; margin-top: .25rem; color: var(--gold-light); font-family: var(--serif); font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; }
.scroll-cue { position: absolute; bottom: 1rem; left: 50%; display: grid; place-items: center; width: 40px; height: 40px; color: var(--gold-light); text-decoration: none; font-size: 2rem; transform: translateX(-50%); }

.section-wrap { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.intro { padding-block: 6.2rem 5.5rem; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 4rem; margin-top: 1rem; }
.intro h2, .section-heading h2, .featured h2, .closing h2 { margin: 0; font: 500 clamp(2.2rem, 4vw, 3.6rem)/1.08 var(--serif); letter-spacing: -.035em; }
.intro h2 em { color: #9a7228; font-weight: 400; }
.intro-grid > p { max-width: 590px; margin: .35rem 0 0; color: var(--ink-soft); font-size: 1.03rem; }

.projects { padding-block: 5rem 6.5rem; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2 { margin-top: .5rem; font-size: clamp(2rem, 3.6vw, 3rem); }
.section-heading > p { max-width: 330px; margin: 0 0 .25rem; color: var(--ink-soft); font-size: .93rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project-card { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 1.6rem; overflow: hidden; border: 1px solid var(--line); background: var(--white); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.project-card:hover { transform: translateY(-4px); border-color: #cbb779; box-shadow: 0 18px 40px rgba(28, 35, 47, .08); }
.card-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.15rem; border: 1px solid #e1d3a9; border-radius: 50%; color: #9a7228; font: 1.55rem var(--serif); }
.card-label { color: #9a7228; font-size: .67rem; }
.project-card h3 { margin: .35rem 0 .5rem; font: 500 1.55rem/1.15 var(--serif); }
.project-card > p:not(.card-label) { margin: 0 0 1.2rem; color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; align-self: flex-start; margin-top: auto; color: #765619; font-size: .84rem; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card-links { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: auto; }
.card-links .text-link { margin-top: 0; }
.text-link:hover { color: #3e2d0c; }
.project-card-featured { background: #f0eadb; border-color: #e0d4b7; }
.project-card-featured .card-symbol { color: #fff; background: var(--navy); border-color: var(--navy); }
.project-card-image { min-height: 300px; padding: 0; color: white; background: var(--navy); }
.project-card-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(8,14,25,.96), rgba(8,14,25,.08) 90%); }
.project-card-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card-image:hover > img { transform: scale(1.04); }
.image-card-copy { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; min-height: 300px; justify-content: end; padding: 1.6rem; }
.image-card-copy .card-label { color: var(--gold-light); }
.image-card-copy h3 { margin: .35rem 0 .4rem; font: 500 1.55rem/1.15 var(--serif); }
.image-card-copy p:not(.card-label) { margin: 0 0 1rem; color: #e1e4e9; font-size: .9rem; }
.text-link-light { color: var(--gold-light); }
.text-link-light:hover { color: #fff; }

.featured { display: grid; grid-template-columns: 104px minmax(0, 1fr) minmax(220px, .75fr); align-items: center; gap: 2.2rem; margin-block: 0 6.5rem; padding: 3rem; background: #ebe4d3; border: 1px solid #ddd2b8; }
.featured-seal { display: grid; place-items: center; width: 92px; aspect-ratio: 1; border: 1px solid #b5954d; border-radius: 50%; color: #8a6927; font: 3rem var(--serif); }
.featured-copy { max-width: 530px; }
.featured h2 { margin-top: .55rem; font-size: clamp(2rem, 3.5vw, 3rem); }
.featured-copy > p { margin: 1rem 0 1.4rem; color: #525b67; }
.button-dark { color: white; background: var(--navy); }
.button-dark:hover { background: #1b2b48; }
.featured-art { min-height: 250px; align-self: stretch; background: linear-gradient(90deg, rgba(235,228,211,.1), rgba(235,228,211,0)), url("assets/castle.jpg") center / cover; }

.closing { padding-bottom: 6rem; }
.closing-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.7rem 3rem; background: var(--navy); color: white; }
.closing .section-kicker { color: var(--gold-light); }
.closing h2 { margin-top: .5rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.closing p { margin: .5rem 0 0; color: #c5cbd5; }
.closing .button { flex-shrink: 0; }

.site-footer { background: var(--navy-deep); color: #d1d5dd; }
.footer-inner { min-height: 92px; flex-wrap: wrap; padding-block: 1rem; font-size: .83rem; }
.footer-brand { color: white; font: 1.1rem var(--serif); text-decoration: none; }
.footer-inner p { margin: 0 auto 0 0; color: #aeb6c2; }
.footer-inner > a:not(.footer-brand) { color: var(--gold-light); text-underline-offset: 3px; }
.footer-mark { color: var(--gold); font-size: 1.2rem; }

@media (max-width: 860px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: .8rem; padding-block: 1rem; }
  .main-nav { justify-content: flex-start; flex-wrap: wrap; gap: .45rem 1.1rem; }
  .hero-inner { grid-template-columns: 1fr minmax(200px, .55fr); gap: 1rem; min-height: 570px; }
  .hero-mark img { width: min(100%, 250px); }
  .hero-mark { min-height: 280px; }
  .hero-mark-ring { width: min(90%, 270px); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { grid-template-columns: 76px minmax(0,1fr); padding: 2.2rem; }
  .featured-seal { width: 68px; font-size: 2.3rem; }
  .featured-art { grid-column: 1 / -1; min-height: 180px; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 24px; }
  .header-inner, .footer-inner, .hero-inner, .section-wrap { width: min(calc(100% - 32px), var(--content)); }
  .header-inner { gap: .9rem; }
  .brand img { width: 40px; height: 40px; }
  .main-nav { gap: .55rem 1rem; }
  .main-nav a { font-size: .78rem; }
  .main-nav .nav-contact { padding: .3rem .7rem; }
  .hero { min-height: auto; background-position: 57% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,13,25,.94), rgba(9,17,31,.72)), linear-gradient(0deg, rgba(9,17,31,.54), transparent); }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 2rem; padding-block: 4rem 3.8rem; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 4.8rem); }
  .hero-lede { max-width: 32rem; font-size: 1.15rem; }
  .hero-mark { min-height: 0; justify-self: center; width: min(75vw, 250px); }
  .hero-mark img { width: 100%; }
  .hero-mark-ring { width: 100%; }
  .scroll-cue { display: none; }
  .intro { padding-block: 4rem 3.5rem; }
  .intro-grid { grid-template-columns: 1fr; gap: 1rem; }
  .intro h2 { font-size: 2.4rem; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: .7rem; }
  .projects { padding-block: 3.8rem 4.4rem; }
  .card-grid { grid-template-columns: 1fr; }
  .project-card, .project-card-image, .image-card-copy { min-height: 260px; }
  .featured { grid-template-columns: 1fr; gap: 1.1rem; margin-bottom: 4rem; padding: 1.5rem; }
  .featured-art { grid-column: auto; min-height: 160px; }
  .closing { padding-bottom: 4rem; }
  .closing-panel { align-items: flex-start; flex-direction: column; padding: 1.7rem; }
  .footer-inner { justify-content: flex-start; gap: .5rem 1rem; }
  .footer-inner p { width: calc(100% - 110px); margin: 0; }
  .footer-mark { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
