:root{
  --bg:#fbfaf7;
  --surface:#fff;
  --ink:#0d2235;
  --muted:#66717b;
  --line:#e8e0d2;
  --gold:#b18648;
  --gold-soft:#d3b57f;
  --navy:#081b2d;
  --serif:"Cormorant Garamond",Georgia,serif;
  --sans:"Inter",Arial,sans-serif;
}

/* =========================
   GLOBAL
   ========================= */

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  overflow-x:hidden;
}

html{
  scroll-behavior:smooth;
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  display:block;
  max-width:100%;
}

button,
input,
textarea{
  font:inherit;
}

.container{
  width:min(1420px,calc(100% - 64px));
  margin:0 auto;
}

/* =========================
   HEADER / NAVIGATION
   ========================= */

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(251,250,247,.95);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(13,34,53,.08);
}

.header-inner{
  min-height:90px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.brand-lockup{
  display:flex;
  align-items:center;
  width:340px;
  max-width:40vw;
  min-width:0;
  flex:0 1 auto;
}

.brand-logo-img{
  display:block;
  width:340px;
  max-width:100%;
  margin-top: -15px;
  height:72px;
  object-fit:contain;
  object-position:left center;
}

.nav{
  display:flex;
  align-items:center;
  gap:36px;
}

.nav a{
  position:relative;
  padding:8px 0;
  font:600 11px/1 var(--sans);
  letter-spacing:.28em;
  text-transform:uppercase;
}

.nav a.active::after,
.nav a:hover::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-12px;
  height:2px;
  background:var(--gold);
}

.nav-toggle{
  display:none;
  width:42px;
  height:42px;
  padding:0;
  border:0;
  background:none;
  cursor:pointer;
}

.nav-toggle span{
  display:block;
  width:22px;
  height:2px;
  margin:5px auto;
  border-radius:2px;
  background:var(--ink);
}

body.menu-open{
  overflow:hidden;
}

/* =========================
   HOME HERO
   ========================= */

.hero{
  position:relative;
  overflow:hidden;
  background:#fff;
  border-bottom:1px solid var(--line);
}

/*
  Desktop hero stays exactly as the desktop composition.
  For mobile, use a separate mobile image through <picture>.
*/
.hero-scene{
  position:absolute;
  inset:0 0 0 41%;
  overflow:hidden;
  background:linear-gradient(90deg,#f8f7f3 0%,#dbe0e4 10%,#08203a 42%,#07192d 100%);
  pointer-events:none;
}

.hero-picture{
  display:block;
  width:100%;
  height:100%;
}

.hero-earth-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}

/* Soft blend between the white copy area and the desktop image */
.hero-scene::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(
    90deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,.98) 10%,
    rgba(255,255,255,.80) 18%,
    rgba(255,255,255,.25) 32%,
    rgba(255,255,255,0) 45%
  );
}

.hero-content{
  position:relative;
  z-index:4;
  min-height:470px;
  display:flex;
  align-items:center;
}

.hero-copy{
  width:min(46%,650px);
  padding:54px 0;
}

.eyebrow{
  font:600 14px/1 var(--sans);
  letter-spacing:.42em;
  text-transform:uppercase;
  color:var(--gold);
}

.hero-copy h1,
.page-hero h1,
.section-head h2,
.prose h2,
.contact-card h2{
  margin:0;
  color:var(--ink);
  font-family:var(--serif);
  font-weight:500;
  letter-spacing:.03em;
}

.hero-copy h1{
  max-width:700px;
  margin-top:18px;
  font-size:clamp(56px,4.95vw,88px);
  line-height:.92;
}

.gold-rule,
.short-rule,
.mini-rule{
  display:block;
  background:var(--gold);
}

.gold-rule{
  width:72px;
  height:2px;
  margin:22px 0 24px;
}

.short-rule{
  width:72px;
  height:2px;
  margin:18px auto 0;
}

.mini-rule{
  width:32px;
  height:1px;
  margin:0 auto 16px;
  opacity:.9;
}

