/* ============================================================
   Mecaela Moreira — "Cane & Alder" brand system
   Distilled from a single warm room: plaster walls, walnut anchor,
   woven cane accent, one stem of green. Marcellus + Karla.
   Warmth without clutter. Space is the loudest voice.
   Only widely-supported CSS; color-scheme locked to light.
   ============================================================ */

:root {
  color-scheme: light only;

  --plaster:  #F2EFE8;   /* warm wall — default background */
  --linen:    #FBFAF6;   /* cabinet white — cards, mats */
  --greige:   #DDD8CF;   /* carpet — dividers, quiet fills */
  --walnut:   #3A2B21;   /* pedestal table — text, frames, buttons */
  --umber:    #5C4633;   /* mid wood — secondary text */
  --cane:     #BC8149;   /* woven caramel — the accent */
  --oak:      #D8AC72;   /* light chair — accent on dark, hover */
  --leaf:     #43603C;   /* foliage — one living touch, success */
  --iron:     #1E1B18;   /* hardware black — small UI, focus */

  --hair:      rgba(58, 43, 33, .30);
  --hair-line: 1px solid var(--hair);
  --frame:     1.5px solid var(--walnut);

  --serif: "Marcellus", Georgia, "Times New Roman", serif;
  --sans:  "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1080px;
  --pad: clamp(1.35rem, 5vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--plaster);
  color: var(--walnut);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: .01em; }
::selection { background: var(--cane); color: var(--linen); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--walnut); color: var(--linen);
  padding: .7rem 1.1rem; font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--cane); outline-offset: 3px; }

/* ---------- shared label / eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--cane);
}

/* ---------- Gallery Mat (signature device) ---------- */
.mat {
  background: var(--linen);
  border: var(--frame);
  padding: clamp(1rem, 2.4vw, 1.5rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.mat__img { width: 100%; height: auto; }
.mat__cap {
  margin-top: 1rem; padding-top: .9rem; border-top: var(--hair-line); width: 100%;
  font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--umber);
}

/* ---------- buttons: frames that fill on hover ---------- */
.btn {
  display: inline-block; width: max-content;
  border: var(--frame); background: transparent; color: var(--walnut);
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  padding: 14px 30px; text-decoration: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: background .28s var(--ease), color .28s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--walnut); color: var(--linen); }
.btn--solid { background: var(--walnut); color: var(--linen); }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--iron); color: var(--linen); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242, 239, 232, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--hair); }
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 1rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--walnut); }
.nav__mono {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: var(--frame);
  font-family: var(--serif); font-size: 16px; line-height: 1; white-space: nowrap;
}
.nav__mono b { color: var(--cane); font-weight: 400; padding: 0 1px; }
.nav__word { font-family: var(--serif); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }

