/* =========================================================
   Reseda Recreation — original stylesheet
   Responsive model mirrors the Brine template family:
   - Fluid site width capped by --site-max
   - Single primary breakpoint at 640px (Brine "mobile" tweak)
   - Secondary breakpoint at 1024px for tablet column collapse
   ========================================================= */

:root{
  --site-max: 1500px;        /* Brine "Site Width: Full" cap */
  --gutter: 4vw;             /* fluid outer gutters */
  --header-h: 80px;
  --ink:#1d1d1b;
  --paper:#f5f5f3;
  --muted:#8a8a82;
  --accent:#1d1d1b;
  --serif:"Bricolage Grotesque","Work Sans",-apple-system,"Helvetica Neue",Arial,sans-serif;
  /* Courier Std = Adobe proprietary (no free webfont). Courier Prime is the
     closest free match; Courier New / monospace as final fallbacks. */
  --mono:"Courier Std","Courier Prime","Courier New",monospace;
  /* Pragmatica Extended = ParaType proprietary (no free webfont). Listed first
     so it renders where installed/licensed; sans fallbacks otherwise. */
  --display:"Pragmatica Extended","Arial Narrow",var(--sans);
  --sans:"Bricolage Grotesque","Work Sans",-apple-system,"Helvetica Neue",Arial,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}

/* ---------- Heading system ---------- */
h1,h2,h3,h4{
  font-family:var(--serif);
  font-style:normal;
  font-weight:700;
  line-height:1.1em;
  letter-spacing:-0.04em;
  text-transform:capitalize;
}
h1{font-size:6rem;}
h2{font-size:4rem;}
h3{font-size:2rem;}
h4{font-size:1.6rem;}

.container{
  width:100%;
  max-width:var(--site-max);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

/* ---------- Header ---------- */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:50;
  height:var(--header-h);
  display:flex;align-items:center;
  border-bottom:1px solid #000;     /* divider stays pinned on top while scrolling */
  transition:background .35s ease, box-shadow .35s ease;
}
.site-header.scrolled{
  background:rgba(245,245,243,.92);
  backdrop-filter:saturate(150%) blur(8px);
  box-shadow:0 1px 0 rgba(0,0,0,.06);
}
.header-inner{
  width:100%;max-width:var(--site-max);margin-inline:auto;
  padding-inline:var(--gutter);
  display:flex;align-items:center;justify-content:space-between;
}
.brand{
  font-family:var(--sans);
  font-weight:500;letter-spacing:.42em;font-size:1.05rem;
  padding-left:.42em; /* optically center the tracked text */
  color:var(--ink);                    /* dark over the light page */
}

/* "::" kept only in the MASA::UX brand lockup */
.brand-sep{opacity:.45;}
.meta-label{color:var(--ink);}
.site-nav{display:flex;gap:2.4rem;}
.site-nav a{
  font-size:.82rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--ink);position:relative;transition:color .3s ease;
}
.site-nav a::after{
  content:"";position:absolute;left:0;bottom:-6px;height:1px;width:0;
  background:currentColor;transition:width .3s ease;
}
.site-nav a:hover::after{width:100%;}

