/* ==========================================================
   Nicole Wolovitz — landing page
   Palette pulled from the portrait: olive shirt, dusk clouds,
   one sunset ember used only for the "flow" and key actions.
   ========================================================== */

:root {
  --paper: #f3f5f0;
  --paper-2: #e7ebe1;
  --ink: #18231d;
  --ink-soft: #46534b;
  --olive: #4e5d32;
  --olive-soft: #d9e0c9;
  --dusk: #9b94c2;
  --ember: #f08a24;
  --ember-deep: #c4620a;
  --line: #cfd5c7;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;

  /* type scale (1.25) */
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem);
  --fs-hero: clamp(2.9rem, 1.6rem + 6.2vw, 6.25rem);

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; }

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

[data-lucide], .lucide {
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2;
  flex-shrink: 0;
}

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: 0 1.4em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--olive); }

.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header (wireframe: Menu dropdown left, Contact me right) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.menu { position: relative; justify-self: start; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 44px;
  padding: 0 14px 0 12px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font: 600 .95rem/1 var(--font-body);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.menu-toggle:hover { border-color: var(--ink); }
.menu-chevron { width: 1em; height: 1em; transition: transform .25s; }
.menu-toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.menu-toggle[aria-expanded="true"] .menu-chevron { transform: rotate(180deg); }

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px -18px rgba(24, 35, 29, .35);
  padding: 8px;
  transform-origin: top left;
  animation: menu-in .18s ease-out;
}
.menu-panel[hidden] { display: none; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
}
.menu-panel a:hover { background: var(--paper-2); }
.menu-panel a [data-lucide], .menu-panel a .lucide { color: var(--olive); }

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  line-height: 1.15;
}

.btn-header { justify-self: end; min-height: 44px; padding: 0 1.1em; background: var(--ember); color: var(--ink); }
.btn-header:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero (wireframe: picture) ---------- */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }

.hero-grid {
  display: grid;
  justify-items: center;
  gap: clamp(44px, 5vw, 56px);
  text-align: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait {
  position: relative;
  margin: 0 auto;
  width: min(78vw, 360px);
}
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  background: var(--paper-2);
}
.portrait-tag {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
}
.portrait-tag .lucide { color: var(--ember); }

.hero-title { margin: 0; }
.hero-name {
  display: block;
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: .92;
}
.hero-sub {
  display: block;
  margin-top: clamp(12px, 1.5vw, 18px);
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--olive);
}

.focus-list {
  list-style: none;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
}
.focus-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--olive-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.focus-list .lucide { color: var(--olive); }

.hero-actions {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 960px) {
  .hero { padding-top: 40px; }
  .portrait { width: 280px; }
}

/* ---------- About me ---------- */
.about { padding: 0 0 clamp(72px, 9vw, 128px); }

.about-grid {
  display: grid;
  gap: 32px;
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.section-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 20px;
}

.path-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* career path: a small vertical workflow line */
.path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  position: relative;
}
.path::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}
.path li {
  position: relative;
  padding-left: 28px;
  font-weight: 500;
}
.path li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--olive);
}
.path .path-now { font-weight: 700; }
.path .path-now::before { background: var(--ember); border-color: var(--ember); }

.about-text { max-width: 64ch; color: var(--ink-soft); }
.about-text p + p { margin-top: 1em; }
.about-text strong { color: var(--ink); font-weight: 600; }
.about-text .lead {
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--ink);
}
.about-text .about-closer {
  margin-top: 1.4em;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

@media (min-width: 960px) {
  .about-grid { grid-template-columns: 400px 1fr; gap: 80px; }
}

/* ---------- Services: three equal stages on one workflow line ---------- */
.services {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 9vw, 120px) 0 calc(clamp(64px, 9vw, 120px) + clamp(28px, 4vw, 48px));
  border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
}
.section-title-light { color: var(--paper); margin-bottom: clamp(32px, 5vw, 56px); }

.flow {
  --node: 18px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 36px;
  display: grid;
  gap: 20px;
}

/* the connecting line */
.flow::before {
  content: "";
  position: absolute;
  left: calc(var(--node) / 2 - 1px);
  top: 34px;
  bottom: 34px;
  width: 2px;
  background: linear-gradient(var(--ember), var(--dusk));
  transform-origin: top;
  transform: scaleY(var(--flow-progress, 1));
  transition: transform 1.2s cubic-bezier(.65, 0, .35, 1);
}

.stage { position: relative; }

.stage-node {
  position: absolute;
  left: -36px;
  top: 34px;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--ember);
}

.stage-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #223029;
  border: 1px solid #2f3e35;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.stage-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(240, 138, 36, .14);
  color: var(--ember);
}
.stage-icon .lucide { width: 24px; height: 24px; }

.stage-card h3 {
  font-size: clamp(1.3rem, 1.1rem + .6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.12;
}

.stage-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
  color: rgba(243, 245, 240, .85);
}
.stage-meta .lucide { margin-top: .1em; }
.stage-meta .lucide { color: var(--ember); }