.nav__toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin: -8px -8px -8px 0; }
.nav__toggle span { width: 24px; height: 1.5px; background: var(--walnut); transition: transform .3s var(--ease), opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__menu {
  list-style: none;
  position: fixed; inset: 62px 0 auto 0;
  display: flex; flex-direction: column;
  background: var(--plaster); border-bottom: var(--hair-line);
  padding: .5rem var(--pad) 1.4rem;
  transform: translateY(-130%); transition: transform .4s var(--ease);
  max-height: calc(100dvh - 62px); overflow-y: auto;
}
.nav__menu.is-open { transform: translateY(0); }
.nav__menu a {
  display: block; text-decoration: none; color: var(--walnut);
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  padding: 1rem .1rem; border-bottom: var(--hair-line);
}
.nav__menu li:last-child a { border-bottom: 0; }
.nav__menu a.is-active { color: var(--cane); }
.nav__cta { color: var(--cane); }

/* ---------- section scaffolding ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 9vw, 6rem) var(--pad); }
.section + .section { border-top: var(--hair-line); }
.section-head { display: flex; align-items: baseline; gap: 1.4rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head .num { font-family: var(--serif); font-size: 15px; color: var(--cane); }
.section-head h2 { font-size: clamp(1.75rem, 4.5vw, 2.15rem); line-height: 1.15; }
.lede { max-width: 600px; font-size: 17.5px; font-weight: 300; line-height: 1.7; color: var(--umber); }

/* ---------- hero ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 7vw, 5rem) var(--pad) clamp(3rem, 8vw, 5.5rem); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
.hero__title { font-size: clamp(2.6rem, 6.5vw, 4rem); line-height: 1.08; letter-spacing: .01em; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 300; line-height: 1.7; color: var(--umber); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .4rem; }
.hero__meta { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: .8rem; }
.hero__meta li { position: relative; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--umber); padding-left: 1.1rem; }
.hero__meta li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 1.5px; background: var(--cane); }

.hero__portrait { display: flex; justify-content: center; }
.hero__portrait .mat { width: min(400px, 82vw); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about__body p + p { margin-top: 1.15rem; }
.about__body p:not(.lede) { font-weight: 300; color: var(--umber); }
.facts { list-style: none; border-top: var(--hair-line); }
.facts li { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: 1rem 0; border-bottom: var(--hair-line); }
.facts__k { font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--cane); }
.facts__v { font-family: var(--serif); font-size: 1.05rem; }

/* ---------- focus areas (cards + chips) ---------- */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); margin-top: 2.5rem; }
.focus-card {
  border: var(--frame); background: var(--linen);
  padding: clamp(1.5rem, 3vw, 2.15rem); display: flex; flex-direction: column; gap: .7rem;
  transition: transform .3s var(--ease);
}
.focus-card:hover { transform: translateY(-4px); }
.focus-card__dot { width: 10px; height: 10px; border: 1.5px solid var(--cane); }
.focus-card h3 { font-size: 1.25rem; line-height: 1.2; }
.focus-card p { font-size: 14.5px; font-weight: 300; color: var(--umber); }
.skill-row { list-style: none; margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.chip {
  border: var(--hair-line); padding: .55rem 1.1rem;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--umber);
}

/* ---------- interlude band ---------- */
.interlude { max-width: var(--maxw); margin: 0 auto; padding: clamp(1rem, 3vw, 1.75rem) var(--pad); }
.band { position: relative; border: var(--frame); background: var(--linen); padding: 14px; overflow: hidden; }
.band__media { position: relative; aspect-ratio: 21 / 8; overflow: hidden;
  background: var(--greige) url("assets/band.webp") center / cover no-repeat; }
.band__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s var(--ease); filter: saturate(.88);
}
.band__slide.is-on { opacity: 1; }
.band__scrim {
  position: absolute; inset: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(1.5rem, 4vw, 2.75rem); background: rgba(251, 250, 246, .64);
}
.band__statement { font-size: clamp(1.2rem, 2.7vw, 1.85rem); line-height: 1.35; max-width: min(34ch, 100%); color: var(--walnut); }
.band__tag { display: block; margin-top: 1.1rem; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--cane); }

/* ---------- "current" badge ---------- */
.badge-current {
  display: inline-block; font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--linen); background: var(--leaf);
  padding: .3rem .6rem; margin-left: .6rem; vertical-align: .16em;
}

/* ---------- experience timeline ---------- */
.timeline { list-style: none; margin-top: 2.5rem; border-top: var(--hair-line); }
.timeline__row {
  display: grid; grid-template-columns: 96px 1fr; gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline; padding: 1.75rem .2rem; border-bottom: var(--hair-line);
}
.timeline__year { font-family: var(--serif); font-size: 1.5rem; color: var(--cane); line-height: 1; font-variant-numeric: tabular-nums; }
.timeline__role { font-size: 1.2rem; margin-bottom: .2rem; }
.timeline__org { font-size: 14px; color: var(--walnut); }
.timeline__org span { color: var(--umber); font-weight: 300; }
.timeline__desc { margin-top: .55rem; font-size: 15px; font-weight: 300; color: var(--umber); max-width: 58ch; }

/* ---------- education ---------- */
.edu { list-style: none; border-top: var(--hair-line); }
.edu__row { display: grid; grid-template-columns: 68px 1fr; gap: clamp(1rem, 3vw, 2rem); align-items: baseline; padding: 1.6rem .2rem; border-bottom: var(--hair-line); }
.edu__deg {
  justify-self: start; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--walnut); border: var(--frame); padding: .5rem .1rem; width: 100%; text-align: center;
}
.edu__school { font-size: 1.2rem; margin-bottom: .2rem; }
.edu__degree { font-size: 14.5px; font-weight: 300; color: var(--umber); }