/* CV / Portfolio — download chips, set apart from anchor links */
.site-nav a.nav-doc{
  border:1px solid currentColor;border-radius:999px;
  padding:.5em 1.1em;
}
.site-nav a.nav-doc::after{display:none;}     /* no underline animation */
.site-nav a.nav-doc:hover{background:var(--ink);color:#fff;}

/* hamburger — hidden on desktop */
.nav-toggle{
  display:none;flex-direction:column;gap:5px;
  background:none;border:0;cursor:pointer;width:26px;
}
.nav-toggle span{height:2px;width:100%;background:var(--ink);transition:.3s;}

/* ---------- Hero ---------- */
.hero{
  position:relative;                  /* height follows content (no empty screen) */
  display:flex;flex-direction:column;
  padding:var(--header-h) 0 clamp(2rem,5vw,4rem);   /* clear header + small bottom gap */
  background:var(--paper);
  background-size:cover;background-position:center;
  color:var(--ink);overflow:hidden;
}
.hero-overlay{position:absolute;inset:0;background:transparent;}

/* full-width adaptive headline at the very top of the hero */
.hero-bigtext{
  position:relative;z-index:2;
  width:100%;max-width:var(--site-max);
  margin:clamp(1rem,3vw,2.5rem) auto 0;
  padding-inline:var(--gutter);
}
.hero-masa{display:block;width:100%;height:auto;fill:var(--ink);overflow:visible;}
.hero-masa text{
  font-family:var(--serif);   /* Bricolage Grotesque */
  font-weight:700;
  text-transform:uppercase;
  font-size:120px;     /* viewBox units; textLength stretches it to fill the line */
}

.hero-content{
  position:relative;z-index:2;
  flex:1 1 auto;
  display:flex;flex-direction:column;justify-content:center;
  max-width:var(--site-max);margin-inline:auto;
  padding-inline:var(--gutter);width:100%;
}
.eyebrow{
  font-size:.78rem;letter-spacing:.32em;text-transform:uppercase;
  color:var(--muted);margin-bottom:1.4rem;
}
.hero-title{margin-bottom:0;}
/* skills line — below the title, same muted eyebrow colour */
.hero-skills{
  margin:1.5rem 0 0;
  letter-spacing:.12em;
  line-height:1.9;
  max-width:64ch;
}
.hero-lede{
  margin-top:clamp(1.4rem,3vw,2.2rem);
  max-width:60ch;
  font-size:clamp(1rem,1.4vw,1.2rem);
  line-height:1.7;
  color:var(--muted);
}

/* paragraph type scale (Paragraph 1 = large ... 3 = small) */
.paragraph-1{font-size:1.25rem;line-height:1.7;}
.paragraph-2{font-size:1.05rem;line-height:1.7;}
.paragraph-3{font-size:.875rem;line-height:1.7;letter-spacing:.005em;}

/* ---------- Index sections ---------- */
/* unified #f5f5f3 background; 2px black rule divides each section.
   Height = one viewport minus the header, so header + a full section
   fit in a single screen. Content is vertically centred. */
.index-section{
  min-height:calc(100vh - var(--header-h));
  min-height:calc(100svh - var(--header-h));
  display:flex;align-items:center;
  padding:clamp(1.5rem,4vw,3rem) 0;
  border-top:1px solid #000;
  scroll-margin-top:var(--header-h);   /* anchor lands below fixed header */
}
.index-section > .container{width:100%;}
.index-section.alt{background:transparent;}
/* no divider between the hero and the first section */
#about{border-top:0;}

/* ---------- Featured Clients band (auto height) ---------- */
.clients-band{
  background:var(--paper);
  padding:clamp(2.5rem,6vw,4.5rem) 0;
  border-top:1px solid #000;        /* 1px divider above the band */
}
/* title centred, using the section heading (h3) style */
.clients-heading{text-align:center;margin-bottom:2.2rem;}
.client-wall{
  list-style:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:clamp(1.4rem,3vw,2.6rem) clamp(2rem,5vw,4rem);
}
.client-wall li{display:flex;align-items:center;}
/* grey logos, horizontal, wrap on overflow; restore on hover */
.client-logo{
  display:block;width:auto;
  height:clamp(26px,3.4vw,42px);
  filter:grayscale(1);opacity:.55;
  transition:filter .3s ease,opacity .3s ease;
}
.client-logo:hover{filter:grayscale(0);opacity:1;}

/* ---------- Experience / CV band ---------- */
.cv-band{background:var(--paper);padding:clamp(3rem,8vw,6rem) 0;border-top:1px solid #000;}
.cv-sub{margin-top:2.6rem;}
.cv-list{list-style:none;}
.cv-row{
  display:grid;grid-template-columns:1.5fr 1.4fr .8fr;gap:1rem;
  align-items:baseline;
  padding:1.1rem 0;border-bottom:1px solid rgba(0,0,0,.12);
}
.cv-role{font-family:var(--serif);font-weight:700;font-size:clamp(1.05rem,2vw,1.5rem);line-height:1.2;}
.cv-org{color:var(--muted);}
.cv-date{color:var(--muted);text-align:right;font-size:.85rem;letter-spacing:.04em;}
.cv-langs{color:var(--muted);margin-top:1.2rem;}
@media (max-width:640px){
  .cv-row{grid-template-columns:1fr;gap:.15rem;}
  .cv-date{text-align:left;}
}
.section-head{max-width:680px;margin-bottom:3.5rem;}
.section-num{
  display:block;font-size:.75rem;letter-spacing:.3em;
  color:var(--muted);margin-bottom:1rem;
}
.section-head h2,.split-text h2{margin-bottom:1rem;}
.section-head p{color:var(--muted);max-width:46ch;}

/* =========================================================
   SPLIT layouts — 4 variants
   .split--5050  : 50/50 columns
   .split--3070  : 3/7 columns (text 3 : media 7)
   add .split--mirror to flip media to the opposite side
   Text column: title pinned TOP (bold), body pinned BOTTOM (mono)
   ========================================================= */
.split{
  display:grid;
  gap:clamp(2rem,6vw,6rem);
  align-items:stretch;           /* let text column match media height */
}
.split--5050{grid-template-columns:1fr 1fr;}
/* 3:7 => text 3 : media 7 (media is the larger side) */
.split--3070{grid-template-columns:7fr 3fr;}
/* hero intro => media 3 (left) : text 7 (right); same gap + stretch as sections */
.hero-split{grid-template-columns:3fr 7fr;}

/* Portfolio images: scale ONLY by their own proportion — never distorted.
   width follows the column, height auto keeps the native aspect ratio. */
.split-media{
  display:block;
  width:100%;
  height:auto;                   /* keep intrinsic aspect ratio */
  border-radius:0;
  align-self:start;              /* don't let the grid stretch (distort) it */
  order:1;                       /* media on the left by default */
}

.split-text{
  order:2;                       /* text on the right by default */
  display:flex;
  flex-direction:column;         /* title top, body bottom */
}

/* MIRROR: flip the two columns */
.split--mirror .split-media{order:2;}
.split--mirror .split-text{order:1;}
.split--3070.split--mirror{grid-template-columns:3fr 7fr;}

/* Title: top-aligned + bold (heading system already 700) */
.split-title{margin:0;}

/* Body: bottom-aligned + Courier Std (mono) */
.split-body{
  margin-top:auto;               /* push to the bottom of the column */
  font-family:var(--mono);
  font-size:.95rem;
  line-height:1.7;
  color:var(--muted);
  max-width:52ch;
}
.split-body p{margin-bottom:1.4rem;}
.link-underline{
  font-family:var(--mono);
  border-bottom:1px solid currentColor;padding-bottom:3px;
  font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--ink);
}

/* footer */
.site-footer{
  background:var(--ink);color:#f4f2ed;
  padding:clamp(4rem,9vw,7rem) 0 3rem;
  min-height:100vh;                 /* footer becomes a full-height region */
  display:flex;flex-direction:column;
}
.footer-inner{display:grid;gap:2.5rem;}
.site-footer h2{color:inherit;}
.footer-links{display:flex;flex-direction:column;gap:.7rem;align-items:flex-start;margin-top:1rem;}
.footer-email{font-size:1.2rem;}   /* plain text, not a link */
.footer-mail{display:inline-block;font-size:1.2rem;border-bottom:1px solid rgba(255,255,255,.4);padding-bottom:4px;}
.footer-mail:hover{border-color:#fff;}
/* oversized RECTANGULAR ghost button — Download Portfolio (footer, dark bg) */
/* download band — light strip between last section and the footer */
.download-band{scroll-margin-top:var(--header-h);
  background:var(--paper);
  padding-block:clamp(2rem,5vw,4rem);   /* keeps the gap above the button */
}
.footer-cta-wrap{
  width:100%;max-width:var(--site-max);
  margin:0 auto;
  padding-inline:var(--gutter);
}
.footer-btn{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  width:100%;
  padding:clamp(1.4rem,4vw,3rem) clamp(1.5rem,4vw,3rem);
  border:1.5px solid var(--ink);border-radius:0;
  font-family:var(--serif);font-weight:700;
  font-size:clamp(1.6rem,6vw,4.5rem);line-height:1;
  letter-spacing:-.02em;text-transform:uppercase;color:var(--ink);
  transition:background .3s ease,color .3s ease,border-color .3s ease;
}
.footer-btn-label{flex:1 1 auto;}
.dl-icon{flex:0 0 auto;width:.95em;height:.95em;}
.footer-btn:hover{background:var(--ink);color:var(--paper);border-color:var(--ink);}
.footer-nav{display:flex;gap:2rem;}
.footer-nav a{font-size:.8rem;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.7);}
.footer-nav a:hover{color:#fff;}
.copyright{font-size:.72rem;letter-spacing:.08em;color:rgba(255,255,255,.45);}
/* colophon — AI/Claude Code credit at the very bottom */
.colophon{
  position:relative;z-index:1;
  margin-top:clamp(2rem,5vw,3.5rem);
  padding-inline:var(--gutter);
  max-width:34ch;
  font-family:var(--mono);
  font-weight:400;                 /* override h4 heading weight */
  text-transform:none;             /* override h4 capitalize */
  letter-spacing:.01em;
  font-size:clamp(1.6rem,4vw,2rem);  /* heading-3 size */
  line-height:1.3;
  color:rgba(244,242,237,.45);
}

/* bottom half — oversized name filling the full width AND height */
.footer-big{
  flex:1 1 auto;                    /* grow to fill remaining footer height */
  display:flex;align-items:stretch;
  width:100%;max-width:var(--site-max);
  margin:clamp(3rem,8vw,6rem) auto 0;
  padding-inline:var(--gutter);
  min-height:32vh;
}
.masa{
  display:block;width:100%;height:100%;
  fill:#f4f2ed;
}
.masa text{
  font-family:var(--display);   /* Pragmatica Extended */
  font-weight:700;
  line-height:1.3em;
  font-size:130px;              /* viewBox units; textLength stretches to fill */
}

/* =========================================================
   RESPONSIVE — Brine-style breakpoints
   ========================================================= */

/* Tablet: collapse 3-col to 2-col (Brine collapses index columns here) */
@media (max-width:1024px){
  .grid-3{grid-template-columns:repeat(2,1fr);}
  .site-nav{gap:1.6rem;}
  /* scale the heading system down proportionally */
  h1{font-size:4.4rem;}
  h2{font-size:3rem;}
  h3{font-size:1.8rem;}
  h4{font-size:1.4rem;}
}

/* MOBILE — Brine primary breakpoint at 640px.
   Nav collapses to overlay menu, all multi-col grids become single column. */
@media (max-width:640px){
  :root{--header-h:64px;--gutter:6vw;}

  .nav-toggle{display:flex;}
  .site-nav{
    position:fixed;inset:0;z-index:40;
    flex-direction:column;align-items:center;justify-content:center;
    gap:2.2rem;background:var(--ink);
    transform:translateY(-100%);transition:transform .4s cubic-bezier(.7,0,.2,1);
  }
  .site-nav.open{transform:translateY(0);}
  /* overlay menu links stay white even if header is in scrolled state */
  .site-nav a,
  .site-header.scrolled .site-nav a{color:#fff;font-size:1.1rem;}

  /* keep brand readable above dark overlay menu */
  .site-header.menu-open .brand{color:#fff;}
  .site-header.menu-open .nav-toggle span{background:#fff;}

  h1{font-size:3.2rem;}
  h2{font-size:2.4rem;}
  h3{font-size:1.6rem;}
  h4{font-size:1.3rem;}

  /* all split variants -> single column, media on top, body below */
  .split,
  .split--5050,
  .split--3070,
  .split--3070.split--mirror,
  .hero-split{grid-template-columns:1fr;}
  .split-media{order:-1!important;width:100%;height:auto;}
  .split-text{order:0;}
  .split-body{margin-top:1.4rem;}
  /* stacked sections scroll naturally instead of forcing one screen each */
  .index-section{min-height:0;height:auto;}
  .footer-nav{flex-wrap:wrap;gap:1.2rem;}
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto;transition:none!important;}
}
