/* ==========================================================================
   Amaan Draws — site styles
   Colours come from the logo: pastel sky blue (#9cced5) and soft gray (#a2a4a3).
   The light sky blue is used for shapes and backgrounds only; the deeper
   teal below is used for text and links so everything stays readable.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand */
  --sky: #9cced5;          /* logo blue — shapes, fills, accents */
  --sky-deep: #86c1ca;     /* hover state for sky fills */
  --sky-200: #cfe7eb;
  --mist: #eef6f7;         /* palest blue — panels and mats */
  --gray-brand: #a2a4a3;   /* logo gray — decorative only */

  /* Neutrals */
  --paper: #fbfaf7;        /* warm off-white page background */
  --surface: #ffffff;
  --line: #e3e9ea;
  --ink: #213034;          /* body text */
  --ink-soft: #55656a;     /* secondary text (≥ 4.5:1 on paper) */
  --teal: #2b6b74;         /* links, accents in text (≥ 5.5:1 on paper) */
  --teal-strong: #1d525a;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & motion */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(33, 48, 52, 0.06), 0 2px 8px rgba(33, 48, 52, 0.05);
  --shadow: 0 2px 4px rgba(33, 48, 52, 0.05), 0 12px 32px rgba(33, 48, 52, 0.09);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; text-wrap: pretty; }

a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-strong); text-decoration-thickness: 2px; }

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

::selection { background: var(--sky-200); }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* Hand-drawn squiggle under a highlighted word */
.squiggle {
  position: relative;
  white-space: nowrap;
  padding-bottom: 0.08em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5c10-6 18-6 28 0s18 6 28 0 18-6 28 0 18 6 32-1.5' fill='none' stroke='%239cced5' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E")
    bottom left / 100% 0.32em no-repeat;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--sky);
}

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 38em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.7em 1.35em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn--primary { background: var(--sky); color: var(--ink); box-shadow: 0 4px 14px rgba(110, 175, 186, 0.35); }
.btn--primary:hover { background: var(--sky-deep); color: var(--ink); }

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

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand { display: block; flex: none; border-radius: 8px; }
.brand img {
  height: 58px;
  width: auto;
  /* The logo is a JPEG on white; multiply lets the warm page colour show through. */
  mix-blend-mode: multiply;
}

.nav ul {
  display: flex;
  gap: clamp(2px, 1vw, 8px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--mist); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5c8-4 12-4 19 0s12 4 19 0 12-4 18 0' fill='none' stroke='%239cced5' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}

@media (max-width: 520px) {
  .site-header__inner { min-height: 64px; }
  .brand img { height: 42px; }
  .nav a { padding: 8px 10px; font-size: 0.95rem; }
  .nav a[aria-current="page"]::after { left: 10px; right: 10px; bottom: 2px; }
}
@media (max-width: 360px) {
  .brand img { height: 34px; }
  .nav a { padding: 8px 7px; font-size: 0.9rem; }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(64px, 10vw, 120px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 28px;
}
.site-footer p { margin: 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer__links a { color: var(--ink-soft); text-decoration: none; }
.site-footer__links a:hover { color: var(--teal); text-decoration: underline; }

/* ---------- Page header (Portfolio / Contact) ---------- */

.page-head { padding-block: clamp(40px, 7vw, 80px) clamp(24px, 4vw, 40px); }
.page-head h1 { margin-bottom: 0.35em; }

/* ---------- About: hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(40px, 8vw, 96px) clamp(48px, 8vw, 96px);
  overflow: hidden;
}
/* sketchbook dot grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(156, 206, 213, 0.45) 1.2px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 70% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero h1 { margin-bottom: 0.45em; }
.hero .lead { margin-bottom: 1.8em; }

.hero__art {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
}
.hero__art::before {               /* soft blob behind the avatar */
  content: "";
  position: absolute;
  inset: -8% -10% -6% -6%;
  background: var(--mist);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  transform: rotate(-6deg);
}
.hero__avatar {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 8px solid var(--surface);
}
.doodle { position: absolute; color: var(--sky); pointer-events: none; }
.doodle--star { width: 44px; top: -2%; left: 2%; transform: rotate(-12deg); }
.doodle--spark { width: 30px; bottom: 8%; right: -4%; color: var(--gray-brand); }
.doodle--pencil { width: 70px; bottom: -4%; left: -6%; transform: rotate(-24deg); }

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; width: min(62%, 260px); justify-self: start; margin-left: 8px; }
  .doodle--pencil { width: 52px; }
}

/* ---------- About: story ---------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
  padding-block: clamp(24px, 4vw, 48px);
}
.story__text p { font-size: 1.08rem; max-width: 36em; }

.glance {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
/* a strip of "washi tape" holding the card */
.glance::before {
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  width: 92px; height: 24px;
  background: rgba(156, 206, 213, 0.6);
  border-radius: 3px;
  transform: translateX(-50%) rotate(-3deg);
}
.glance h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.glance dl { margin: 0; display: grid; gap: 16px; }
.glance dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.glance dd { margin: 2px 0 0; }

@media (max-width: 820px) {
  .story { grid-template-columns: 1fr; }
}

/* ---------- Call-to-action band ---------- */

