:root{
  /* page background (similar to #1b1111 but a touch softer) */
  --bg: #3a2727;
  /* "black" tuned to the new background */
  --dark: #1b1212;
  /* default page text (on dark background) */
  --ink: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  /* light surfaces (cards / notices): dark ink scale */
  --text-dark: #120b0b;
  --text-dark-muted: rgba(18,11,11,.74);
  --text-dark-soft: rgba(18,11,11,.58);
  /* warm paper surfaces (muted, not bright cream) */
  --card: #e8d8c4;
  --surface: rgba(232,216,196,.92);
  --surface-strong: #e0ceba;
  --surface-soft: rgba(232,216,196,.78);
  --teal: #00c2a8;
  --stroke: #120b0b;
  /* hard shadows (neo-brutalist), tuned separately for depth vs cards */
  --shadow: 10px 10px 0 rgba(0,0,0,.22);
  --shadow-card: 10px 10px 0 rgba(0,0,0,.14);
  --shadow-strong: 12px 12px 0 rgba(0,0,0,.16);
  --radius: 12px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* ensure readable text inside light surfaces */
.card,
.notice,
.contact__card{
  color: var(--dark);
}
.card .prose,
.notice .prose,
.contact__card .prose{
  color: var(--text-dark-muted);
}

.container{
  width:min(1100px, calc(100% - 40px));
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background: var(--dark);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 4px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: rgba(255,255,255,.92);
}
.brand__name{
  font-weight:800;
  letter-spacing:-.01em;
  font-size:16px;
  padding:6px 10px;
  border-radius:999px;
}

.nav{display:flex;gap:18px;align-items:center}
.nav__link{
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-weight:600;
  opacity:.9;
  padding:8px 10px;
  border-radius:999px;
}
.nav__link:hover{opacity:1;background:rgba(255,255,255,.10)}

.hero{
  position:relative;
  padding:34px 0 10px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:28px;
  align-items:center;
  min-height: 430px;
}
.hero__title{
  margin:0 0 10px;
  font-size: clamp(38px, 5vw, 58px);
  line-height:1.05;
  font-weight:800;
  letter-spacing:-.02em;
}
.hero__subtitle{
  margin:0 0 18px;
  color: var(--muted);
  font-weight:600;
}
.hero__cta{display:flex;gap:14px;flex-wrap:wrap}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:44px;
  padding:0 18px;
  border-radius: 12px;
  border:3px solid var(--stroke);
  text-decoration:none;
  font-weight:700;
  color: var(--dark);
  background: var(--surface);
  box-shadow: 6px 6px 0 rgba(0,0,0,.18);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{transform: translate(-1px,-1px); box-shadow: 8px 8px 0 rgba(0,0,0,.18)}
.btn:active{transform: translate(1px,1px); box-shadow: 4px 4px 0 rgba(0,0,0,.18)}

.btn--primary{
  background: var(--dark);
  color: rgba(255,255,255,.96);
}
.btn--ghost{
  background: var(--surface-soft);
  color: var(--dark);
}

.portrait{
  width:min(420px, 100%);
  margin-left:auto;
  border:0;
}
.portrait svg{
  width:100%;
  height:auto;
  display:block;
}
.portrait__photo{
  width:100%;
  height:300px;
  display:block;
  border:6px solid var(--stroke);
  border-radius: 10px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.social-rail{
  position:fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index: 30;
}
.social-rail__btn{
  width:44px;height:44px;
  border-radius:999px;
  display:grid;place-items:center;
  background: var(--surface);
  border:3px solid var(--stroke);
  box-shadow: 6px 6px 0 rgba(0,0,0,.18);
  color: var(--dark);
  text-decoration:none;
}
.social-rail__btn svg{width:20px;height:20px}
.social-rail__btn:hover{transform: translate(-1px,-1px)}

.section{
  padding: 38px 0;
  color: var(--ink);
}
.section__title{
  margin:0;
  font-size: 28px;
  letter-spacing:-.01em;
  color: var(--ink);
}
.section--alt{
  background: rgba(232,216,196,.10);
  border-top:3px solid rgba(0,0,0,.12);
  border-bottom:3px solid rgba(0,0,0,.12);
  color: var(--text-dark);
}
.section--alt .section__title{
  color: var(--text-dark);
}
.section--alt .section__meta{
  color: var(--text-dark-soft);
}
.section__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.section__meta{margin:0;color:var(--muted);font-weight:600}
.link{color:var(--ink);font-weight:800}
.link:hover{text-decoration:none}

/* links inside light surfaces should stay dark */
.card .link,
.notice .link,
.contact__card .link{
  color: var(--dark);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}
.card{
  background: var(--card);
  border:3px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow:hidden;
}
.card__link{
  display:block;
  color:inherit;
  text-decoration:none;
  height:100%;
}
.card__media{
  background: var(--surface-strong);
  border-bottom:3px solid var(--stroke);
  aspect-ratio: 16 / 9;
  display:block;
  overflow:hidden;
}
.card__img{
  width:100%;
  height:100%;
  min-width:100%;
  min-height:100%;
  object-fit:cover;
  object-position: center;
  display:block;
  transform: scale(1.12);
  transform-origin: center;
  border-radius: 0;
}
.card__placeholder{
  width:100%;
  height:100%;
  background:
    linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.0)),
    repeating-linear-gradient(45deg, rgba(0,0,0,.06) 0 10px, rgba(0,0,0,.02) 10px 20px);
}
.card__body{padding:14px 14px 16px}
.card__title{margin:0 0 6px;font-size:18px;font-weight:800}
.card__tagline{margin:0 0 10px;color:var(--text-dark-muted);font-weight:600;font-size:14px;line-height:1.35}
.card__meta{display:flex;gap:8px;flex-wrap:wrap}
.pill{
  display:inline-flex;
  align-items:center;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  border:2px solid var(--stroke);
  background: var(--surface);
  color: var(--text-dark);
  font-weight:700;
  font-size:12px;
}
.pill--muted{opacity:.8}

