/* Madison Tattoo Company — Crisp Industrial Minimal
   Pages:
   - Home: brick → white gallery panel → mahogany
   - Portfolio: aura vignette + bright center for art
   - Contact/About: clean paper + subtle vignette
*/

:root{
  /* text tokens */
  --text-strong: rgba(15,15,15,0.92);
  --text-body: rgba(15,15,15,0.74);
  --text-muted: rgba(15,15,15,0.56);
  --text-strong-on-dark: rgba(245,245,243,0.96);
  --text-body-on-dark: rgba(245,245,243,0.84);
  --text-muted-on-dark: rgba(245,245,243,0.68);

  --soft-black:#0F0F0F;
  --charcoal:#1E1E1E;
  --warm-concrete:#B8B4AE;
  --bone-white:#F5F5F3;
  --oxide:#6F3B2C;
  --steel:#4A5560;

  --maxw:1120px;
  --radius:14px;

  --border:1px solid rgba(184,180,174,.20);
  --shadow:0 16px 40px rgba(0,0,0,.22);
  --shadow-soft:0 10px 26px rgba(0,0,0,.14);

  --ease:cubic-bezier(.2,.8,.2,1);
  --dur:160ms;

  --mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height:1.55;
  background:var(--soft-black);
  color:var(--bone-white);
}

img{max-width:100%;display:block;height:auto}
a{color:inherit;text-decoration:none}
p{margin:0 0 1rem;color:rgba(245,245,243,.88)}
h1,h2,h3{margin:0 0 .75rem;line-height:1.12}
h1{font-size:clamp(2rem,4vw,3.25rem);letter-spacing:-.02em}
h2{font-size:clamp(1.35rem,2.2vw,2rem);letter-spacing:-.01em}

.small-label{
  font-family:var(--mono);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.72rem;
  color:rgba(184,180,174,.95);
}

.container{width:min(var(--maxw),calc(100% - 2rem));margin-inline:auto}

/* Skip */
.skip-link{
  position:absolute;left:-999px;top:0;
  padding:.75rem 1rem;background:var(--bone-white);color:var(--soft-black);
  border-radius:10px;z-index:9999;
}
.skip-link:focus{left:1rem;top:1rem;outline:3px solid rgba(111,59,44,.65);outline-offset:2px}

/* Header (same across pages) */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(15,15,15,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(184,180,174,.14);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:.95rem 0;
}
.wordmark{display:flex;flex-direction:column;gap:.25rem}
.wordmark a{
  font-weight:650;letter-spacing:.08em;text-transform:uppercase;font-size:.92rem;
}
.wordmark .sub{
  font-family:var(--mono);
  text-transform:uppercase;letter-spacing:.18em;font-size:.68rem;
  color:rgba(184,180,174,.92);
}
.nav{display:flex;align-items:center;gap:.25rem}
.nav a{
  display:inline-flex;align-items:center;
  padding:.55rem .75rem;border-radius:999px;
  color:rgba(245,245,243,.86);
  border:1px solid transparent;
  transition:background var(--dur) var(--ease),border-color var(--dur) var(--ease),transform var(--dur) var(--ease);
}
.nav a:hover{background:rgba(30,30,30,.7);border-color:rgba(184,180,174,.16);transform:translateY(-1px)}
.nav a[aria-current="page"]{background:rgba(30,30,30,.85);border-color:rgba(184,180,174,.24);color:rgba(245,245,243,.96)}
@media (max-width:720px){
  .header-inner{flex-direction:column;align-items:flex-start}
  .nav{width:100%;flex-wrap:wrap}
}

/* Buttons */
.button{
  display:inline-flex;justify-content:center;align-items:center;
  padding:.85rem 1.05rem;border-radius:999px;
  border:1px solid rgba(184,180,174,.22);
  background:rgba(245,245,243,.04);
  color:rgba(245,245,243,.92);
  font-weight:600;
  transition:transform var(--dur) var(--ease),background var(--dur) var(--ease),border-color var(--dur) var(--ease);
}
.button:hover{transform:translateY(-1px);background:rgba(245,245,243,.06);border-color:rgba(184,180,174,.32)}
.button--primary{background:rgba(111,59,44,.20);border-color:rgba(111,59,44,.55)}
.button--primary:hover{background:rgba(111,59,44,.26);border-color:rgba(111,59,44,.72)}