.hero-copy p{
  max-width:585px;
  margin:0;
  color:#55606b;
  font:400 18px/1.55 var(--serif);
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  margin-top:28px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:54px;
  padding:15px 28px;
  border:1px solid var(--gold);
  font:700 12px/1 var(--sans);
  letter-spacing:.24em;
  text-transform:uppercase;
  transition:.25s ease;
}

.btn span{
  font-size:15px;
  line-height:1;
}

.btn-primary{
  background:var(--navy);
  color:#fff;
  box-shadow:0 8px 22px rgba(8,27,45,.16);
}

.btn-primary:hover{
  background:#0d2944;
}

.btn:not(.btn-primary){
  background:transparent;
  color:var(--ink);
}

.btn:hover{
  transform:translateY(-1px);
}

/* =========================
   SECTIONS / PORTFOLIO
   ========================= */

.section{
  padding:72px 0;
}

.section-head{
  margin-bottom:42px;
  text-align:center;
}

.section-head h2{
  max-width:1200px;
  margin:18px auto 0;
  font-size:clamp(40px,4vw,74px);
  line-height:.96;
}

.brand-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:18px;
}

.brand-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  min-height:290px;
  padding:22px 18px 24px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
  text-align:center;
  box-shadow:0 4px 14px rgba(9,26,42,.025);
  transition:.22s ease;
}

.brand-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 28px rgba(9,26,42,.08);
}

.brand-icon-real{
  width:96px;
  height:96px;
  margin:2px auto 10px;
  object-fit:contain;
  object-position:center;
  flex:0 0 auto;
}

/* Asterhelm icon slightly larger */
.brand-card:nth-child(6) .brand-icon-real{
  width:118px;
  height:118px;
  margin-top:-6px;
  margin-bottom:-2px;
}

.brand-card h3{
  margin:0 0 10px;
  font-family:var(--serif);
  font-weight:500;
  font-size:24px;
  line-height:1.02;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.brand-card p{
  min-height:96px;
  margin:0;
  color:#68727c;
  font:400 16px/1.5 var(--serif);
}

.learn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:auto;
  padding-top:16px;
  color:var(--gold);
  font:700 11px/1 var(--sans);
  letter-spacing:.24em;
  text-transform:uppercase;
}

.learn span{
  font-size:16px;
}

/* =========================
   BRANDS PAGE
   ========================= */

.content-section{
  padding:66px 0;
}

.brand-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}

.brand-list .brand-card{
  min-height:340px;
  padding:26px 20px 28px;
}

.brand-list-icon{
  display:block;
  width:104px;
  height:104px;
  margin:0 auto 14px;
  object-fit:contain;
  object-position:center;
  flex:0 0 auto;
}

.brand-list .brand-card h3{
  font-size:28px;
}

.brand-list .brand-card p{
  min-height:78px;
}

.brand-list .asterhelm-brand-icon{
  width:124px;
  height:124px;
  margin-top:-10px;
  margin-bottom:4px;
}

/* =========================
   PRINCIPLES
   ========================= */

.principles{
  padding-top:24px;
}

.principle-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  align-items:start;
  background:linear-gradient(
    180deg,
    rgba(255,255,255,0),
    rgba(255,255,255,.46)
  );
}

.principle{
  padding:16px 28px 6px;
  border-right:1px solid rgba(177,134,72,.35);
  text-align:center;
}

.principle:last-child{
  border-right:0;
}

.symbol{
  margin-bottom:12px;
  color:var(--gold);
  font-family:var(--serif);
  font-size:52px;
  line-height:1;
}

.principle h3{
  margin:0 0 10px;
  font-family:var(--serif);
  font-size:18px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.principle p{
  margin:0;
  color:#5b6671;
  font:400 17px/1.45 var(--serif);
}

/* =========================
   INNER PAGE HERO
   ========================= */

.page-hero{
  padding:74px 0 56px;
  border-bottom:1px solid var(--line);
  background:#fff;
}

.page-hero h1{
  margin-top:16px;
  font-size:clamp(52px,5.2vw,84px);
  line-height:.94;
}

.page-hero p{
  max-width:840px;
  margin:18px 0 0;
  color:#5d6872;
  font:400 22px/1.5 var(--serif);
}

/* =========================
   ABOUT / VISION / CONTACT
   ========================= */

.two-col,
.contact-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  gap:52px;
}