/* ---------- inquire / contact ---------- */
.inquire { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.inquire__title { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; margin-bottom: 1rem; }
.inquire__linkedin {
  display: inline-block; margin-top: 1.4rem; text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cane);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.inquire__linkedin:hover { border-bottom-color: var(--cane); }

/* form on a Gallery Mat */
.inquire__form { border: var(--frame); background: var(--linen); padding: clamp(1.5rem, 3vw, 2.25rem); }
.contact-form { display: grid; gap: 1.15rem; }
.contact-form[hidden] { display: none; }
.field { display: grid; gap: .45rem; }
.field label { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--umber); }
.field input, .field textarea {
  -webkit-appearance: none; appearance: none;
  font-family: inherit; font-size: 16px; line-height: 1.5; color: var(--walnut);
  background: var(--plaster); border: 1px solid var(--greige); border-radius: 0;
  padding: .8rem .9rem; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #a89a86; }
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--walnut); box-shadow: inset 0 0 0 1px var(--walnut); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form__submit { width: 100%; text-align: center; margin-top: .3rem; }
.contact-form__status { margin: 0; font-size: 14px; text-align: center; }
.contact-form__status:empty { display: none; }
.contact-form__status.is-error { color: #8f3a26; background: #f4e3dc; border: 1px solid #e0bcac; padding: .7rem .9rem; font-weight: 500; }

/* success — the single Leaf touch */
.form-success { text-align: center; opacity: 1; padding: .5rem 0; animation: rise .4s var(--ease); }
.form-success:focus { outline: none; }
.form-success__check { display: inline-grid; place-items: center; width: 64px; height: 64px; border: var(--frame); margin-bottom: 1.1rem; animation: pop .4s var(--ease); }
.fs-ring { stroke: var(--leaf); opacity: .4; }
.fs-tick { stroke: var(--leaf); }
.form-success__title { font-size: 1.5rem; margin-bottom: .45rem; }
.form-success__text { font-weight: 300; color: var(--umber); margin-bottom: 1.3rem; }

@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
@keyframes pop { from { transform: scale(.7); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .form-success, .form-success__check { animation: none; } }

/* ---------- footer: reversed on walnut ---------- */
.site-footer { background: var(--walnut); color: #EDE6DB; padding: clamp(3rem, 7vw, 4rem) var(--pad); text-align: center; }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; justify-items: center; gap: .5rem; }
/* match the header mark's glyph-to-box ratio (16/44): 52 * 16/44 ≈ 19px */
.site-footer__mono { width: 52px; height: 52px; border-color: var(--oak); color: var(--linen); font-size: 19px; margin-bottom: .6rem; }
.site-footer__mono b { color: var(--oak); }
.site-footer__word { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase; color: var(--linen); }
.site-footer__tag { font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--oak); }
.site-footer__copy { font-size: 11px; letter-spacing: .1em; color: rgba(237, 230, 219, .6); margin-top: .3rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (min-width: 721px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; flex-direction: row; align-items: center; gap: 30px;
    background: none; border: 0; padding: 0; transform: none; max-height: none; overflow: visible;
  }
  /* Rebrand-guide nav links: 11px / .22em, cane border-bottom fades in on hover */
  .nav__menu a {
    padding: 6px 0; font-size: 11px; border-bottom: 1.5px solid transparent;
    transition: border-color .25s var(--ease), color .25s var(--ease);
  }
  .nav__menu a:hover, .nav__menu a:focus-visible, .nav__menu a.is-active {
    color: var(--cane); border-bottom-color: var(--cane);
  }
}

@media (max-width: 720px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero__portrait { order: -1; justify-content: center; }
  .hero__copy { align-items: center; text-align: center; }
  .hero__lead { max-width: 46ch; }
  .hero__meta { justify-content: center; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .inquire { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .band__media { aspect-ratio: 3 / 2; }
  .timeline__row { grid-template-columns: 66px 1fr; }
}
@media (max-width: 420px) {
  .nav__word { display: none; }
}
