/* ============================================================
   MYM DEVELOPERS — Design System
   Tokens: ivory/white ground, MYM terracotta→rose gradient accent,
   Green Avenue sage, elevation-line signature motif.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* --- surfaces --- */
  --bg:            #FBF9F4;
  --bg-alt:        #F3EEE3;
  --bg-white:      #FFFFFF;
  --ink:           #24211D;
  --ink-soft:      #5B564B;
  --ink-faint:     #948C7C;
  --hairline:      rgba(36,33,29,0.14);
  --hairline-soft: rgba(36,33,29,0.08);

  /* --- MYM brand accent (terracotta -> rose, from logo) --- */
  --mym-1: #BD4630;
  --mym-2: #9C3C63;
  --mym-gradient: linear-gradient(115deg, var(--mym-1), var(--mym-2));

  /* --- Green Avenue sage --- */
  --sage:      #75835F;
  --sage-deep: #4C5640;
  --sage-pale: #E7E9DC;

  /* --- beige / brown (warm ground) --- */
  --beige:      #E9DFC9;
  --beige-deep: #B79A6C;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-elev: 0 1px 2px rgba(36,33,29,0.04), 0 12px 32px -16px rgba(36,33,29,0.18);
  --shadow-elev-hover: 0 4px 10px rgba(36,33,29,0.06), 0 24px 48px -18px rgba(36,33,29,0.24);

  --maxw: 1200px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }

h1,h2,h3,h4{
  font-family:'Fraunces',Georgia,serif;
  font-weight:500;
  line-height:1.08;
  margin:0 0 0.5em;
  letter-spacing:-0.01em;
  color:var(--ink);
}
h1{ font-size:clamp(2.4rem,5vw,4.4rem); font-weight:600; }
h2{ font-size:clamp(1.9rem,3.4vw,2.9rem); }
h3{ font-size:1.4rem; }

.eyebrow{
  font-family:'IBM Plex Mono',monospace;
  font-size:0.72rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--mym-1);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background:var(--mym-gradient);
  display:inline-block;
}
.eyebrow.sage{ color:var(--sage-deep); }
.eyebrow.sage::before{ background:var(--sage); }

p.lede{ font-size:1.15rem; color:var(--ink-soft); max-width:56ch; }
.muted{ color:var(--ink-soft); }

:focus-visible{
  outline:2px solid var(--mym-1);
  outline-offset:3px;
  border-radius:4px;
}

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 32px; }
@media (max-width:640px){ .wrap{ padding:0 20px; } }

section{ position:relative; }
.section-pad{ padding:96px 0; }
.section-pad-sm{ padding:64px 0; }
@media (max-width:800px){
  .section-pad{ padding:64px 0; }
  .section-pad-sm{ padding:44px 0; }
}