.prose{
  max-width:100%;
}

.prose h2{
  margin-bottom:16px;
  font-size:clamp(38px,3.4vw,58px);
  line-height:1;
}

.prose p{
  margin:0 0 18px;
  color:#56616b;
  font:400 20px/1.68 var(--serif);
}

.value-list{
  display:grid;
  gap:18px;
}

.value-item{
  padding:24px 24px 20px;
  border:1px solid var(--line);
  background:#fff;
}

.value-item h3{
  margin:0 0 10px;
  font-family:var(--serif);
  font-size:28px;
  font-weight:500;
}

.value-item p{
  margin:0;
  color:#5d6771;
  font:400 18px/1.55 var(--serif);
}

.contact-card{
  padding:32px 30px;
  border:1px solid var(--line);
  background:#fff;
}

.contact-card h2{
  margin-bottom:12px;
  font-size:48px;
}

.contact-card p,
.contact-details span,
.contact-details a,
.notice{
  color:#596570;
  font:400 18px/1.6 var(--serif);
}

.contact-details{
  display:grid;
  gap:18px;
  margin-top:22px;
}

.contact-details strong{
  display:block;
  margin-bottom:5px;
  color:var(--gold);
  font:700 11px/1 var(--sans);
  letter-spacing:.24em;
  text-transform:uppercase;
}

.form{
  display:grid;
  gap:16px;
}

.form label{
  display:grid;
  gap:8px;
  color:#364350;
  font:600 12px/1 var(--sans);
  letter-spacing:.16em;
  text-transform:uppercase;
}

.form input,
.form textarea{
  width:100%;
  padding:15px 16px;
  border:1px solid #ded6c8;
  background:#fff;
  color:var(--ink);
}

.form textarea{
  min-height:140px;
  resize:vertical;
}

.notice{
  margin-top:16px;
}

/* =========================
   FOOTER
   ========================= */

.site-footer{
  overflow:hidden;
  padding:30px 0 20px;
  background:linear-gradient(
    120deg,
    #061625 0%,
    #09223a 44%,
    #0c2a45 100%
  );
  color:#edf2f7;
}

.footer-top{
  display:grid;
  grid-template-columns:1.1fr 1fr 1fr;
  align-items:center;
  gap:32px;
}

.footer-brand{
  width:340px;
  max-width:100%;
}

.footer-brand-logo{
  display:block;
  width:340px;
  max-width:100%;
  height:72px;
  object-fit:contain;
  object-position:left center;
}

.footer-tag{
  padding-left:28px;
  border-left:1px solid rgba(210,177,118,.38);
}

.footer-tag strong{
  display:block;
  color:#fff;
  font:700 12px/1.2 var(--sans);
  letter-spacing:.26em;
  text-transform:uppercase;
}

.footer-tag small{
  display:block;
  margin-top:10px;
  color:#dbe4eb;
  font:600 10px/1.5 var(--sans);
  letter-spacing:.25em;
  text-transform:uppercase;
}

.footer-nav{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:20px;
}

.footer-nav a{
  font:500 12px/1 var(--serif);
}

.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid rgba(210,177,118,.34);
  color:#cfdae4;
  font-size:12px;
}

.legal{
  max-width:920px;
  line-height:1.55;
}

.motto{
  color:#f4ead7;
  font:600 10px/1.2 var(--sans);
  letter-spacing:.32em;
  text-transform:uppercase;
  white-space:nowrap;
}

/* =========================
   PWA INSTALL BUTTON
   MOBILE / TABLET ONLY
   ========================= */

.install-app{
  display:none !important;
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:120;
  padding:12px 16px;
  border:1px solid var(--gold);
  background:var(--navy);
  color:#fff;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
  font:700 11px/1 var(--sans);
  letter-spacing:.18em;
  text-transform:uppercase;
  cursor:pointer;
}

/* Desktop: never show the install button */
@media(min-width:821px){
  .install-app,
  .install-app.show{
    display:none !important;
  }
}

/* Mobile/tablet: site.js adds .show only when installation is available */
@media(max-width:820px){
  .install-app.show{
    display:block !important;
  }
}