.includes {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #2f3e35;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: rgba(243, 245, 240, .7);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  flex: 1;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
  color: rgba(243, 245, 240, .9);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(240, 138, 36, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f08a24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.stage-link {
  margin-top: 28px;
  align-self: flex-start;
  justify-self: start;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--ember);
  transition: color .2s;
}
.stage-link:hover { color: var(--ember); }

@media (min-width: 960px) {
  /* subgrid: title, duration, list and link line up across all three cards */
  .flow {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, auto);
    column-gap: 24px;
    row-gap: 0;
    padding: 44px 0 0;
  }
  .stage {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
  }
  .stage-card {
    grid-row: 1 / -1;
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .flow::before {
    left: calc(100% / 6);
    right: calc(100% / 6);
    top: calc(var(--node) / 2 - 1px);
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--ember), var(--dusk));
    transform-origin: left;
    transform: scaleX(var(--flow-progress, 1));
  }
  .stage-node {
    left: 50%;
    top: -44px;
    transform: translateX(-50%);
  }
  .stage:last-child .stage-node { border-color: var(--dusk); }
  .stage-link { align-self: end; }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--paper);
  padding: clamp(64px, 9vw, 120px) 0;
  border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
  margin-top: calc(-1 * clamp(28px, 4vw, 48px));
  position: relative;
}

.contact-panel {
  display: grid;
  gap: 32px;
  align-items: center;
  background: var(--olive-soft);
  border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(28px, 5vw, 64px);
}

.contact-intro p {
  color: var(--ink-soft);
  font-size: var(--fs-md);
  line-height: 1.5;
  max-width: 34ch;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 20px;
  box-shadow: 0 24px 48px -32px rgba(24, 35, 29, .45);
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-person picture { flex-shrink: 0; }
.contact-person img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.contact-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.contact-role { font-size: var(--fs-sm); color: var(--ink-soft); }

.contact-email {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1.5px solid var(--line);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  transition: border-color .2s, background-color .2s;
}
.contact-email span { min-width: 0; }
.contact-email .lucide {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--ember);
  color: var(--ink);
}
.contact-email:hover { border-color: var(--ink); background: #fff; }

.copy-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: 600 .95rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.copy-mail:hover { background: var(--ink); color: var(--paper); }
.copy-mail .lucide-check { display: none; }
.copy-mail.is-copied { background: var(--olive); border-color: var(--olive); color: #fff; }
.copy-mail.is-copied .lucide-check { display: block; }
.copy-mail.is-copied .lucide-copy { display: none; }

.contact-panel {
  grid-template-areas: "intro" "form" "card";
  align-items: start;
}
.contact-intro { grid-area: intro; }
.contact-card { grid-area: card; }
.contact-form { grid-area: form; }

/* form */
.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 36px);
  display: grid;
  gap: 18px;
  box-shadow: 0 24px 48px -32px rgba(24, 35, 29, .45);
}

.field-row { display: grid; gap: 18px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: 8px;
}
.optional { font-weight: 400; color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body); /* 16px keeps iOS from zooming */
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--olive);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(78, 93, 50, .18);
}
.field [aria-invalid="true"] { border-color: #b3261e; }

.select-wrap { position: relative; }
.select-wrap select { padding-right: 44px; cursor: pointer; }
.select-wrap .lucide {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink-soft);
}

.field-error {
  color: #b3261e;
  font-size: var(--fs-sm);
  margin-top: 6px;
}
.field-error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn-submit { width: 100%; min-height: 54px; }
.btn-submit[disabled] { opacity: .6; cursor: progress; }

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--olive-soft);
  font-weight: 500;
}
.form-success[hidden] { display: none; }
.form-success .lucide { color: var(--olive); margin-top: .15em; }

@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .btn-submit { width: auto; justify-self: start; }
}

@media (min-width: 960px) {
  .contact-panel {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "intro form" "card form";
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    row-gap: 32px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink); text-decoration: underline; }
.to-top { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Small screens ---------- */
@media (max-width: 559px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .wordmark { justify-self: center; font-size: .95rem; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-toggle { padding: 0 10px; }
  .btn-header { padding: 0 .95em; font-size: .9rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contact-panel { padding: 24px 20px; }
  .contact-card { padding: 16px; }
  .contact-email { padding: 12px 14px; gap: 10px; font-size: 1rem; }
  .contact-email .lucide { width: 34px; height: 34px; padding: 8px; }
  .to-top { margin-left: 0; }
}

@media (max-width: 340px) {
  .wordmark { display: none; }
  .header-inner { grid-template-columns: auto 1fr; }
}

/* ---------- Load sequence (one orchestrated moment) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .portrait,
  .js .hero-title {
    animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
  }
  .js .hero-title { animation-delay: .15s; }
  .js .flow:not(.is-drawn) { --flow-progress: 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

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