.notice{
  border:3px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding:16px;
}
.notice p{margin:0 0 8px}
.notice p:last-child{margin:0}

.prose{margin:0;color:var(--muted);font-weight:600;line-height:1.6}

.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top:12px;
}
.contact__card{
  background: var(--surface);
  border:3px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding:16px;
}
.contact__card--wide{
  grid-column: 1 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(800px 220px at 18% 0%, rgba(0,194,168,.22), rgba(0,194,168,0) 65%),
    radial-gradient(700px 260px at 92% 120%, rgba(0,0,0,.06), rgba(0,0,0,0) 60%),
    rgba(232,216,196,.92);
}
.contact__card--wide::before{
  content:"";
  position:absolute;
  inset:-40px;
  background:
    repeating-linear-gradient(45deg,
      rgba(0,0,0,.035) 0 10px,
      rgba(0,0,0,.015) 10px 20px);
  opacity:.35;
  transform: rotate(-2deg);
  pointer-events:none;
}
.contact__card--wide > *{position:relative}

.contact__wide-left{min-width:0}
.contact__kicker{
  margin:0 0 6px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:12px;
  color: rgba(10,10,10,.62);
}
.contact__headline{
  margin:0 0 12px;
  font-weight:800;
  font-size: 18px;
  line-height:1.25;
}
.contact__quick{display:flex;gap:10px;flex-wrap:wrap}
.chip{
  display:inline-flex;
  align-items:center;
  height:30px;
  padding:0 12px;
  border-radius:999px;
  border:2px solid var(--stroke);
  background: var(--surface-soft);
  color: var(--text-dark);
  text-decoration:none;
  font-weight:800;
  font-size:12px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.14);
  transition: transform .12s ease, box-shadow .12s ease;
}
.chip:hover{transform: translate(-1px,-1px); box-shadow: 6px 6px 0 rgba(0,0,0,.14)}
.btn__arrow{font-weight:900}

.contact__card--wide:hover{
  transform: translate(-1px,-1px);
  box-shadow: var(--shadow-strong);
}
.contact__card--wide{
  transition: transform .12s ease, box-shadow .12s ease;
}
.contact__card--muted{background: rgba(232,216,196,.70)}

.footer{
  padding:22px 0 34px;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  color: rgba(255,255,255,.72);
  font-weight:700;
}
.footer .link{
  color: rgba(255,255,255,.88);
}

@media (max-width: 900px){
  .grid{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .hero__grid{grid-template-columns: 1fr; min-height: unset}
  .portrait{margin: 10px auto 0}
  .social-rail{right:12px}
}
@media (max-width: 560px){
  .grid{grid-template-columns: 1fr}
  .nav{gap:8px}
  .nav__link{padding:8px}
  .contact{grid-template-columns: 1fr}
  .contact__card--wide{
    flex-direction:column;
    align-items:flex-start;
  }
}

