/*Fonts*/
@font-face{
  font-family: "TrajanPro3";
  src: url("assets/fonts/TrajanPro3-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root{
  --paper: #f7f3ee;
  --white: #ffffff;
  --ink: #101012;
  --muted: rgba(16,16,18,.68);

  --brown: #3d2b23; 
  --brown-2:#231814;
  --line: rgba(16,16,18,.14);

  --radius: 20px;
  --max: 1120px;
  --pad: clamp(18px, 3vw, 34px);

  --display: "TrajanPro3", ui-serif, Georgia, "Times New Roman", serif;
  --body: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --ease: cubic-bezier(.22,1,.36,1);
}

/* Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
html{
  background: transparent;
}

body{
  margin:0;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  overflow-x:hidden;

  /* key: lets us place the texture *behind* content safely */
  position: relative;
  isolation: isolate;

  /* Background image (stretched to cover the whole page) */
  background-color: var(--paper);
  background-image: url("assets/fonts/images/mainbackground.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  /* Desktop: keep it fixed for that gallery vibe */
  background-attachment: fixed;

}

/* Phones/tablets: disable `background-attachment: fixed` (it can be janky on touch devices) */
@media (max-width: 1024px), (hover: none) and (pointer: coarse){
  body{ background-attachment: scroll; }
}

/* Hard-disable any hero blot pseudo-elements (the big grey gradient) */
.hero::before,
.hero::after{
  content: none !important;
  display: none !important;
}

body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: rgba(0,0,0,.03);
  mix-blend-mode: multiply;
}

/* Keep content above the overlay */
header, main, footer{
  position: relative;
  z-index: 1;
}