/* Sections */
main{padding:0 0 3rem}
.section{padding:3rem 0}

/* HOME */
.page-home{background:var(--soft-black)}
.home-hero{
  overflow:hidden;
  position:relative;
  padding:4.5rem 0 3.25rem;
}
.home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("../images/hero/tattoo-chair.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: contrast(1.06) saturate(0.92);
  opacity: 1;
}
.home-hero::after{
  content:"";
  position:absolute;
  inset:0;
  /* Keeps text readable without crushing the photo */
  background:
    radial-gradient(900px 600px at 50% 45%, rgba(15,15,15,0.20), rgba(15,15,15,0.58));
}
.home-hero>.container{position:relative;z-index:1}
.hero-stack{max-width:760px;margin:0 auto;text-align:center}
.hero-title{
  font-size:clamp(2.4rem,5vw,3.6rem);
  letter-spacing:-.01em;
  text-transform:uppercase;
}
.hero-artist{
  margin-top:.75rem;
  font-family:var(--mono);
  letter-spacing:.2em;
  text-transform:uppercase;
  font-size:.78rem;
  color:rgba(245,245,243,.92);
}
.hero-line{margin-top:1rem;color:rgba(245,245,243,.90)}
.hero-actions{margin-top:1.35rem;display:flex;justify-content:center;gap:.85rem;flex-wrap:wrap}

/* White gallery panel */
.panel{
  background:var(--bone-white);
  color:var(--soft-black);
  position:relative;
}
.panel::before{
  content:"";position:absolute;inset:0;
  background:url("../images/ambient/texture-grain.svg") 0 0/700px 700px repeat;
  opacity:.14;pointer-events:none;
}
.panel>.container{position:relative}
.panel h2,.panel p{color:rgba(15,15,15,.86)}
.panel p{max-width:72ch}

/* Gallery */
.gallery{display:grid;grid-template-columns:repeat(12,1fr);gap:1.25rem}
.gallery-item{
  grid-column:span 6;
  border-radius:calc(var(--radius) - 2px);
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(15,15,15,.12);
  box-shadow:0 12px 24px rgba(0,0,0,.10);
  transition:transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position:relative;
  z-index:1;
}
.gallery-item:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(0,0,0,.14)}
.gallery-item a,.gallery-item button{display:block;width:100%;height:100%;background:transparent;border:none;padding:0;cursor:pointer}
.gallery-item img{width:100%;height:auto;object-fit:contain;background:rgba(30,30,30,0.85)}
@media (max-width:720px){.gallery-item{grid-column:span 12}}

/* Gallery item with Instagram link - hidden per user request */
.gallery-item{position:relative}
.gallery-item-ig-link{
  display:none;
}

/* Mahogany base */
.base{position:relative;background:var(--soft-black);padding:2.25rem 0}
.base::before{
  content:"";position:absolute;inset:0;
  background:url("../images/ambient/texture-mahogany.svg") center/cover no-repeat;
  opacity:.95;
}
.base::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom, rgba(15,15,15,.30), rgba(15,15,15,.62))}
.base>.container{position:relative;z-index:1}
.cta-strip{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1.2rem 1.1rem;border-radius:var(--radius);
  border:1px solid rgba(184,180,174,.18);
  background:rgba(15,15,15,.35);
}
.cta-strip p{margin:0;color:rgba(245,245,243,.92)}
@media (max-width:720px){.cta-strip{flex-direction:column;align-items:flex-start}}