/* =========================
   LARGE TABLETS
   ========================= */

@media(max-width:1280px){

  .brand-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .hero-copy{
    width:min(52%,650px);
  }
}

/* =========================
   TABLETS
   ========================= */

@media(max-width:1024px){

  .container{
    width:min(100% - 40px,1420px);
  }

  .brand-lockup,
  .footer-brand{
    width:300px;
  }

  .brand-logo-img,
  .footer-brand-logo{
    width:300px;
    height:64px;
  }

  .nav{
    gap:24px;
  }

  .hero-content{
    min-height:430px;
  }

  .hero-copy h1{
    font-size:clamp(48px,5.3vw,72px);
  }

  .brand-list{
    grid-template-columns:1fr 1fr;
  }

  .footer-top{
    grid-template-columns:1fr 1fr;
  }

  .footer-nav{
    grid-column:1/-1;
    justify-content:flex-start;
  }
}

/* =========================
   MOBILE / SMALL TABLETS
   ========================= */

@media(max-width:820px){

  .container{
    width:min(100% - 32px,1420px);
  }

  .header-inner{
    min-height:76px;
  }

  .brand-lockup,
  .footer-brand{
    width:245px;
    max-width:calc(100vw - 90px);
  }

  .brand-logo-img,
  .footer-brand-logo{
    width:245px;
    height:54px;
  }

  .nav-toggle{
    display:block;
  }

  .nav{
    position:fixed;
    top:77px;
    left:0;
    right:0;
    display:none;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    max-height:calc(100vh - 77px);
    overflow-y:auto;
    padding:18px 24px 24px;
    border-top:1px solid var(--line);
    background:#fff;
    box-shadow:0 14px 24px rgba(0,0,0,.08);
  }

  .nav.open{
    display:flex;
  }

  .nav a{
    width:100%;
    padding:14px 0;
  }

  .nav a.active::after,
  .nav a:hover::after{
    left:0;
    right:auto;
    bottom:6px;
    width:44px;
  }

  /*
    IMPORTANT:
    On mobile, the copy stays above the image and the image gets its
    own full-width block. The mobile-specific image supplied through
    <picture> keeps both baked-in text blocks readable.
  */
  .hero{
    display:flex;
    flex-direction:column;
  }

  .hero-content{
    order:1;
    display:block;
    min-height:0;
    width:100%;
    padding:0;
  }

  .hero-copy{
    width:100%;
    padding:44px 0 28px;
  }

  .hero-copy h1{
    font-size:clamp(40px,11vw,58px);
  }

  /*.hero-scene{*/
  /*  order:2;*/
  /*  position:relative;*/
  /*  inset:auto;*/
  /*  width:100%;*/
  /*  height:auto;*/
  /*  aspect-ratio:4 / 3;*/
  /*  overflow:hidden;*/
  /*  background:#07192d;*/
  /*}*/

  /*.hero-picture{*/
  /*  display:block;*/
  /*  width:100%;*/
  /*  height:100%;*/
  /*}*/

  /*.hero-earth-img{*/
  /*  width:100%;*/
  /*  height:100%;*/
  /*  object-fit:cover;*/
  /*  object-position:center center;*/
  /*}*/

  /*
    Disable the desktop white fade on mobile because it would cover
    the text baked into the mobile hero artwork.
  */
  
.section{
    padding:58px 0;
  }

  
  .hero-scene {
        position: relative;
        order:2;
        inset: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        background: #f5f3ee;
    }

    .hero-picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    .hero-earth-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .hero-scene::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;

        background: linear-gradient(
            90deg,
            #f5f3ee 0%,
            rgba(245, 243, 238, 0.88) 12%,
            rgba(245, 243, 238, 0.80) 24%,
            rgba(245, 243, 238, 0.62) 38%,
            rgba(245, 243, 238, 0.38) 50%,
            rgba(245, 243, 238, 0.10) 62%,
            rgba(245, 243, 238, 0) 74%
        );
    }
    
  

  .brand-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .brand-list{
    grid-template-columns:1fr;
  }

  .two-col,
  .contact-grid{
    grid-template-columns:1fr;
    gap:34px;
  }

  .principle-grid{
    grid-template-columns:1fr 1fr;
    gap:22px;
    background:none;
  }

  .principle{
    padding:12px 0;
    border-right:0;
  }

  .page-hero{
    padding:58px 0 42px;
  }

  .page-hero p{
    font-size:19px;
  }

  .footer-top{
    grid-template-columns:1fr;
    gap:24px;
  }

  .footer-tag{
    padding-top:18px;
    padding-left:0;
    border-top:1px solid rgba(210,177,118,.32);
    border-left:0;
  }

  .footer-nav{
    justify-content:flex-start;
  }

  .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
  }

  .motto{
    white-space:normal;
  }
}