.cta {
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(32px, 5vw, 56px);
  background: var(--mist);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta h2 { margin: 0 0 0.2em; }
.cta p { margin: 0; color: var(--ink-soft); }

/* ---------- Portfolio: filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(24px, 4vw, 36px);
  padding: 0;
  list-style: none;
}
.filters button {
  min-height: 40px;
  padding: 6px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filters button:hover { border-color: var(--sky); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--ink); font-weight: 600; }

/* ---------- Portfolio: gallery grid ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: dense; /* fills gaps left beside full-width featured projects */
  gap: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.gallery > li { min-width: 0; }
.gallery > li[hidden] { display: none; }
@media (min-width: 640px) { .gallery > li.is-featured { grid-column: 1 / -1; } }

.gallery-status {
  padding: 40px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ink-soft);
}

.work { margin: 0; }

/* The "mat": every artwork sits whole inside this frame — never cropped. */
.work__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.is-featured .work__frame { aspect-ratio: 16 / 9; max-height: 72vh; width: 100%; }
@media (max-width: 639px) { .is-featured .work__frame { aspect-ratio: 4 / 3; } }

.work:hover .work__frame { box-shadow: var(--shadow); transform: translateY(-3px); }

.work__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s var(--ease);
}
.work__slide { flex: 0 0 100%; height: 100%; }

.work__view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 7%;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.work__view:focus-visible { outline-offset: -6px; border-radius: var(--radius); }

.work__view img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(33, 48, 52, 0.14));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.work__view img.is-loaded { opacity: 1; }

.work__error {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 0 12px;
}
.work__error code { font-size: 0.85em; word-break: break-all; }

.badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

/* Carousel arrows */
.work__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.work__arrow svg { width: 20px; height: 20px; }
.work__arrow--prev { left: 10px; }
.work__arrow--next { right: 10px; }
.work__frame:hover .work__arrow,
.work__arrow:focus-visible { opacity: 1; }
.work__arrow:hover { background: #fff; transform: scale(1.06); }

/* Caption */
.work__caption { padding: 16px 4px 0; }
.work__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.work__title { margin: 0; font-size: 1.22rem; }
.work__tag {
  flex: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.work__text { margin: 0; color: var(--ink-soft); font-size: 0.98rem; max-width: 46em; }

/* Carousel position: dots + counter */
.work__pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 0;
}
.dots { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.dots button {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dots button::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--sky-200);
  transition: width 0.25s var(--ease), background-color 0.25s var(--ease);
}
.dots button:hover::before { background: var(--sky); }
.dots button[aria-current="true"]::before { width: 22px; background: var(--teal); }
.dots button:focus-visible { outline-offset: 0; }
.counter { font-size: 0.85rem; font-variant-numeric: tabular-nums; color: var(--ink-soft); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(244, 248, 249, 0.99);
  color: var(--ink);
}
.lightbox::backdrop { background: rgba(33, 48, 52, 0.4); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: fade-in 0.25s var(--ease); }

.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(56px, 7vw, 72px) clamp(16px, 8vw, 96px) 12px;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.lightbox__bar {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 12px var(--gutter) max(20px, env(safe-area-inset-bottom));
  text-align: center;
}
.lightbox__title { margin: 0; font-size: 1.1rem; }
.lightbox__count { font-size: 0.9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.lightbox__close,
.lightbox__arrow {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.lightbox__close:hover,
.lightbox__arrow:hover { transform: scale(1.06); }
.lightbox__close svg,
.lightbox__arrow svg { width: 22px; height: 22px; }
.lightbox__close { top: 12px; right: 12px; z-index: 3; }
.lightbox__arrow { top: 50%; margin-top: -24px; z-index: 2; }
.lightbox__arrow--prev { left: 12px; }
.lightbox__arrow--next { right: 12px; }
.lightbox__arrow[hidden] { display: none; }

@media (max-width: 640px) {
  .lightbox__arrow { top: auto; bottom: 8px; margin-top: 0; }
  .lightbox__stage { padding-bottom: 64px; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

.email-card {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.email-card::after {               /* little sky-blue corner circle, echoing the logo */
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--mist);
  pointer-events: none;
}
.email-card > * { position: relative; z-index: 1; }
.email-card .label {
  font-family: var(--font-body);
  font-variation-settings: normal;
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.email-link {
  display: inline-block;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.45rem, 3.4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  text-decoration-color: var(--sky);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}
.email-link:hover { color: var(--teal-strong); text-decoration-color: var(--teal); text-decoration-thickness: 3px; }

.copy-status { margin: 8px 0 -8px; min-height: 1.5em; font-size: 0.92rem; color: var(--teal); }

.open-to { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.open-to li { display: flex; gap: 12px; align-items: flex-start; }
.open-to li::before {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--sky);
}

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 18px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.socials a:hover { border-color: var(--sky); transform: translateY(-1px); }
.socials .icon {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--teal);
}
.socials .icon svg { width: 18px; height: 18px; }
.socials small { color: var(--ink-soft); font-size: 0.88rem; }

.side-block + .side-block { margin-top: 36px; }
.side-block h2 { font-size: 1.3rem; }

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-block: clamp(56px, 10vw, 120px) 0;
}
.not-found img {
  width: 160px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  transform: rotate(-8deg);
}
.not-found .lead { margin-inline: auto; margin-bottom: 1.8em; }
.not-found .btn-row { justify-content: center; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .work:hover .work__frame, .btn:hover, .socials a:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .work__arrow, .work__pager .dots { display: none; }
}