/* PORTFOLIO */
.page-portfolio{
  color:var(--soft-black);
  background:var(--bone-white);
  min-height:100vh;
  position:relative;
}
.page-portfolio::before{
  content:"";position:fixed;inset:0;
  background:
    radial-gradient(900px 700px at 50% 45%, rgba(245,245,243,1) 0%, rgba(245,245,243,1) 50%, rgba(30,30,30,.24) 78%, rgba(15,15,15,.96) 100%),
    url("../images/ambient/texture-aura.svg");
  background-size:cover,cover;
  background-position:center,center;
  background-repeat:no-repeat,no-repeat;
  opacity:1;
  pointer-events:none;
  z-index:-1;
}
.page-portfolio main{padding-top:2.25rem}
.portfolio-wrap{width:min(1600px, calc(100% - 2rem));margin:0 auto;padding:0 0 1.5rem}
.portfolio-title{text-align:center;margin:2rem 0 1.75rem}
.portfolio-title h1{font-size:clamp(2.1rem,4vw,3rem);letter-spacing:-.02em;color:rgba(15,15,15,.88)}
.portfolio-title p{margin:.75rem auto 0;max-width:70ch;color:rgba(15,15,15,.70)}
.portfolio-grid .gallery-item{
  background:#fff;
  border:1px solid rgba(15,15,15,.12);
  box-shadow:0 14px 30px rgba(0,0,0,.14);
}
.portfolio-grid .gallery-item:hover{box-shadow:0 20px 44px rgba(0,0,0,.18)}
.portfolio-actions{display:flex;justify-content:center;gap:.9rem;flex-wrap:wrap;margin-top:1.25rem}

/* CONTACT/ABOUT */
.page-contact{
  color:var(--soft-black);
  background:var(--bone-white);
  min-height:100vh;
  position:relative;
}
.page-contact::before{
  content:"";position:fixed;inset:0;
  background:
    radial-gradient(900px 650px at 50% 40%, rgba(245,245,243,1) 0%, rgba(245,245,243,1) 62%, rgba(30,30,30,.18) 82%, rgba(15,15,15,.92) 100%),
    url("../images/ambient/texture-grain.svg");
  background-size:cover,900px 900px;
  background-position:center,0 0;
  background-repeat:no-repeat,repeat;
  opacity:1;
  pointer-events:none;
  z-index:-1;
}
.page-contact main{padding-top:2.25rem}

.card{
  background:rgba(245,245,243,.92);
  border:1px solid rgba(15,15,15,.10);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  padding:1.25rem;
}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:start}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr}}

.kv{display:grid;gap:.55rem;margin-top:.75rem}
.kv div{
  display:flex;flex-wrap:wrap;gap:.5rem .75rem;align-items:baseline;
  padding:.65rem .75rem;border-radius:12px;
  border:1px solid rgba(15,15,15,.10);
  background:rgba(245,245,243,.82);
}
.kv dt{
  font-family:var(--mono);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.72rem;
  color:rgba(15,15,15,.62);
}
.kv dd{margin:0;color:rgba(15,15,15,.88)}
.kv a{text-decoration:underline;text-underline-offset:3px}

form{display:grid;gap:.85rem}
.field label{display:block;font-size:.95rem;margin-bottom:.35rem;color:rgba(15,15,15,.88)}
.field input,.field textarea{
  width:100%;
  padding:.85rem .9rem;
  border-radius:12px;
  border:1px solid rgba(15,15,15,.16);
  background:rgba(255,255,255,.95);
  color:rgba(15,15,15,.92);
  outline:none;
  transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea{min-height:140px;resize:vertical}
.field input:focus,.field textarea:focus{
  border-color:rgba(111,59,44,.70);
  box-shadow:0 0 0 3px rgba(111,59,44,.18);
}
.hint{font-size:.92rem;color:rgba(15,15,15,.62)}
.inline-message{
  padding:.85rem .95rem;border-radius:12px;
  border:1px solid rgba(15,15,15,.12);
  background:rgba(74,85,96,.10);
  color:rgba(15,15,15,.88);
}
.inline-message[hidden]{display:none}

/* Footer */
@media (max-width:900px){}
/* Focus */
:focus-visible{outline:3px solid rgba(111,59,44,.55);outline-offset:2px;border-radius:10px}

/* Lightbox */
.lightbox{position:fixed;inset:0;display:grid;place-items:center;padding:1rem;background:rgba(15,15,15,.86);backdrop-filter:blur(8px);z-index:200}
.lightbox[hidden]{display:none}
.lightbox-dialog{width:min(980px,100%);max-height:92vh;border-radius:var(--radius);border:1px solid rgba(184,180,174,.22);background:rgba(30,30,30,.80);box-shadow:var(--shadow);overflow:hidden}
.lightbox-bar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem .85rem;border-bottom:1px solid rgba(184,180,174,.14)}
.lightbox-title{font-family:var(--mono);text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;color:rgba(184,180,174,.92)}
.lightbox-close{all:unset;cursor:pointer;padding:.5rem .75rem;border-radius:999px;border:1px solid rgba(184,180,174,.22);background:rgba(15,15,15,.35)}
.lightbox-close:hover{background:rgba(245,245,243,.06)}
.lightbox-body{padding:.85rem}
.lightbox-body img{width:100%;max-height:76vh;object-fit:contain;border-radius:calc(var(--radius) - 6px)}


