/* =========================================================
   Sondos A. — Portfolio
   Design: minimalist editorial (Inter, grid, generous whitespace)
   Palette: warm beige / taupe, light mode, calm
   Self-contained. No runtime dependencies (only Inter webfont).
   ========================================================= */

:root {
  /* Warm, calm palette */
  --bg: #f5f1ea;            /* warm cream background */
  --surface: #fbf9f5;       /* lighter card surface */
  --surface-alt: #efe9df;   /* subtle alt band */
  --ink: #2b2724;           /* warm near-black (not pure black) */
  --ink-soft: #5c544c;      /* body text */
  --muted: #8a8178;         /* taupe gray, metadata */
  --line: #e3daccf2;        /* hairline borders */
  --line-strong: #d6ccbd;
  --accent: #9c8264;        /* warm taupe / mocha accent */
  --accent-deep: #7d6750;

  --edge: clamp(20px, 6vw, 80px);
  --section-gap: clamp(80px, 14vh, 160px);
  --maxw: 1180px;

  --t: 220ms cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Top navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--edge);
}
.nav__brand { font-weight: 600; letter-spacing: -0.01em; color: var(--ink); font-size: 17px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); transition: color var(--t);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); display: inline-flex; align-items: center; gap: 7px;
  transition: opacity var(--t);
}
.nav__cta:hover { opacity: .6; }
.nav__cta svg { width: 13px; height: 13px; }
@media (max-width: 720px) { .nav__links { display: none; } }

/* ---------- Hero — Profile card ---------- */
.hero { padding-top: clamp(120px, 18vh, 190px); padding-bottom: var(--section-gap); }

.profile { display: flex; align-items: center; justify-content: center; }

/* Circular photo */
.profile__photo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: clamp(220px, 34vw, 400px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #e7ddcd, #c9b79c);
  box-shadow: 0 30px 60px -25px rgba(60, 48, 36, 0.45);
}
.profile__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* Source photo is a circular portrait on a dark square — zoom past the dark ring */
  transform: scale(1.13);
  object-position: center 42%;
}

/* Overlapping card */
.profile__card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 40px 80px -40px rgba(60, 48, 36, 0.40);
  max-width: 560px;
  flex: 1;
}
.profile__card .eyebrow { display: block; margin-bottom: 14px; }
.profile__card h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.03em; color: var(--ink); }
.profile__title { margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--accent-deep); }
.profile__desc { margin-top: 22px; color: var(--ink-soft); font-size: clamp(15px, 1.7vw, 17px); }

.profile__social { display: flex; gap: 14px; margin-top: 30px; }
.profile__social a {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  transition: transform var(--t), background var(--t);
}
.profile__social a:hover { background: var(--accent-deep); transform: translateY(-2px); }
.profile__social svg { width: 20px; height: 20px; }

@media (min-width: 861px) {
  .profile__card { margin-left: -72px; }
}
@media (max-width: 860px) {
  .profile { flex-direction: column; text-align: center; gap: 28px; }
  .profile__card {
    margin-top: -64px; width: 100%; border-radius: 24px;
  }
  .profile__title, .profile__desc { margin-inline: auto; }
  .profile__social { justify-content: center; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section-gap); border-top: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; }
.section__head p { max-width: 60ch; color: var(--ink-soft); }

/* About */
.about { display: grid; grid-template-columns: 1fr; gap: 28px; }
.about p { max-width: 70ch; }
.about p + p { color: var(--muted); }
@media (min-width: 860px) {
  .about { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
}

/* Skills grid */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.skill { background: var(--surface); padding: 32px 28px; transition: background var(--t); }
.skill:hover { background: var(--surface-alt); }
.skill__no { font-size: 12px; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; }
.skill h3 { font-size: 20px; margin: 14px 0 8px; }
.skill p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
@media (min-width: 780px) { .skills { grid-template-columns: repeat(3, 1fr); } }

/* Experience / timeline list */
.entry {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 30px 0; border-top: 1px solid var(--line);
  transition: padding-left var(--t);
}
.entry:hover { padding-left: 10px; }
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry__year { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.entry__role { font-size: clamp(20px, 3vw, 26px); font-weight: 600; color: var(--ink); }
.entry__org { color: var(--accent-deep); font-weight: 500; }
.entry__desc { max-width: 68ch; color: var(--ink-soft); margin-top: 6px; font-size: 16px; }
@media (min-width: 860px) {
  .entry { grid-template-columns: 200px 1fr; gap: 40px; align-items: baseline; }
  .entry__year { padding-top: 6px; }
}

/* Contact */
.contact { display: grid; gap: 36px; }
.contact h2 { font-size: clamp(34px, 6vw, 64px); font-weight: 600; letter-spacing: -0.04em; color: var(--ink); max-width: 16ch; }
.contact__links { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.contact__links a {
  font-size: 16px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: border-color var(--t), color var(--t);
}
.contact__links a:hover { border-color: var(--accent); color: var(--accent-deep); }
.contact__links svg { width: 15px; height: 15px; }

/* Footer */
.footer {
  border-top: 1px solid var(--line); padding-block: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }
