/* =========================================================
   Feras Shamasna — personal site
   Warm minimal. System fonts only (no third-party requests).
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:            #F7F3EC;
  --bg-alt:        #F1EBE1;
  --surface:       #FFFDF9;
  --ink:           #1A1714;
  --ink-soft:      #4A423A;
  --muted:         #6E6459;
  --accent:        #A8492A;
  --accent-soft:   #C4653F;
  --accent-wash:   rgba(168, 73, 42, 0.08);
  --line:          rgba(26, 23, 20, 0.12);
  --line-soft:     rgba(26, 23, 20, 0.07);
  --dark-panel:    #1F1B16;
  --dark-panel-ink:#F6F1E8;

  --shadow-sm: 0 1px 2px rgba(26,23,20,.05), 0 2px 8px rgba(26,23,20,.04);
  --shadow-md: 0 2px 4px rgba(26,23,20,.05), 0 12px 32px rgba(26,23,20,.07);
  --shadow-lg: 0 4px 8px rgba(26,23,20,.06), 0 24px 56px rgba(26,23,20,.10);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1140px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22, .68, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #16130F;
    --bg-alt:        #1C1914;
    --surface:       #211D18;
    --ink:           #F3EEE5;
    --ink-soft:      #CFC6B9;
    --muted:         #9C9284;
    --accent:        #E0885B;
    --accent-soft:   #EFA47C;
    --accent-wash:   rgba(224, 136, 91, 0.12);
    --line:          rgba(243, 238, 229, 0.15);
    --line-soft:     rgba(243, 238, 229, 0.08);
    --dark-panel:    #241F19;
    --dark-panel-ink:#F6F1E8;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 2px 4px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
    --shadow-lg: 0 4px 8px rgba(0,0,0,.3), 0 24px 56px rgba(0,0,0,.45);
  }
}

:root[data-theme="dark"] {
  --bg:            #16130F;
  --bg-alt:        #1C1914;
  --surface:       #211D18;
  --ink:           #F3EEE5;
  --ink-soft:      #CFC6B9;
  --muted:         #9C9284;
  --accent:        #E0885B;
  --accent-soft:   #EFA47C;
  --accent-wash:   rgba(224, 136, 91, 0.12);
  --line:          rgba(243, 238, 229, 0.15);
  --line-soft:     rgba(243, 238, 229, 0.08);
  --dark-panel:    #241F19;
  --dark-panel-ink:#F6F1E8;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 2px 4px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
  --shadow-lg: 0 4px 8px rgba(0,0,0,.3), 0 24px 56px rgba(0,0,0,.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.017em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; line-height: 1.28; }
h4 { font-size: 1.02rem; line-height: 1.3; }

p { text-wrap: pretty; }

.kicker {
  font-family: var(--mono);
  font-size: .73rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
  font-weight: 600;
}
.kicker-light { color: var(--accent-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .07em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .4rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2E9E6B;
  box-shadow: 0 0 0 3px rgba(46,158,107,.18);
  flex: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 20px rgba(26,23,20,.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #FBF7F0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  flex: none;
}
.brand-name { font-size: .97rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin-left: auto;
}
.site-nav > a:not(.btn) {
  text-decoration: none;
  font-size: .93rem;
  color: var(--ink-soft);
  position: relative;
  padding-block: .3rem;
  transition: color .2s var(--ease);
}
.site-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.site-nav > a:not(.btn):hover { color: var(--ink); }
.site-nav > a:not(.btn):hover::after,
.site-nav > a.is-active::after { transform: scaleX(1); }
.site-nav > a.is-active { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--surface);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--accent); }

.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}

.menu-btn { display: none; flex-direction: column; gap: 5px; }
.menu-bar {
  width: 17px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.menu-btn[aria-expanded="true"] .menu-bar:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bar:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.5rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform .25s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #FFFBF6;
  box-shadow: 0 1px 2px rgba(168,73,42,.2), 0 8px 22px rgba(168,73,42,.24);
}
.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(168,73,42,.22), 0 14px 30px rgba(168,73,42,.3);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-light {
  background: #FFFBF6;
  color: #1F1B16;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.26); }

.btn-sm { padding: .58rem 1.15rem; font-size: .89rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr .55fr;
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.4rem; }
.lede {
  font-size: clamp(1.03rem, 1.5vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 2.1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 2.2rem;
}
.hero-facts {
  display: grid;
  gap: .55rem;
  font-size: .9rem;
  color: var(--muted);
}
.hero-facts li {
  position: relative;
  padding-left: 1.35rem;
}
.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
}

/* Photo */
.hero-photo {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 360px;
  justify-self: end;
}
.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}
.photo-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: .5;
}
.photo-badge {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  width: max-content;
  /* May overhang the portrait slightly so the label stays on one line. */
  max-width: min(19rem, 122%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .6rem 1.05rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: .12rem;
  text-align: center;
}
.badge-label {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge-value { font-size: .84rem; font-weight: 600; color: var(--ink); }

/* Logo row */
.logo-row {
  margin-top: clamp(4rem, 8vw, 5.5rem);
  padding-top: 1.9rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.4rem;
}
.logo-row-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2.2rem;
}
.logo-row li {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ink-soft);
  opacity: .72;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.logo-row li:hover { opacity: 1; color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line-soft);
}
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.6rem); }
.section-intro {
  color: var(--muted);
  font-size: 1.04rem;
  margin-top: 1rem;
  max-width: 38em;
}