/* --- Portfolio refinements: stronger vignette + cleaner center + integrated footer --- */
.page-portfolio{
  /* stronger edges, brighter center */
  background:
    radial-gradient(1100px 820px at 50% 42%,
      rgba(245,245,243,1) 0%,
      rgba(245,245,243,1) 46%,
      rgba(230,230,228,0.98) 58%,
      rgba(90,90,90,0.28) 76%,
      rgba(15,15,15,0.92) 100%);
}

.page-portfolio::before{
  opacity: 0.62; /* dial back literal strokes; keep aura */
}

.page-portfolio .portfolio-grid .gallery-item{
  border: 1px solid rgba(15,15,15,0.10);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
.page-portfolio .portfolio-grid .gallery-item:hover{
  box-shadow: 0 26px 56px rgba(0,0,0,0.22);
}

.page-portfolio .page-portfolio .site-footer .container{
  background: rgba(15,15,15,0.66);
  border: 1px solid rgba(184,180,174,0.14);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
}


/* Instagram profile embed */
.ig-embed-wrap{padding:1rem 0 0; text-align:center;}
.ig-fallback{margin:.85rem auto 0; max-width: 60ch; color: rgba(15,15,15,0.68);}
.ig-fallback a{color: rgba(15,15,15,0.85); text-decoration: underline; text-underline-offset: 3px;}


/* --- Portfolio: wider + taller Instagram embed (Option A) --- */
.page-portfolio .portfolio-wrap{
  width: min(1600px, calc(100% - 2rem));
}

@media (min-width: 1100px){
  .page-portfolio .portfolio-wrap{
    width: min(1760px, calc(100% - 3rem));
  }
}

/* Make IG embed occupy more vertical space and avoid "half page" look */
.ig-embed-frame{
  width: 100%;
  min-height: 1100px;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 1rem 0 0;
}

@media (max-width: 700px){
  .ig-embed-frame{ min-height: 850px; }
}

/* Let Instagram embed expand to container width */
.ig-embed-frame blockquote,
.ig-embed-frame .instagram-media{
  width: 100% !important;
  max-width: none !important;
}


/* --- Header brand mark --- */
.header-brand{
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-mark img{
  height: 44px;
  width: auto;
  opacity: 0.95;
}

@media (max-width: 720px){
  .header-brand{
    flex-direction: column;
  }
  .brand-mark img{
    height: 36px;
  }
}

/* --- Header: large left circular mark --- */
.header-left{
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.brand-mark-left img{
  height: 96px;
  width: 96px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 720px){
  .header-left{
    flex-direction: column;
  }
  .brand-mark-left img{
    height: 72px;
    width: 72px;
  }
}

/* --- Header left mark with hero overlap --- */
.site-header{
  position: sticky;
  z-index: 20;
}

.brand-mark-left{
  position: relative;
  z-index: 30;
  margin-right: 1.25rem;
}

.brand-mark-left img{
  height: 96px;
  width: 96px;
  border-radius: 50%;
  object-fit: cover;
  transform: translateY(28px); /* overlap hero */
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

/* Mobile adjustment */
@media (max-width: 720px){
  .brand-mark-left img{
    height: 72px;
    width: 72px;
    transform: translateY(18px);
  }
}


/* 3-column grid keeps center truly centered */
.header-inner{
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  grid-template-areas:
    "mark wordmark spacer"
    "nav nav nav";
  align-items: center;
  justify-items: center;
  text-align: center;
}

.brand-mark-left{ grid-area: mark; justify-self: start; z-index: 10; position: relative; }
.wordmark{ grid-area: wordmark; justify-self: center; }
.nav{ grid-area: nav; justify-self: center; }
.header-spacer{ grid-area: spacer; }

.brand-mark-left img{
  display:block;
  height: 96px;
  width: 96px;
  border-radius: 50%;
  background: transparent;
  position: relative;
  z-index: 20;
  transform: translateY(28px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.38);
}

/* Overlap hero on home */
.page-home .home-hero{ position: relative; z-index: 1; }
.page-home .site-header{ z-index: 999; }

/* Ensure Featured Work panel is above any header overlap */
.page-home .panel{ position: relative; z-index: 1000; }

@media (max-width: 720px){
  .header-inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "mark"
      "wordmark"
      "nav";
    justify-items: center;
    text-align: center;
  }
  .brand-mark-left{ justify-self: center; }
  .brand-mark-left img{
    height: 72px;
    width: 72px;
    transform: translateY(18px);
  }
}


/* Contact layout safety */
.contact-grid{
  grid-auto-rows: minmax(min-content, max-content);
}




/* Footer (home-style, identical on all pages) */
@media (max-width: 900px){
  }



/* Portfolio – Large Instagram embed */
.ig-embed-large{
  width: min(1100px, 100%);
  margin: 2.5rem auto 0;
}

.ig-embed-large blockquote.instagram-media{
  width: 100% !important;
  max-width: 100% !important;
  min-height: 900px;
}

@media (min-width: 1200px){
  .ig-embed-large{
    width: min(1300px, 100%);
  }
  .ig-embed-large blockquote.instagram-media{
    min-height: 1100px;
  }
}



/* Make Instagram embed appear larger visually */
@media (max-width: 700px){
  }



/* was roomier */
}
.portfolio-title{
  margin: 1.25rem 0 0.9rem;
}
.portfolio-title h1{
  margin-bottom: .5rem;
}
@media (max-width: 700px){
  .page-portfolio main{ padding-top: 1rem; }
  .portfolio-title{ margin: 1rem 0 .75rem; }
}







/* lighter, cleaner overlay (less fog) */
.page-contact::after{
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      900px 650px at 50% 40%,
      rgba(245,245,243,0.72) 0%,
      rgba(245,245,243,0.60) 50%,
      rgba(15,15,15,0.45) 100%
    );
  z-index: -1;
}

/* =========================================================
   Maintenance pass: clarity, contrast, and maintainability
   (single place for surface rules + link visibility)
   ========================================================= */

/* Default heading/body hierarchy on light surfaces */
.page-contact, .page-portfolio{
  color: var(--text-body);
}

.page-contact h1, .page-contact h2, .page-contact h3,
.page-portfolio h1, .page-portfolio h2, .page-portfolio h3{
  color: var(--text-strong);
}

.page-contact p, .page-portfolio p{
  color: var(--text-body);
}

.small-label{ color: var(--text-muted); }

/* Link visibility on light cards (prevents 'underline only' issue) */
.page-contact .card a,
.page-contact .kv a,
.page-contact .page-contact .card a:hover,
.page-contact .kv a:hover,
.page-contact /* Header: always readable */
.site-header{
  background: rgba(15,15,15,0.92);
}
.wordmark a{ color: var(--bone-white); }
.wordmark .sub{ color: rgba(245,245,243,0.82); }
.nav a{ color: rgba(245,245,243,0.88); }

/* Portfolio condensation (tight but breathable) */
.page-portfolio main{ padding-top: 1.25rem; }
.portfolio-title{ margin: 1.25rem 0 0.9rem; text-align: center; }
.portfolio-title p{ display:none; }

/* Instagram embed sizing strategy:
   Note: IG profile embed hard-limits layout; scale provides best 'bigger' feel. */
@media (max-width: 700px){
  }

/* Contact page background: crisp photo + light glass overlay */
.page-contact{
  position: relative;
  min-height: 100vh;
  background: none;
}
.page-contact::before{
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../images/backgrounds/contact-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: contrast(1.08) saturate(1.05);
  z-index: -2;
}
.page-contact::after{
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      900px 650px at 50% 40%,
      rgba(245,245,243,0.72) 0%,
      rgba(245,245,243,0.60) 50%,
      rgba(15,15,15,0.45) 100%
    );
  z-index: -1;
}