/* =========================
   PHONES
   ========================= */

@media(max-width:560px){

  .container{
    width:calc(100% - 26px);
  }

  .brand-lockup,
  .footer-brand{
    width:210px;
    max-width:calc(100vw - 76px);
  }

  .brand-logo-img,
  .footer-brand-logo{
    width:210px;
    height:48px;
  }

  .nav{
    top:77px;
    padding:14px 18px 20px;
  }

  .hero-copy{
    padding:34px 0 22px;
  }

  .hero-copy h1{
    font-size:39px;
    line-height:.98;
  }

  .hero-copy p{
    font-size:17px;
  }

  .hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
  }

  .btn{
    width:100%;
  }

  /*
    Near-square mobile hero gives the artwork enough height for
    Earth + the two right-side text blocks to stay readable.
  */
  .hero-scene{
    aspect-ratio:1 / 1;
  }

  .hero-earth-img{
    object-position:center center;
  }

  .section-head h2{
    font-size:31px;
    line-height:1.04;
  }

  .brand-grid{
    grid-template-columns:1fr;
  }

  .brand-card{
    min-height:0;
  }

  .brand-card h3{
    font-size:21px;
  }

  .brand-card p{
    min-height:0;
  }

  .brand-icon-real{
    width:96px;
    height:96px;
  }

  .brand-card:nth-child(6) .brand-icon-real{
    width:126px;
    height:126px;
  }

  .brand-list-icon{
    width:96px;
    height:96px;
  }

  .brand-list .asterhelm-brand-icon{
    width:118px;
    height:118px;
  }

  .principle-grid{
    grid-template-columns:1fr;
  }

  .page-hero h1{
    font-size:40px;
  }

  .page-hero p{
    font-size:17px;
  }

  .prose h2{
    font-size:31px;
  }

  .prose p,
  .value-item p,
  .contact-card p,
  .contact-details span,
  .contact-details a,
  .notice{
    font-size:17px;
  }

  .contact-card h2{
    font-size:36px;
  }

  .footer-nav{
    gap:10px 16px;
  }

  .install-app{
    right:10px;
    bottom:10px;
    max-width:calc(100vw - 20px);
  }
}

/* =========================
   ACCESSIBILITY
   ========================= */

@media(prefers-reduced-motion:reduce){

  html{
    scroll-behavior:auto;
  }

  *,
  *::before,
  *::after{
    transition:none !important;
    animation:none !important;
  }
}

/* =========================================================
   HOME PORTFOLIO — ALIGN BRAND TITLES + GOLD LINES
   ========================================================= */

@media (min-width: 561px) {

    /* Give every brand title exactly the same vertical space */
    .portfolio .brand-card h3 {
        height: 52px;
        min-height: 52px;
        flex: 0 0 52px;

        display: flex;
        align-items: center;
        justify-content: center;

        line-height: 1.02;
    }

    /* Every gold line now starts at exactly the same height */
    .portfolio .brand-card .mini-rule {
        width: 32px;
        height: 1px;
        flex: 0 0 1px;

        margin: 0 auto 16px;
    }
}


/* On phones we don't need forced horizontal alignment */
@media (max-width: 560px) {

    .portfolio .brand-card h3 {
        height: auto;
        min-height: 0;
        flex: 0 0 auto;

        margin: 0 0 10px;
    }

    .portfolio .brand-card .mini-rule {
        margin: 0 auto 16px;
    }
}
