/* ==========================================================
   3DB Group of Companies — brand styles
   ========================================================== */
:root {
  --r: 18px;
  --night: #0A1628;
  --night-2: #0D1B2E;
  --royal: #1E3A5F;
  --sky: #7FB3E0;
  --ivory: #F5F3EE;
  --ivory-dim: rgba(245, 243, 238, .68);
  --gold: #C9A96E;
  --line: rgba(127, 179, 224, .18);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-weight: 300; line-height: 1.75;
  color: var(--ivory);
  background: radial-gradient(ellipse at 50% 0%, var(--night-2), var(--night) 70%) fixed, var(--night);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--royal); color: var(--ivory); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: .005em; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.55rem; margin-bottom: .5rem; }
.label, .tagline {
  font-family: var(--sans); font-weight: 300; text-transform: uppercase;
  letter-spacing: .3em; font-size: .72rem; color: var(--sky);
}
.label { margin-bottom: 1rem; }
.prose { color: var(--ivory-dim); font-size: 1.08rem; }
.hairline { border: 0; height: 1px; width: 72px; margin: 1.6rem auto 2rem; background: var(--gold); opacity: .7; }
.hairline.left { margin-left: 0; }

/* ---------- Grain & glows ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glow-a { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: rgba(30, 58, 95, .55); top: -10%; left: 50%; transform: translateX(-50%); }
.glow-b { width: 30vw; height: 30vw; background: rgba(127, 179, 224, .08); bottom: 0; right: 5%; }

/* ---------- Crest ---------- */
.crest-shape { fill: var(--royal); }
.crest-line { fill: none; stroke: rgba(127, 179, 224, .45); stroke-width: .8; }
.crest-rule { stroke: var(--sky); stroke-width: .8; }
.crest-name { font-family: var(--serif); font-size: 30px; fill: var(--ivory); letter-spacing: .04em; }
.crest-est { font-family: var(--sans); font-size: 5.5px; letter-spacing: .3em; fill: var(--sky); }

/* line-draw reveal: outline traces, then fill & text fade in */
.draw .crest-line, .draw .crest-shape { stroke-dasharray: 420; stroke-dashoffset: 420; }
.draw .crest-shape { stroke: var(--sky); stroke-width: .6; fill-opacity: 0; }
.draw .crest-name, .draw .crest-est, .draw .crest-rule { opacity: 0; }
.drawn .crest-shape { animation: trace 2.2s var(--ease) forwards, fillIn 1.4s 1.6s var(--ease) forwards; }
.drawn .crest-line { animation: trace 2.4s .3s var(--ease) forwards; }
.drawn .crest-name, .drawn .crest-est, .drawn .crest-rule { animation: fadeIn 1.2s 2s var(--ease) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill-opacity: 1; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--night); transition: opacity 1s var(--ease), visibility 1s;
}
.preloader-crest { width: 84px; height: 98px; }
.preloader.done { opacity: 0; visibility: hidden; }

/* ---------- Cursor ---------- */
.cursor-ring, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 150; border-radius: 50%; display: none; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(127, 179, 224, .6);
  box-shadow: 0 0 18px rgba(127, 179, 224, .35); will-change: transform; transition: background .3s, border-color .3s;
}
.cursor-ring.hover { background: rgba(127, 179, 224, .08); border-color: rgba(201, 169, 110, .7); }
.cursor-dot { will-change: transform; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--sky); }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
  .has-cursor .cursor-ring, .has-cursor .cursor-dot { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-block; overflow: hidden; isolation: isolate;
  padding: 1rem 2.2rem; border-radius: 999px; border: 1px solid var(--sky); background: transparent; color: var(--ivory);
  font: 300 .72rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; cursor: pointer;
  transition: color .6s var(--ease), border-color .6s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sky);
  transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--night); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn-solid { background: var(--royal); border-color: var(--royal); }
.btn-solid:hover { border-color: var(--sky); }
.btn-sm { padding: .8rem 1.4rem; font-size: .66rem; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; border-radius: 999px; }