.bg-alt{ background:var(--bg-alt); }
.bg-white{ background:var(--bg-white); }
.bg-ink{ background:var(--ink); color:#F3EEE3; }
.bg-ink h1,.bg-ink h2,.bg-ink h3{ color:#F3EEE3; }

/* ============ ELEVATION-LINE SIGNATURE MOTIF ============
   A thin rooflineâ€“derived elevation profile used as a recurring
   graphic device: section dividers, hero backdrop, card footers.
   It reads as a survey/elevation drawing â€” native to the subject. */
.elevation-divider{
  width:100%; height:46px; overflow:hidden; line-height:0;
}
.elevation-divider svg{ width:100%; height:100%; display:block; }

.plotgrid-bg{
  position:absolute; inset:0;
  background-image:
    linear-gradient(var(--hairline-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline-soft) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(to bottom, black, transparent 85%);
  pointer-events:none;
}

/* ============ HEADER / NAV ============ */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(251,249,244,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;
  transition:border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled{
  border-bottom-color:var(--hairline);
  box-shadow:0 8px 24px -20px rgba(36,33,29,0.3);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:82px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:40px; width:auto; }

nav.main-nav{ display:flex; align-items:center; gap:2px; }
nav.main-nav > a, .nav-dropdown > button{
  padding:10px 16px;
  font-size:0.94rem;
  font-weight:500;
  border:none; background:none; cursor:pointer;
  color:var(--ink);
  border-radius:var(--radius-sm);
  display:flex; align-items:center; gap:6px;
  transition:color .2s ease;
}
nav.main-nav > a:hover, .nav-dropdown > button:hover{ color:var(--mym-1); }
nav.main-nav > a.active{ color:var(--mym-1); }

.nav-dropdown{ position:relative; }
.nav-dropdown svg{ width:11px; height:11px; transition:transform .2s ease; }
.nav-dropdown:hover svg, .nav-dropdown.open svg{ transform:rotate(180deg); }
.dropdown-panel{
  position:absolute; top:calc(100% + 6px); left:50%;
  transform:translateX(-50%) translateY(6px);
  background:var(--bg-white);
  border:1px solid var(--hairline);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-elev-hover);
  padding:10px;
  min-width:230px;
  opacity:0; visibility:hidden;
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown.open .dropdown-panel{
  opacity:1; visibility:visible; transform:translateX(-50%) translateY(0);
}
.dropdown-panel a{
  display:flex; flex-direction:column; gap:1px;
  padding:11px 14px; border-radius:var(--radius-sm);
  font-size:0.93rem; font-weight:500;
}
.dropdown-panel a:hover{ background:var(--bg-alt); }
.dropdown-panel a small{ font-weight:400; color:var(--ink-soft); font-size:0.78rem; }

.nav-cta{
  background:var(--ink) !important; color:var(--bg) !important;
  padding:11px 20px !important; border-radius:999px !important;
}
.nav-cta:hover{ background:var(--mym-1) !important; color:#fff !important; }

.nav-actions{ display:flex; align-items:center; gap:6px; }

.menu-toggle{
  display:none; background:none; border:none; cursor:pointer;
  width:40px; height:40px; align-items:center; justify-content:center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after{
  content:""; display:block; width:20px; height:1.5px; background:var(--ink);
  position:relative; transition:all .25s ease;
}
.menu-toggle span::before{ position:absolute; top:-6px; }
.menu-toggle span::after{ position:absolute; top:6px; }

@media (max-width:920px){
  nav.main-nav{ display:none; }
  .nav-actions .nav-cta{ display:none; }
  .menu-toggle{ display:flex; }
}

.mobile-nav{
  display:none;
  border-top:1px solid var(--hairline);
  background:var(--bg-white);
}
.mobile-nav.open{ display:block; }
.mobile-nav .wrap{ display:block; padding:14px 20px 22px; height:auto; }
.mobile-nav a{ display:block; padding:13px 4px; font-weight:500; border-bottom:1px solid var(--hairline-soft); }
.mobile-accordion > button{
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  padding:13px 4px; font-weight:500; font-size:1rem; font-family:inherit; color:var(--ink);
  display:flex; justify-content:space-between; align-items:center;
  border-bottom:1px solid var(--hairline-soft);
}
.mobile-accordion .sub{
  max-height:0; overflow:hidden; transition:max-height .25s ease;
  padding-left:14px;
}
.mobile-accordion.open .sub{ max-height:240px; }
.mobile-accordion .sub a{ padding:11px 4px; border-bottom:none; color:var(--ink-soft); font-weight:400; font-size:0.94rem; }
.mobile-nav .nav-cta{ display:block; text-align:center; margin-top:14px; }

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 28px; border-radius:999px;
  font-weight:600; font-size:0.95rem;
  border:1px solid transparent; cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--ink); color:var(--bg); }
.btn-primary:hover{ background:var(--mym-1); color:#fff; transform:translateY(-2px); box-shadow:0 14px 26px -12px rgba(189,70,48,0.45); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--hairline); }
.btn-outline:hover{ border-color:var(--ink); transform:translateY(-2px); }
.btn-ghost{ background:transparent; color:var(--mym-1); padding:8px 4px; }
.btn-ghost:hover{ gap:12px; }
.btn-sage{ background:var(--sage-deep); color:#fff; }
.btn-sage:hover{ background:var(--sage); transform:translateY(-2px); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:0.55; cursor:not-allowed; transform:none !important; }

/* ============ HERO ============ */
.hero{
  padding:76px 0 88px;
  position:relative; overflow:hidden;
}
.hero-grid{
  display:grid; grid-template-columns:1.15fr 0.85fr; gap:56px; align-items:center;
  position:relative; z-index:1;
}
.hero h1{ margin-bottom:20px; }
.hero .cta-row{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }
.hero-visual{
  border-radius:var(--radius-lg); overflow:hidden; position:relative;
  box-shadow:var(--shadow-elev-hover);
  aspect-ratio:4/5;
}
.hero-visual img{ width:100%; height:100%; object-fit:cover; }
@media (max-width:920px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; aspect-ratio:16/10; }
}

/* ============ CARDS ============ */
.card-grid{ display:grid; gap:28px; }
.cols-3{ grid-template-columns:repeat(3,1fr); }
.cols-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:920px){ .cols-3,.cols-2{ grid-template-columns:1fr; } }

.card{
  background:var(--bg-white);
  border:1px solid var(--hairline);
  border-radius:var(--radius-lg);
  overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display:flex; flex-direction:column;
}
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-elev-hover); border-color:transparent; }
.card-media{ aspect-ratio:4/3; overflow:hidden; background:var(--bg-alt); position:relative; }
.card-media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.card:hover .card-media img{ transform:scale(1.06); }
.card-body{ padding:26px 26px 28px; display:flex; flex-direction:column; gap:12px; flex:1; }
.tag{
  display:inline-flex; align-self:flex-start;
  font-family:'IBM Plex Mono',monospace; font-size:0.68rem; letter-spacing:0.08em; text-transform:uppercase;
  padding:5px 11px; border-radius:999px;
  background:var(--bg-alt); color:var(--ink-soft);
}
.tag.status-past{ background:var(--beige); color:#5C4B2C; }
.tag.status-current{ background:var(--sage-pale); color:var(--sage-deep); }
.tag.status-upcoming{ background:#F1E3E7; color:var(--mym-2); }
.card-body h3{ margin-bottom:2px; }
.card-body p{ color:var(--ink-soft); font-size:0.94rem; margin:0; }
.card-footer{ margin-top:auto; padding-top:8px; display:flex; align-items:center; justify-content:space-between; }

.category-card{
  padding:38px 30px; border-radius:var(--radius-lg);
  border:1px solid var(--hairline); background:var(--bg-white);
  transition:transform .3s ease, box-shadow .3s ease;
  display:flex; flex-direction:column; gap:14px; height:100%;
}
.category-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-elev-hover); }
.category-card .count{ font-family:'Fraunces',serif; font-size:2.6rem; color:var(--mym-1); }

/* ============ SECTION HEADERS ============ */
.section-head{ max-width:640px; margin-bottom:52px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head-row{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:52px; flex-wrap:wrap; }

/* ============ REVEAL ANIMATION ============ */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ============ FOOTER ============ */
.site-footer{ background:var(--ink); color:#D8D2C4; padding:72px 0 32px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:40px; margin-bottom:56px; }
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.site-footer .brand img{ height:34px; }
.site-footer p{ color:#B0A996; font-size:0.92rem; }
.footer-col h4{ font-family:'IBM Plex Mono',monospace; font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase; color:#8D8672; margin-bottom:16px; font-weight:500; }
.footer-col a, .footer-col span{ display:block; color:#D8D2C4; font-size:0.92rem; padding:6px 0; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(216,210,196,0.14); padding-top:26px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:0.82rem; color:#8D8672; }
.social-row{ display:flex; gap:12px; }
.social-row a{ width:36px; height:36px; border:1px solid rgba(216,210,196,0.25); border-radius:50%; display:flex; align-items:center; justify-content:center; padding:0; }
.social-row a:hover{ border-color:#fff; }

/* ============ PLACEHOLDER (missing asset) ============ */
.asset-placeholder{
  width:100%; height:100%; min-height:220px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  background:
    repeating-linear-gradient(135deg, var(--bg-alt) 0px, var(--bg-alt) 10px, var(--bg) 10px, var(--bg) 20px);
  border:1.5px dashed var(--hairline);
  color:var(--ink-soft); text-align:center; padding:24px;
}
.asset-placeholder svg{ width:34px; height:34px; opacity:0.55; }
.asset-placeholder span{ font-size:0.82rem; font-family:'IBM Plex Mono',monospace; letter-spacing:0.02em; }

.notice-banner{
  background:var(--beige); border:1px solid var(--beige-deep);
  border-radius:var(--radius-md); padding:16px 20px;
  display:flex; gap:12px; align-items:flex-start; font-size:0.9rem; color:#5C4B2C;
}
.notice-banner svg{ flex-shrink:0; width:18px; height:18px; margin-top:2px; }

/* ============ ENQUIRY / CONTACT FORM ============ */
.form-card{
  background:var(--bg-white); border:1px solid var(--hairline);
  border-radius:var(--radius-lg); padding:44px;
  box-shadow:var(--shadow-elev);
}
@media (max-width:640px){ .form-card{ padding:26px; } }
.field-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:640px){ .field-grid{ grid-template-columns:1fr; } }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:0.86rem; font-weight:600; margin-bottom:7px; }
.field .req{ color:var(--mym-1); }
.field input, .field select, .field textarea{
  width:100%; padding:13px 14px; border-radius:var(--radius-sm);
  border:1px solid var(--hairline); background:var(--bg);
  font-family:inherit; font-size:0.95rem; color:var(--ink);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--mym-1); box-shadow:0 0 0 3px rgba(189,70,48,0.12);
}
.field textarea{ resize:vertical; min-height:120px; }
.chip-group{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{
  border:1px solid var(--hairline); border-radius:999px; padding:9px 16px;
  font-size:0.86rem; cursor:pointer; background:var(--bg); transition:all .2s ease;
}
.chip input{ display:none; }
.chip.checked{ background:var(--ink); color:var(--bg); border-color:var(--ink); }
.form-msg{ display:none; padding:16px 18px; border-radius:var(--radius-md); margin-top:18px; font-size:0.92rem; }
.form-msg.success{ display:block; background:var(--sage-pale); color:var(--sage-deep); }

.contact-detail{ display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--hairline); }
.contact-detail:last-child{ border-bottom:none; }
.contact-detail .icon{ width:40px; height:40px; border-radius:50%; background:var(--bg-alt); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-detail .icon svg{ width:18px; height:18px; color:var(--mym-1); }
.contact-detail h4{ font-family:'Inter'; font-size:0.95rem; font-weight:600; margin:0 0 3px; }
.contact-detail p{ margin:0; color:var(--ink-soft); font-size:0.92rem; }
.placeholder-text{ color:var(--ink-faint); font-style:italic; }

.map-placeholder{
  aspect-ratio:16/9; border-radius:var(--radius-lg); border:1.5px dashed var(--hairline);
  background:repeating-linear-gradient(135deg, var(--bg-alt) 0px, var(--bg-alt) 10px, var(--bg) 10px, var(--bg) 20px);
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px; color:var(--ink-soft);
}

/* ============ MISC PAGE PATTERNS ============ */
.breadcrumb{ font-family:'IBM Plex Mono',monospace; font-size:0.78rem; color:var(--ink-soft); display:flex; gap:8px; align-items:center; margin-bottom:26px; }
.breadcrumb a:hover{ color:var(--mym-1); }

.highlight-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
@media (max-width:920px){ .highlight-row{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .highlight-row{ grid-template-columns:1fr; } }
.highlight-item{ padding:26px 22px; border:1px solid var(--hairline); border-radius:var(--radius-md); background:var(--bg-white); }
.highlight-item .icon-wrap{ width:44px; height:44px; border-radius:12px; background:var(--bg-alt); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.highlight-item .icon-wrap svg{ width:20px; height:20px; color:var(--mym-1); }
.highlight-item h4{ font-family:'Inter'; font-weight:600; font-size:1rem; margin-bottom:6px; }
.highlight-item p{ font-size:0.88rem; color:var(--ink-soft); margin:0; }

.stat-row{ display:flex; gap:56px; flex-wrap:wrap; }
.stat-row .stat b{ display:block; font-family:'Fraunces',serif; font-size:2.2rem; font-weight:500; color:var(--ink); }
.stat-row .stat span{ font-size:0.85rem; color:var(--ink-soft); }

.value-list{ display:grid; grid-template-columns:1fr 1fr; gap:18px 40px; }
@media (max-width:640px){ .value-list{ grid-template-columns:1fr; } }
.value-list li{ list-style:none; display:flex; gap:12px; align-items:flex-start; padding:4px 0; }
.value-list li svg{ width:18px; height:18px; color:var(--sage-deep); flex-shrink:0; margin-top:3px; }

.founders-strip{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:800px){ .founders-strip{ grid-template-columns:1fr; } }
.founder-card{ border:1px solid var(--hairline); border-radius:var(--radius-md); padding:28px; background:var(--bg-white); text-align:center; }
.founder-avatar{ width:64px; height:64px; border-radius:50%; margin:0 auto 16px; background:var(--mym-gradient); display:flex; align-items:center; justify-content:center; color:#fff; font-family:'Fraunces',serif; font-size:1.3rem; }
.founder-card h4{ font-family:'Inter'; font-weight:600; margin-bottom:4px; }
.founder-card p{ color:var(--ink-soft); font-size:0.86rem; margin:0; }

.cta-band{
  border-radius:var(--radius-lg); padding:64px 56px; text-align:center;
  background:var(--ink); color:#fff; position:relative; overflow:hidden;
}
.cta-band h2{ color:#fff; }
.cta-band p{ color:#C9C3B4; }
.cta-band .cta-row{ justify-content:center; }
@media (max-width:640px){ .cta-band{ padding:44px 26px; } }

.related-strip{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:800px){ .related-strip{ grid-template-columns:1fr; } }

.gallery-note{
  border:1.5px dashed var(--hairline); border-radius:var(--radius-lg);
  padding:44px; text-align:center; color:var(--ink-soft);
}

.status-pill{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono',monospace; font-size:0.74rem; letter-spacing:0.08em; text-transform:uppercase;
  padding:7px 14px; border-radius:999px; margin-bottom:18px;
}
.status-pill.past{ background:var(--beige); color:#5C4B2C; }
.status-pill.current{ background:var(--sage-pale); color:var(--sage-deep); }
.status-pill.upcoming{ background:#F1E3E7; color:var(--mym-2); }
.status-pill .dot{ width:7px; height:7px; border-radius:50%; background:currentColor; }