/* Footer: ensure consistent black bar across backgrounds */
/* --- Header mobile alignment polish --- */
.wordmark{
  text-align: center;
}
.wordmark .sub{
  display: grid;
  gap: .15rem;
}
.wordmark .sub > div{
  line-height: 1.2;
}

/* Ensure header grid centers cleanly on mobile */
@media (max-width: 720px){
  .header-inner{
    justify-items: center;
    align-items: center;
  }
  .brand-mark-left{
    justify-self: center !important;
    margin-right: 0;
  }
  .nav{
    width: 100%;
    justify-content: center;
  }
  .nav a{
    padding: .5rem .7rem;
  }
}

/* Footer (canonical — identical across pages) */
.site-footer{
  border-top: 1px solid rgba(184,180,174,0.14);
  padding: 2rem 0 2.5rem;
  background: var(--soft-black); /* fully opaque to look identical on all page backgrounds */
  color: rgba(245,245,243,0.92);
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr; }
}

.footer-title{
  font-weight: 650;
  margin-bottom: .5rem;
  letter-spacing: .02em;
  color: rgba(245,245,243,0.96);
}

.site-footer .small-label{
  color: rgba(245,245,243,0.72);
}

.footer-links{
  display:flex;
  flex-direction: column;
  gap: .45rem;
  color: rgba(245,245,243,0.88);
}