.link { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sky); transition: letter-spacing .6s var(--ease); }
.link:hover { letter-spacing: .38em; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .8s var(--ease), backdrop-filter .8s, border-color .8s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(10, 22, 40, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .6s var(--ease); }
.nav.scrolled .nav-inner { height: 70px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-crest { width: 34px; height: 40px; }
.brand-text { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1; }
.brand-text small { display: block; margin-top: 5px; font: 300 .56rem var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--sky); }
.links { display: flex; align-items: center; gap: 2.2rem; }
.links a:not(.btn) { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-dim); transition: color .4s; }
.links a:not(.btn):hover { color: var(--sky); }
.menu-btn { display: none; width: 34px; height: 24px; background: none; border: 0; position: relative; }
.menu-btn span { position: absolute; left: 0; right: 0; height: 1px; background: var(--ivory); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn span:first-child { top: 8px; } .menu-btn span:last-child { top: 16px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 12px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 12px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 120px 16px 80px; }
.hero-inner { position: relative; will-change: transform; }
.hero-crest { width: clamp(96px, 14vw, 140px); height: clamp(112px, 16.3vw, 163px); margin: 0 auto 2.4rem; filter: drop-shadow(0 20px 50px rgba(30, 58, 95, .7)); }
.hero-title { font-size: clamp(2.8rem, 8vw, 6.2rem); font-weight: 400; margin-bottom: 1.4rem; }
.hero .tagline { font-size: clamp(.68rem, 1.4vw, .85rem); }
.hero-cta { margin-top: 3rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-title, .hero .tagline, .hero-cta { opacity: 0; transform: translateY(24px); transition: opacity 1.6s var(--ease), transform 1.6s var(--ease); }
.hero.in .hero-title { opacity: 1; transform: none; transition-delay: 2.2s; }
.hero.in .tagline { opacity: 1; transform: none; transition-delay: 2.6s; }
.hero.in .hero-cta { opacity: 1; transform: none; transition-delay: 3s; }
.scroll-cue { position: absolute; bottom: 32px; left: 50%; width: 1px; height: 56px; background: var(--line); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--sky); animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 13vw, 160px) 0; }
.section + .section { border-top: 1px solid rgba(201, 169, 110, .1); }
.head { margin-bottom: clamp(48px, 7vw, 80px); }

/* About */
.about { overflow: hidden; }
.watermark { position: absolute; width: 520px; height: 607px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .045; pointer-events: none; }
.watermark .crest-shape { fill: var(--sky); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 4rem; text-align: left; }
.pillars div { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.pillars p { color: var(--ivory-dim); }

/* Ventures */
.ventures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.venture { position: relative; border-radius: var(--r); padding: 3rem 2.4rem; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(30, 58, 95, .35), transparent 70%); transition: border-color .8s var(--ease); }
.venture:hover { border-color: rgba(201, 169, 110, .55); }
.venture .numeral { position: absolute; top: 1.6rem; right: 2rem; font-family: var(--serif); font-size: 2.6rem; color: rgba(127, 179, 224, .2); }
.venture p:not(.label) { color: var(--ivory-dim); margin-bottom: 1.6rem; }
.venture.featured h3 { font-size: 2.3rem; }
.venture.soon { background: none; border-style: dashed; }
.venture.soon h3 { color: var(--ivory-dim); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.service { position: relative; padding: 3rem 2.4rem; border: 1px solid var(--line); border-radius: var(--r); transition: background .8s var(--ease); }
.service::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--gold); border-radius: var(--r); opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; }
.service:hover { background: rgba(30, 58, 95, .22); }
.service:hover::after { opacity: .7; }
.service svg { width: 44px; height: 44px; margin-bottom: 1.8rem; fill: none; stroke: var(--sky); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--ivory-dim); }

/* Portfolio */
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 1.2rem; }
.project { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); }
.project.tall { grid-row: span 2; }
.project.wide { grid-column: span 2; }
.project-art {
  position: absolute; inset: 0; display: grid; place-items: center; transition: transform 1.6s var(--ease);
  background: radial-gradient(circle at 30% 30%, hsla(var(--hue), 45%, 32%, .9), hsla(var(--hue), 55%, 10%, 1) 75%);
}
.project-art span { font-family: var(--serif); font-style: italic; font-size: 3rem; color: rgba(245, 243, 238, .14); }
.overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem;
  background: linear-gradient(to top, rgba(10, 22, 40, .95), rgba(10, 22, 40, .1) 60%);
}
.overlay h3 { font-size: 1.9rem; }
.overlay .link { opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.project:hover .project-art { transform: scale(1.06); }
.project:hover .overlay .link, .project:focus-visible .overlay .link { opacity: 1; transform: none; }

/* Process */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }
.timeline li { text-align: center; position: relative; }
.roman {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 1.8rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--night); font-family: var(--serif); font-size: 1.6rem; color: var(--sky);
}
.timeline p { color: var(--ivory-dim); max-width: 240px; margin-inline: auto; }