/* ---------- Service cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.3rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.card-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-wash);
  color: var(--accent);
  margin-bottom: .3rem;
}
.card p { color: var(--muted); font-size: .96rem; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
  padding-top: .7rem;
}
.tags li {
  font-family: var(--mono);
  font-size: .71rem;
  letter-spacing: .02em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .22rem .55rem;
  background: var(--bg);
}

/* Engagement formats */
.formats {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.format {
  background: var(--surface);
  padding: 1.5rem 1.5rem;
}
.format h4 { margin-bottom: .4rem; color: var(--accent); }
.format p { font-size: .92rem; color: var(--muted); }

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.3rem;
}
.work {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.work::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease);
}
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work:hover::before { transform: scaleY(1); }

.work-meta {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-num { color: var(--accent); font-weight: 700; }
.work-sector::before { content: "· "; }
.work p { color: var(--muted); font-size: .96rem; }

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
  counter-reset: step;
}
.step { position: relative; padding-top: 1.4rem; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--line);
}
.step::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 34%;
  height: 2px;
  background: var(--accent);
}
.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .55rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.step p { color: var(--muted); font-size: .94rem; }

.principles {
  margin-top: clamp(2.8rem, 5vw, 4rem);
  padding: 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.principles ul { display: grid; gap: .85rem; }
.principles li {
  color: var(--muted);
  font-size: .97rem;
  padding-left: 1.5rem;
  position: relative;
}
.principles li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.principles strong { color: var(--ink); font-weight: 600; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
.about-copy h2 { margin-bottom: 1.4rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 36em; }

.about-facts {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.about-facts dl { display: grid; gap: 1.15rem; }
.about-facts dt {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.about-facts dd { font-size: .94rem; color: var(--ink); line-height: 1.5; }

.timeline-title {
  margin-top: 1.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.timeline { display: grid; gap: .8rem; }
.timeline li {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: .7rem;
  font-size: .88rem;
  color: var(--ink-soft);
  align-items: baseline;
}
.timeline .years {
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- Testimonial ---------- */
.testimonial-section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.testimonial {
  max-width: 50rem;
  margin-inline: auto;
  text-align: center;
  position: relative;
}
.quote-mark {
  color: var(--accent);
  opacity: .3;
  margin: 0 auto 1.3rem;
}
.testimonial blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.testimonial figcaption {
  margin-top: 1.7rem;
  display: grid;
  gap: .25rem;
}
.t-name { font-weight: 600; font-size: .96rem; }
.t-role { font-size: .84rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq-grid .section-head { margin-bottom: 0; }
.faq-list { display: grid; }
.faq-list details {
  border-top: 1px solid var(--line);
  padding: .3rem 0;
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 600;
  font-size: 1.01rem;
  position: relative;
  transition: color .2s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: .4rem;
  top: 50%;
  width: 10px; height: 10px;
  border-right: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-list details p {
  padding: 0 2.5rem 1.3rem 0;
  color: var(--muted);
  font-size: .96rem;
  margin-top: -.25rem;
}

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(4rem, 9vw, 7rem); }
.contact-panel {
  background: var(--dark-panel);
  color: var(--dark-panel-ink);
  border-radius: clamp(20px, 3vw, 30px);
  padding: clamp(2.2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-panel::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -12%;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,136,91,.24), transparent 68%);
  pointer-events: none;
}
.contact-panel h2 { color: var(--dark-panel-ink); margin-bottom: 1rem; }
.contact-copy p { color: rgba(246,241,232,.74); max-width: 32em; }

.contact-actions {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
  position: relative;
}
.email-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.email-row a {
  font-family: var(--mono);
  font-size: .87rem;
  color: rgba(246,241,232,.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(246,241,232,.28);
  padding-bottom: 1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
  word-break: break-all;
}
.email-row a:hover { color: #fff; border-color: #fff; }
.copy-btn {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(246,241,232,.7);
  border: 1px solid rgba(246,241,232,.25);
  border-radius: 6px;
  padding: .24rem .5rem;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.copy-btn:hover { background: rgba(246,241,232,.12); color: #fff; }
.copy-btn.is-copied { border-color: #4FBF8B; color: #4FBF8B; }

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .89rem;
  color: rgba(246,241,232,.72);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.linkedin-link:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 2.2rem;
  font-size: .88rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.8rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a {
  text-decoration: none;
  transition: color .2s var(--ease);
}
.site-footer a:hover { color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger steps, set with data-delay so no inline styles are needed
   and the Content-Security-Policy can forbid inline styles outright. */
[data-delay="1"] { --delay: .08s; }
[data-delay="2"] { --delay: .16s; }
[data-delay="3"] { --delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Legal page ---------- */
.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal-inner { max-width: 44rem; }
.legal h1 { margin-bottom: 2rem; }
.legal h2 {
  font-size: 1.4rem;
  margin-top: 2.6rem;
  margin-bottom: .9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}
.legal h3 { font-size: 1.08rem; margin-top: 1.6rem; margin-bottom: .5rem; }
.legal p, .legal li { color: var(--ink-soft); font-size: .97rem; margin-bottom: .85rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; }
.legal a { color: var(--accent); }
.legal .note {
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
  border-radius: 0 8px 8px 0;
  font-size: .91rem;
  margin-bottom: 2rem;
}
.legal address { font-style: normal; }
.legal .back-link { margin-top: 2.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 320px; justify-self: start; }
  .hero-photo::before { inset: 14px -14px -14px 14px; }
  .about-grid,
  .faq-grid,
  .contact-panel { grid-template-columns: 1fr; }
  .contact-actions { justify-items: start; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 76px; }
  .menu-btn { display: flex; }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.4rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav > a:not(.btn) {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1rem;
  }
  .site-nav > a:not(.btn)::after { display: none; }
  .nav-cta {
    margin-top: 1.1rem;
    width: 100%;
    padding-block: .8rem;
    font-size: .95rem;
  }

  .logo-row { gap: .9rem 1.6rem; }
  .logo-row ul { gap: .6rem 1.5rem; }
  .logo-row li { font-size: 1rem; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero { padding-top: 2rem; }

  /* Keep a face on screen without pushing the headline below the fold. */
  .hero-photo { max-width: 190px; margin-bottom: .4rem; }
  .hero-photo::before { display: none; }
  .photo-frame { border-radius: 16px; }
  .photo-badge {
    position: static;
    transform: none;
    margin: .9rem 0 0;
    max-width: 100%;
    text-align: left;
    padding: .5rem .8rem;
  }
  .eyebrow { margin-bottom: 1.1rem; }

  .hero-actions .btn { flex: 1 1 100%; }
  .card, .work, .principles, .about-facts { padding: 1.5rem 1.3rem; }
  .timeline li { grid-template-columns: 1fr; gap: .1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .contact, .site-footer, .hero-actions { display: none; }
  .reveal { opacity: 1; transform: none; }
  body { background: #fff; color: #000; }
}