.footer-links a{
  text-decoration: underline;
  text-decoration-color: rgba(184,180,174,0.32);
  text-underline-offset: 3px;
}

.footer-links a:hover{
  text-decoration-color: rgba(245,245,243,0.60);
}

.footer-meta{
  margin-top: 1rem;
  color: rgba(184,180,174,0.9);
  font-size: .92rem;
}



/* Ensure selection highlight doesn't look like a black bar */
.page-contact .kv a::selection{
  background: rgba(15,15,15,0.12);
  color: var(--text-strong);
}



/* Contact Details: standard link hover (no black highlight) */
.page-contact .kv a,
.page-contact .kv a:visited{
  color: var(--text-strong);
  background: transparent;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(15,15,15,0.28);
}

.page-contact .kv a:hover,
.page-contact .kv a:focus{
  background: transparent;
  color: var(--text-strong);
  text-decoration-color: rgba(15,15,15,0.65);
}

/* Prevent browser default selection/active highlight */
.page-contact .kv a:active{
  background: transparent;
}



/* Contact Details alignment + social block */
.page-contact .kv div,
.page-contact .kv .kv-social{
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  column-gap: 1rem;
}

.page-contact .kv dt{
  margin: 0;
}

.page-contact .kv dd{
  margin: 0;
}

.page-contact .kv .kv-social dd{
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.1rem;
  align-items: center;
}

.page-contact .kv .kv-social a{
  text-decoration: underline;
  text-decoration-color: rgba(15,15,15,0.28);
  text-underline-offset: 3px;
}



/* Portfolio page: brick background (page-specific) */
.page-portfolio{
  background: none;
  position: relative;
  min-height: 100vh;
}

.page-portfolio::before{
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../images/backgrounds/portfolio-brick.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: contrast(1.05) saturate(0.95);
  z-index: -2;
}

.page-portfolio::after{
  content: "";
  position: fixed;
  inset: 0;
  /* light readable overlay (keeps content crisp on brick) */
  background:
    radial-gradient(900px 650px at 50% 40%,
      rgba(245,245,243,0.88) 0%,
      rgba(245,245,243,0.74) 55%,
      rgba(15,15,15,0.58) 100%);
  z-index: -1;
}



/* Portfolio Instagram embed card */
.portfolio-embed-card{
  background: rgba(245,245,243,0.92);
  border-radius: 22px;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
  margin: 1.5rem auto 0;
  width: fit-content;
  max-width: 100%;
}

/* Ensure embed stays centered within card */
.portfolio-embed-card .ig-embed-large{
  margin: 0 auto;
}




.page-home .wordmark{
  display: none;
}

.page-home .header-inner{
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "mark nav nav";
}

.page-home .nav{
  justify-self: center;
}

.page-home .brand-mark-left img{
  transform: translateY(16px);
}