/* Testimonials */
.quotes { position: relative; min-height: 220px; margin-top: 1rem; }
.quote { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
.quote.active { opacity: 1; }
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.4; }
.quote figcaption { margin-top: 1.6rem; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sky); }
.dots { display: flex; justify-content: center; gap: 12px; margin-top: 2rem; }
.dots button { width: 28px; height: 18px; background: none; border: 0; position: relative; cursor: pointer; }
.dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); transition: background .6s; }
.dots button[aria-selected="true"]::after { background: var(--gold); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(48px, 7vw, 100px); align-items: start; }
.contact-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; }
.contact-actions .btn { text-transform: none; letter-spacing: .12em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.6rem; }
.full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.4rem 0 .6rem; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ivory); font: 300 1rem var(--sans); border-radius: 0; appearance: none; resize: vertical; transition: border-color .6s;
}
.field select option { background: var(--night); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field label {
  position: absolute; left: 0; top: 1.3rem; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--ivory-dim); pointer-events: none; transition: all .5s var(--ease);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label, .field select.filled + label { top: 0; font-size: .6rem; color: var(--sky); }
.form-note { min-height: 1.5em; color: var(--sky); font-size: .9rem; }

/* Footer */
.footer { padding: 90px 0 40px; border-top: 1px solid rgba(201, 169, 110, .18); background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .25)); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 3rem; align-items: center; }
.footer-crest { width: 56px; height: 65px; margin-bottom: 1rem; }
.tagline.small { font-size: .62rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.footer-links a { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-dim); transition: color .4s; }
.footer-links a:hover { color: var(--sky); }
.socials { display: flex; gap: .8rem; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; transition: border-color .5s; }
.socials a:hover { border-color: var(--gold); }
.socials svg { width: 17px; height: 17px; fill: none; stroke: var(--ivory); stroke-width: 1.2; stroke-linecap: round; }
.footer-base { text-align: center; margin-top: 3rem; font-size: .78rem; color: var(--ivory-dim); letter-spacing: .08em; }
.footer-base .hairline { margin: 0 auto 1.6rem; width: 100%; opacity: .2; }

/* ---------- Scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .menu-btn { display: block; z-index: 2; }
  .links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2.2rem;
    background: rgba(10, 22, 40, .97); backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
  }
  .links.open { opacity: 1; visibility: visible; }
  .links a:not(.btn) { font-size: .9rem; }
  .ventures { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .portfolio { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .project.wide { grid-column: span 2; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 3.5rem; }
  .timeline::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-crest { margin-inline: auto; }
  .footer-links { justify-content: center; }
}
@media (max-width: 620px) {
  .pillars, .services, .form { grid-template-columns: 1fr; }
  .portfolio { grid-template-columns: 1fr; }
  .project.tall { grid-row: span 1; }
  .project.wide { grid-column: span 1; }
  .timeline { grid-template-columns: 1fr; }
  .quotes { min-height: 300px; }
  .hero-cta .btn { width: 100%; }
  .watermark { width: 320px; height: 373px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

/* Leadership */
.founder { margin-top: 1rem; }
.portrait {
  width: 190px; height: 190px; margin: 0 auto 1.8rem; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; border: 1px solid var(--gold);
  background: radial-gradient(circle at 35% 30%, var(--royal), var(--night) 80%);
  box-shadow: 0 0 0 8px rgba(30, 58, 95, .25), 0 20px 50px rgba(0, 0, 0, .35);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait span { font-family: var(--serif); font-size: 3.2rem; color: var(--ivory); letter-spacing: .04em; }
.founder h3 { font-size: 2.2rem; }
.founder .prose { max-width: 560px; margin: 1rem auto 0; }

/* Two-project portfolio */
.portfolio.two { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 420px; }
.project-art img { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: .85; }
@media (max-width: 620px) { .portfolio.two { grid-template-columns: 1fr; grid-auto-rows: 300px; } }

/* ==========================================================
   Royal refinements — slower, softer, gilded
   ========================================================== */
:root { --ease-royal: cubic-bezier(.19, 1, .22, 1); }

/* Gilded hero headline */
.hero-title {
  background: linear-gradient(180deg, var(--ivory) 30%, #E6D3AA 75%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
}

/* Thin double gold frame around the hero, like an engraved certificate */
.royal-frame {
  position: absolute; inset: 96px clamp(14px, 2.5vw, 32px) clamp(14px, 2.5vw, 32px); pointer-events: none;
  border: 1px solid rgba(201, 169, 110, .28); border-radius: calc(var(--r) + 6px);
}
.royal-frame::after {
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201, 169, 110, .12); border-radius: var(--r);
}

/* Ornamental divider: hairline · diamond · hairline */
.hairline {
  position: relative; width: 140px; height: 1px; opacity: 1; overflow: visible;
  background: linear-gradient(90deg, transparent, var(--gold) 35%, transparent 45%, transparent 55%, var(--gold) 65%, transparent);
}
.hairline::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  border: 1px solid var(--gold); transform: translate(-50%, -50%) rotate(45deg);
}
.hairline.left { margin-left: 0; }
.hairline.left::after { left: 70px; }
.footer-base .hairline::after { display: none; }