.wrap{
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

.page{
  opacity: 1;
  transform: none;
}

.has-js .page{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.has-js .page.is-ready{ opacity:1; transform:none; }

.reveal{
  opacity: 1;
  transform: none;
}
.has-js .reveal{
  opacity:0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.has-js .reveal.is-in{ opacity:1; transform:none; }

/*Header*/
header{
  position: sticky;
  top: 0;
  z-index: 20;
  /* More see-through navbar (keeps text fully opaque) */
  /* Dial this down if you want *more* background showing through */
  background-color: rgba(247,243,238,.45);
  background: color-mix(in srgb, var(--paper) 50%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items: center;
  gap: 12px;
  text-decoration:none;
  color: inherit;
}
/* Bigger logo (site-wide) */
.brand__logo{
  width: 46px;  /* tweak these 3 numbers */
  height: auto;
  display: block;
  flex: 0 0 auto;                   /* prevents flex from squishing it */
}

.brand__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brown);
  box-shadow: 0 0 0 6px rgba(61,43,35,.08);
}
/* Make the name + titles behave like one "block" whose width = the name */
.brand__text{
  display: inline-block;   /* key: width matches the name line */
  min-width: 0;
  text-align: center;
}

/* Ensure the name defines the width */
/* Make name parts tighter + shrink middle names without phantom spacing */
.brand__name{
  display: block;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .01em;
  font-size: 20px;
  line-height: 1.05;
  text-transform: uppercase;
  text-align: center;
}

.brand__name-first,
.brand__name-mid,
.brand__name-last{
  display: inline-block;
}

/* Middle names smaller (real size change, so spacing closes naturally) */
.brand__name-mid{
  font-size: .82em;        /* matches your old scale(.82) */
  transform: none;
  margin: 0;
}

/* Subtitle line: force it to stay on one line and align to both edges */
/* Subtitle line: centered under the name */
.brand__titles{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  white-space: nowrap;
  transform: translateX(-0.1px);

  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);

  padding-inline: 1.5px;
}

/* Undo the old justify tricks (safe even if you leave the old rules in place) */
.brand__titles::after{ content: none; display: none; }
.brand__titles > span:last-child{ transform: none; }


/* Your dot separators — keep them, but tighten spacing so it doesn't overextend */
.brand__titles > span + span::before{
  content: "•";
  margin: 0 .85em;
  opacity: .9;
}


.navlinks{
  display:flex;
  gap: 10px;
  align-items:center;
}
.navlinks a{
  position: relative;
  text-decoration:none;
  color: var(--ink);
  padding: 10px 10px;
  font-size: clamp(12px, 2vw, 16px);
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .85;
  transition: opacity .25s var(--ease);
}
.navlinks a:hover{ opacity: 1; }
.navlinks a::after{
  content:"";
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: var(--brown);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
  border-radius: 99px;
  filter: blur(.2px);
}
.navlinks a:hover::after,
.navlinks a[aria-current="page"]::after{
  transform: scaleX(1);
}

/* Mobile menu */
.menu-btn{
  display:none;
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 12px;
  border-radius: 999px;
  cursor:pointer;
}
.menu-btn span{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}
@media (max-width: 860px){
  .menu-btn{ display:block; }
  /* Keep full brand (name + titles) visible on phones, like Artwork/About */
.navbar{ flex-wrap: wrap; row-gap: 6px; }
.brand{ align-items: flex-start; }
.brand__logo{ width: clamp(22px, 8vw, 34px); }
.brand__text{ text-align: center; }
.brand__titles{
  display: block;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.navlinks{
    position: fixed;
    inset: 64px var(--pad) auto var(--pad);
    background-color: rgba(247,243,238,.72);
    background: color-mix(in srgb, var(--paper) 72%, transparent);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    display:grid;
    gap: 6px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .navlinks.is-open{
    opacity:1;
    transform:none;
    pointer-events:auto;
    -webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);

  }
}

/*Typography*/
.kicker{
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
}
h1{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  line-height: .98;
  letter-spacing: .01em;
  margin: 14px 0 10px;
}
.lede{
  max-width: 62ch;
  font-size: clamp(16px, 1.25vw, 18px);
  color: rgba(16,16,18,.80);
  margin: 0;
}

/* Watercolor highlight behind text */
.wash{
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.wash::before{
  content:"";
  position:absolute;
  left: -10px;
  right: -10px;
  top: 55%;
  height: 0.78em;
  transform: translateY(-50%) rotate(-2deg);
  background:
    radial-gradient(60% 120% at 20% 50%, rgba(61,43,35,.42), transparent 70%),
    radial-gradient(70% 140% at 70% 55%, rgba(61,43,35,.36), transparent 72%),
    radial-gradient(60% 120% at 45% 40%, rgba(16,16,18,.12), transparent 75%);
  filter: blur(.4px);
  border-radius: 999px;
  z-index: -1;
  opacity: .75;
  animation: washDrift 10s var(--ease) infinite alternate;
}
@keyframes washDrift{
  from{ transform: translateY(-50%) rotate(-2deg) scaleX(1); }
  to{ transform: translateY(-50%) rotate(1deg) scaleX(1.03); }
}

/* Sections */
.section{
  padding: clamp(34px, 6vw, 90px) 0;
}
.hr{
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Buttons */
.btnrow{ display:flex; gap: 12px; flex-wrap:wrap; margin-top: 20px; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
  text-decoration:none;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.btn:hover{ transform: translateY(-2px); background: rgba(255,255,255,.68); }
.btn.primary{
  background: var(--ink);
  color: var(--paper);
  border-color: rgba(16,16,18,.22);
}
.btn.primary:hover{ background: var(--brown-2); }

/* Cards (much cleaner) */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2vw, 18px);
}
.card{
  grid-column: span 4;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.42);
}
.card h2, .card h3{
  font-family: var(--display);
  font-weight: 400;
  margin: 0 0 8px;
}
.card p{ margin:0; color: rgba(16,16,18,.78); }

.col-12{ grid-column: span 12; }
.col-8{ grid-column: span 8; }
.col-6{ grid-column: span 6; }
.col-4{ grid-column: span 4; }
@media (max-width: 860px){
  .col-8,.col-6,.col-4,.card{ grid-column: span 12; }
}

/* Artwork gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 22px);
  margin-top: 22px;
}
.tile{
  grid-column: span 6;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.42);
  cursor:pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.tile:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,.12);
}
.tile img{
  width:100%;
  height: clamp(240px, 30vw, 420px);
  object-fit: cover;
  display:block;
}
.tile .cap{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 16px;
  border-top: 1px solid rgba(16,16,18,.10);
}
.tile .cap strong{
  font-family: var(--display);
  font-weight: 400;
}
.tile .cap span{
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px){
  .tile{ grid-column: span 12; }
}

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display:grid;
  place-items:center;
  padding: var(--pad);
  background: rgba(16,16,18,.68);
  opacity: 0;
  pointer-events:none;
  transition: opacity .25s var(--ease);
  z-index: 40;
}
.modal.is-open{ opacity:1; pointer-events:auto; }
.modal__panel{
  width: min(980px, 100%);
  border-radius: 22px;
  overflow:hidden;
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.modal__img{
  width:100%;
  height: min(62vh, 560px);
  object-fit: cover;
  display:block;
}
.modal__bar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px 16px;
  border-top: 1px solid var(--line);
}
.modal__bar strong{
  font-family: var(--display);
  font-weight: 400;
}
.modal__bar button{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 10px 12px;
  cursor:pointer;
}

/* Forms */
form{ display:grid; gap: 12px; }
label{
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
input, textarea{
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 12px 12px;
  font-family: var(--body);
  background: rgba(255,255,255,.55);
  outline: none;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
input:focus, textarea:focus{
  border-color: rgba(61,43,35,.55);
  box-shadow: 0 0 0 4px rgba(61,43,35,.12);
}
textarea{ min-height: 160px; resize: vertical; }

/* Footer */
footer{
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: rgba(16,16,18,.66);
  font-size: 13px;
}
.footerrow{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
}
.footerrow a{
  color: inherit;
  text-decoration:none;
  border-bottom: 1px solid rgba(16,16,18,.25);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .page, .reveal, .btn, .tile, .wash::before{ transition:none; animation:none; }
}

/* --- NAVBAR: lock to index layout across all pages --- */
header{
  /* keep the navbar wrap width consistent with index */
  --max: 1120px;
}

/* override any page-level .brand/.brand__logo rules */
header .brand{
  display: flex;
  align-items: center;
  gap: 12px;              /* match styles.css default */
}

header .brand__logo{
  width: 46px;            /* match styles.css default */
  height: auto;
  flex: 0 0 auto;
}

/* (optional) ensure the text block behaves the same everywhere */
header .brand__text{
  display: inline-block;
  min-width: 0;
}