@media (max-width: 720px){
  .page-home .header-inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "mark"
      "nav";
  }
  .page-home .brand-mark-left{
    margin-bottom: .5rem;
  }
}



/* === Home page header: icon + nav ONLY (no wordmark text) === */
.page-home header .wordmark,
.page-home .site-header .wordmark{
  display: none !important;
}

/* Re-center nav when wordmark is removed */
.page-home .header-inner{
  grid-template-columns: auto 1fr;
  grid-template-areas: "mark nav";
}

.page-home .nav{
  justify-self: center;
}

/* Mobile: stack icon and nav cleanly */
@media (max-width: 720px){
  .page-home .header-inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "mark"
      "nav";
  }
}



/* --- Contact link background hardening (prevents black highlight in hosted mode) --- */
.page-contact{
  color-scheme: light;
}

.page-contact .kv a,
.page-contact .kv a:visited,
.page-contact .kv a:hover,
.page-contact .kv a:active,
.page-contact .kv a:focus,
.page-contact .kv a:focus-visible{
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  color: rgba(15,15,15,0.92) !important;
  -webkit-text-fill-color: rgba(15,15,15,0.92);
  text-decoration-color: rgba(15,15,15,0.35);
}

.page-contact .kv a:hover,
.page-contact .kv a:focus-visible{
  text-decoration-color: rgba(15,15,15,0.65);
}

/* If any forced-color mode is active, keep links readable */
@media (forced-colors: active){
  .page-contact .kv a{ forced-color-adjust: none; color: LinkText !important; }
}




@media (max-width: 720px){
  .page-portfolio .portfolio-panel{
    margin: 1.25rem auto 2.25rem;
    padding: 1.25rem 1.1rem 1.35rem;
    border-radius: 18px;
  }
}



}







}



/* Portfolio: simple centered white wrapper (final) */
.page-portfolio .portfolio-wrap{
  display:flex;
  justify-content:center;
  padding: 1.5rem 0 2.25rem;
}

.page-portfolio .portfolio-small-panel{
  display:inline-block;
  background: rgba(245,245,243,0.94);
  border: 1px solid rgba(15,15,15,0.12);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.20);
  padding: 1.1rem 1.1rem 1.25rem;
  text-align:center;
  max-width: calc(100% - 2rem);
}

.page-portfolio .portfolio-h1{
  margin: 0 0 .75rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--text-strong, rgba(15,15,15,0.92));
}

.page-portfolio .ig-embed-large{
  margin: 0 auto .75rem;
}

/* Keep IG card size reasonable; don't try to scale it */
.page-portfolio .instagram-media{
  max-width: 540px !important;
  width: 100% !important;
  border-radius: 14px;
  overflow:hidden;
}

.page-portfolio .portfolio-links{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: .85rem;
  margin-top: .25rem;
}

.page-portfolio .portfolio-ig-link{
  color: rgba(15,15,15,0.88);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(15,15,15,0.30);
}

.page-portfolio .portfolio-ig-link:hover{
  text-decoration-color: rgba(15,15,15,0.60);
}

@media (max-width: 720px){
  .page-portfolio .portfolio-wrap{ padding: 1.1rem 0 1.8rem; }
  .page-portfolio .portfolio-small-panel{ border-radius: 14px; padding: .95rem .9rem 1.05rem; }
}






/* Portfolio wrapper centering (no main display:flex) */
.page-portfolio .portfolio-wrap{
  width: 100%;
  display: flex;
  justify-content: center;
}

.page-portfolio .portfolio-small-panel{
  margin: 0 auto;
}



/* =========================================================
   Contact page mobile readability pass
   Goal: no clipped panes, no accidental inner scrolling
   ========================================================= */

.page-contact main{ display: block; }

@media (max-width: 900px){
  .contact-grid{
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .contact-grid > .card{
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 520px){
  .card{ padding: 1rem; }
  .kv div{ padding: .55rem .65rem; }
  .field input, .field textarea{ padding: .75rem .8rem; }
}

.page-contact .kv dd,
.page-contact .kv a{
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-contact .card,
.page-contact .kv,
.page-contact form{
  overflow: visible;
}



/* =========================================================
   Sticky header (global)
   Keeps navigation accessible while scrolling
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
}