/* Section labels flanked by small gold rules */
.head .label, .center > .label { display: inline-flex; align-items: center; gap: 14px; }
.head .label::before, .head .label::after, .center > .label::before, .center > .label::after {
  content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .6;
}

/* Softer, slower motion everywhere */
.reveal { filter: blur(6px); transition: opacity 1.8s var(--ease-royal), transform 1.8s var(--ease-royal), filter 1.8s var(--ease-royal); }
.reveal.visible { filter: none; }
.btn, .btn::before { transition-duration: .9s; transition-timing-function: var(--ease-royal); }
.btn:hover { box-shadow: 0 10px 30px rgba(127, 179, 224, .18); }

/* Cards rise gently with a gilded glow */
.venture, .service, .project {
  transition: transform 1s var(--ease-royal), border-color 1s var(--ease-royal), box-shadow 1s var(--ease-royal), background 1s var(--ease-royal);
}
.venture:hover, .service:hover, .project:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 169, 110, .5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(201, 169, 110, .15), 0 0 40px rgba(201, 169, 110, .08);
}
.project-art { transition-duration: 2s; transition-timing-function: var(--ease-royal); }

/* Roman numerals and portrait get a champagne ring */
.roman { border-color: rgba(201, 169, 110, .45); color: #E6D3AA; }
.portrait { box-shadow: 0 0 0 8px rgba(30, 58, 95, .25), 0 0 0 9px rgba(201, 169, 110, .25), 0 25px 60px rgba(0, 0, 0, .45); }

/* Gold scroll cue */
.scroll-cue span { background: linear-gradient(var(--sky), var(--gold)); }

@media (max-width: 620px) { .royal-frame { display: none; } }

/* Ambient background crest */
.bg-crest {
  position: fixed; left: 50%; top: 50%; z-index: -1; pointer-events: none;
  width: min(70vw, 620px); height: min(81.7vw, 723px);
  opacity: .06; transform: translate(-50%, -50%);
  animation: crestFloat 18s ease-in-out infinite;
}
.bg-crest .crest-shape { fill: none; stroke: var(--gold); stroke-width: .5; stroke-dasharray: 420; animation: crestTrace 14s ease-in-out infinite; }
.bg-crest .crest-line { stroke: var(--sky); stroke-dasharray: 420; animation: crestTrace 14s 1.5s ease-in-out infinite; }
.bg-crest .crest-name { fill: var(--ivory); opacity: .5; }
@keyframes crestFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(-2deg) scale(1); }
  50%      { transform: translate(-50%, -53%) rotate(2deg) scale(1.04); }
}
@keyframes crestTrace {
  0%   { stroke-dashoffset: 420; }
  45%, 60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -420; }
}

/* Speed pass (kept from later tuning): quicker motion */
.drawn .crest-shape { animation: trace 1.1s var(--ease) forwards, fillIn .7s .8s var(--ease) forwards; }
.drawn .crest-line { animation: trace 1.2s .15s var(--ease) forwards; }
.drawn .crest-name, .drawn .crest-est, .drawn .crest-rule { animation: fadeIn .6s 1s var(--ease) forwards; }
.hero.in .hero-title { transition-delay: .9s; }
.hero.in .tagline { transition-delay: 1.05s; }
.hero.in .hero-cta { transition-delay: 1.2s; }
.hero-title, .hero .tagline, .hero-cta { transition-duration: .9s; }
.reveal { filter: none; transform: translateY(24px); transition: opacity .9s var(--ease-royal), transform .9s var(--ease-royal); }
.btn, .btn::before { transition-duration: .45s; }
.venture, .service, .project { transition-duration: .45s; }
.project-art { transition-duration: .9s; }
.preloader { transition-duration: .5s; }
