/* Muhammad Atiq — portfolio v3
   Light bento system: soft grey canvas, white rounded cards, bold Inter,
   one orange accent. Self-hosted Inter variable font, no external requests. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2f2f0;
  --card: #ffffff;
  --card-soft: #fafaf8;
  --ink: #101012;
  --ink-2: #3d3d3b;
  --muted: #76766f;
  --dim: #bcbcb6;
  --line: #e8e8e4;
  --accent: #ee5f06;
  --accent-dark: #bc4a00;
  --accent-soft: #fff1e6;
  --green: #22c064;
  --night: #111113;
  --radius: 26px;
  --radius-sm: 18px;
  --shadow: 0 1px 2px rgb(16 16 18 / 0.02), 0 20px 44px -34px rgb(16 16 18 / 0.18);
  --shadow-hover: 0 2px 4px rgb(16 16 18 / 0.03), 0 28px 56px -34px rgb(16 16 18 / 0.26);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 74rem;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: #fff; }
a { color: var(--ink); text-underline-offset: 0.18em; }

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

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

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4.5rem;
  z-index: 130;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

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

.site-header { position: relative; z-index: 60; }
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem 0.4rem;
}
.brand-group { display: flex; align-items: center; gap: 0.9rem; }
.brand { display: inline-flex; align-items: flex-start; color: var(--ink); text-decoration: none; }
.brand-mark { display: block; transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 3px; margin-top: 20px; }
.header-email {
  font-weight: 560;
  font-size: 0.98rem;
  text-decoration: underline;
  text-decoration-color: var(--dim);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.28em;
  transition: text-decoration-color 0.2s ease;
}
.header-email:hover { text-decoration-color: var(--accent); }

.nav-toggle {
  position: relative;
  z-index: 70;
  width: 3.1rem; height: 3.1rem;
  border: none;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-toggle:hover { transform: scale(1.05); box-shadow: var(--shadow-hover); }
.nav-toggle-line { display: block; width: 1.15rem; height: 2.4px; border-radius: 2px; background: var(--ink); transition: transform 0.25s ease, width 0.2s ease; }
.nav-toggle-line-short { width: 0.8rem; align-self: center; margin-left: 0.35rem; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child { transform: translateY(3.7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line-short { transform: translateY(-3.7px) rotate(-45deg); width: 1.15rem; margin-left: 0; }

.primary-nav {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  width: min(19rem, calc(100vw - 2.5rem));
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--line);
  padding: 0.9rem;
  display: none;
}
.primary-nav.is-open { display: block; animation: menu-in 0.25s cubic-bezier(0.22, 0.61, 0.36, 1); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav ul a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 580;
  font-size: 1.02rem;
  transition: background 0.15s ease;
}
.primary-nav ul a:hover, .primary-nav ul a.is-active { background: var(--card-soft); }
.nav-cta {
  display: block;
  margin-top: 0.6rem;
  text-align: center;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 620;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--accent); color: #fff; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.6rem, 6vw, 4.5rem) clamp(3rem, 6vw, 4.5rem); }

.hero-title {
  margin: 0;
  font-size: clamp(2.55rem, 6.4vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.12;
  max-width: 13.5em;
}
.hero-line { display: block; }
.hero-title .dim { color: var(--dim); }
.hero-title .accent { color: var(--accent); }
.hero-photo {
  display: inline-block;
  width: 1.5em;
  height: 0.84em;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 999px;
  vertical-align: baseline;
  transform: translateY(0.1em);
  border: 3px solid #fff;
  box-shadow: 0 12px 26px -8px rgb(16 16 18 / 0.4);
  margin-inline: 0.04em;
}
.open-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  vertical-align: middle;
  margin-left: 0.7rem;
  padding: 0.55rem 1.05rem;
  border: 1.5px solid #e2e2de;
  border-radius: 999px;
  background: var(--card);
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 8px 20px -12px rgb(16 16 18 / 0.25);
}
.open-dot {
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(34 192 100 / 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgb(34 192 100 / 0.2); } 50% { box-shadow: 0 0 0 6px rgb(34 192 100 / 0.08); } }

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.button {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 640;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.25s ease;
}
.button:active { transform: scale(0.97); }
.button-dark { background: var(--ink); color: #fff; box-shadow: 0 18px 32px -16px rgb(16 16 18 / 0.55); }
.button-dark:hover { background: var(--accent); color: #fff; box-shadow: 0 18px 32px -14px rgb(238 95 6 / 0.55); }
.hero-cta-text { margin: 0; max-width: 26rem; font-size: 1.08rem; font-weight: 520; color: var(--ink-2); line-height: 1.5; }

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: clamp(2.8rem, 6vw, 4.2rem);
}
.bento-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease;
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-label {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.32rem 0.75rem;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.bento-big { margin: 0; font-size: 1.28rem; font-weight: 720; letter-spacing: -0.02em; line-height: 1.3; }
.bento-sub { margin: 0.45rem 0 0; font-size: 0.92rem; color: var(--muted); line-height: 1.55; }
.bento-sub a { font-weight: 620; text-decoration-color: var(--accent); }

.bento-exp { grid-column: span 2; }
.mini-timeline { list-style: none; margin: 0.2rem 0 0; padding: 0 0 0 1.05rem; position: relative; }
.mini-timeline::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.mini-timeline li { position: relative; padding-block: 0.42rem; }
.mini-timeline li::before {
  content: "";
  position: absolute;
  left: -1.05rem; top: 0.95rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-1px);
}
.mini-timeline li:first-child::before { background: var(--accent); }
.mini-role { margin: 0; font-weight: 640; font-size: 0.98rem; letter-spacing: -0.015em; line-height: 1.35; }
.mini-meta { margin: 0.1rem 0 0; font-size: 0.82rem; color: var(--muted); }

.bento-dong { grid-column: span 2; }
.dong-shot {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.15rem;
  box-shadow: 0 14px 30px -20px rgb(16 16 18 / 0.35);
}
.dong-shot img { width: 100%; height: 7.6rem; object-fit: cover; object-position: top center; display: block; transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.bento-dong:hover .dong-shot img { transform: scale(1.04); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.chip-row li { font-size: 0.72rem; font-weight: 620; color: var(--ink-2); background: var(--card-soft); border: 1px solid var(--line); padding: 0.26rem 0.6rem; border-radius: 999px; }

.bento-study { grid-column: span 2; }
.study-book {
  margin-top: 1.3rem;
  height: 6.2rem;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--accent), #ff8a3d);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.15rem;
  transform: rotate(-2deg);
  box-shadow: 0 18px 30px -14px rgb(238 95 6 / 0.6);
  transition: transform 0.3s ease;
}
.bento-study:hover .study-book { transform: rotate(0deg) translateY(-3px); }
.study-book-title { font-size: 1.9rem; font-weight: 850; letter-spacing: 0.06em; line-height: 1; }
.study-book-sub { font-size: 0.78rem; font-weight: 560; opacity: 0.85; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3rem; }

.bento-map { grid-column: span 2; display: flex; flex-direction: column; }
.bento-map .card-label, .bento-process .card-label { align-self: flex-start; }
.map-art { width: calc(100% + 3rem); margin: -0.6rem -1.5rem 0.9rem; height: 8.6rem; }
.map-name { margin: auto 0 0; font-size: 1.45rem; font-weight: 800; letter-spacing: 0.32em; text-align: center; }
.map-sub { margin: 0.35rem 0 0; text-align: center; font-size: 0.68rem; font-weight: 560; letter-spacing: 0.14em; color: var(--muted); }

.bento-process { grid-column: span 4; display: flex; flex-direction: column; }
.process-stage { min-height: 7.6rem; }
.process-title { margin: 0; font-size: 1.55rem; font-weight: 760; letter-spacing: -0.025em; }
.process-body { margin: 0.6rem 0 0; color: var(--ink-2); font-size: 1rem; line-height: 1.6; max-width: 34rem; }
.process-stage.swap .process-title, .process-stage.swap .process-body { animation: fade-swap 0.35s ease; }
@keyframes fade-swap { from { opacity: 0; transform: translateY(6px); } }
.process-tabs {
  display: flex;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.35rem;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.process-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.62rem 0.5rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.process-tab:hover { color: var(--ink); }
.process-tab.is-active { background: var(--ink); color: #fff; box-shadow: 0 10px 20px -10px rgb(16 16 18 / 0.5); }

.bento-numbers { grid-column: 1 / -1; padding-block: 1.3rem; }
.numbers-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 2rem; margin: 0; }
.numbers-row > div { display: flex; flex-direction: column; gap: 0.1rem; }
.numbers-row dd { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 820; letter-spacing: -0.03em; line-height: 1; }
.numbers-row dt { font-size: 0.85rem; color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.section-head { margin-bottom: 2.2rem; }
.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.033em;
  line-height: 1.1;
}
.section-intro { margin: 0.9rem 0 0; max-width: 35rem; color: var(--ink-2); font-size: 1.05rem; }

/* ---------- Work ---------- */

.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.work-card-featured { grid-column: 1 / -1; flex-direction: row; }
.work-card-featured .cover { flex: 0 0 44%; min-height: 100%; aspect-ratio: auto; }
.work-card-featured .work-card-body { justify-content: center; }

.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #17171c; color: #b9b3e8; }
.cover svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.work-card:hover .cover svg { transform: scale(1.05); }
.cover-dong { background: linear-gradient(150deg, #262270, #14113a); color: #a49ee0; }
.cover-health { background: linear-gradient(150deg, #0f3d3a, #0a2426); color: #7fd1c0; }
.cover-fillbs { background: linear-gradient(150deg, #3d2a6e, #1d1440); color: #c4aef5; }
.cover-agri { background: linear-gradient(150deg, #274d1d, #12240e); color: #a5d68f; }
.cover-fypms { background: linear-gradient(150deg, #5d4712, #2e230a); color: #e8c96a; }
.cover-kognit { background: linear-gradient(150deg, #173d5c, #0d2036); color: #8fc3e8; }
.cover-sector {
  position: absolute;
  left: 1.1rem; bottom: 1rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.92);
  padding: 0.35rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 999px;
}

.work-card-body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; }
.work-meta { margin: 0 0 0.6rem; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark); }
.work-title { margin: 0; font-size: 1.42rem; line-height: 1.26; letter-spacing: -0.022em; font-weight: 740; }
.work-title a { text-decoration: none; }
.work-title a:hover { color: var(--accent-dark); }
.work-arrow { display: inline-block; font-size: 0.72em; color: var(--accent); transition: transform 0.25s ease; }
.work-title a:hover .work-arrow { transform: translate(3px, -3px); }
.work-body { margin: 0.8rem 0 0; color: var(--ink-2); font-size: 0.98rem; }
.work-outcome { margin: 0.95rem 0 0; padding-left: 0.95rem; border-left: 3px solid var(--accent); color: var(--ink); font-size: 0.96rem; font-weight: 540; }
.work-outcome strong { font-weight: 760; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.tag-list li { font-size: 0.78rem; font-weight: 580; color: var(--ink-2); background: var(--card-soft); border: 1px solid var(--line); padding: 0.28rem 0.65rem; border-radius: 999px; }

.more-work { margin-top: 2.6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem; }
.more-work h3 { margin: 0 0 0.4rem; font-size: 1.35rem; font-weight: 760; letter-spacing: -0.02em; }
.more-work-list { margin: 0; padding: 0; list-style: none; }
.more-work-list li {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 0.3rem 2rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.97rem;
}
.more-work-list a, .more-work-list strong { font-weight: 660; text-decoration-color: var(--accent); }
.more-work-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- About / Expertise / Experience cards ---------- */

.about-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: clamp(2rem, 5vw, 4rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.about-copy h2 { margin: 0 0 1.2rem; font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.14; }
.about-lead { font-size: 1.16rem; font-weight: 580; color: var(--ink); }
.about-copy p { margin: 0 0 1.05rem; color: var(--ink-2); }
.about-copy p:last-child { margin-bottom: 0; }
.about-facts { background: var(--card-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.4rem 1.4rem 0.6rem; align-self: start; }
.about-facts dl { margin: 0; }
.about-facts dl > div { padding-block: 0.7rem; border-top: 1px solid var(--line); }
.about-facts dl > div:first-child { border-top: none; padding-top: 0.1rem; }
.about-facts dt { font-size: 0.72rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 0.2rem; }
.about-facts dd { margin: 0; font-weight: 560; font-size: 0.95rem; line-height: 1.5; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.expertise-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.7rem;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease;
}
.expertise-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.expertise-num { margin: 0 0 0.7rem; font-size: 0.85rem; font-weight: 800; color: var(--accent); letter-spacing: 0.06em; }
.expertise-card h3 { margin: 0 0 0.9rem; font-size: 1.45rem; font-weight: 760; letter-spacing: -0.022em; }
.expertise-card ul { margin: 0; padding: 0; list-style: none; }
.expertise-card li { padding-block: 0.5rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.96rem; }
.expertise-card li:first-child { border-top: none; }

.experience-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12.5rem;
  gap: 0.5rem 2.5rem;
  padding-block: 1.45rem;
  border-top: 1px solid var(--line);
}
.timeline-item:first-child { border-top: none; padding-top: 0.3rem; }
.timeline-item:last-child { padding-bottom: 0.3rem; }
.timeline-body h3 { margin: 0 0 0.45rem; font-size: 1.22rem; font-weight: 720; letter-spacing: -0.02em; }
.timeline-company { color: var(--accent-dark); }
.timeline-body p { margin: 0; color: var(--ink-2); max-width: 42rem; font-size: 0.98rem; }
.timeline-date { margin: 0.25rem 0 0; font-size: 0.86rem; font-weight: 600; color: var(--muted); text-align: right; white-space: nowrap; }

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

.contact-card {
  background: var(--night);
  color: #fff;
  border-radius: 32px;
  padding: clamp(2rem, 5vw, 3.6rem);
  box-shadow: 0 40px 80px -40px rgb(16 16 18 / 0.6);
}
.card-label-dark { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.16); color: #e8e8e4; }
.contact-title { margin: 0; font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 820; letter-spacing: -0.035em; line-height: 1.08; }
.contact-title .accent { color: var(--accent); }
.contact-lead { margin: 1.1rem 0 0; color: #b9b9b4; font-size: 1.06rem; max-width: 32rem; }
.contact-directory { margin: 2.4rem 0 0; padding: 0; list-style: none; border-top: 1px solid rgb(255 255 255 / 0.14); }
.contact-directory a {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr) 2rem;
  align-items: baseline;
  gap: 0.8rem 2rem;
  padding-block: 1.2rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
  text-decoration: none;
  color: #fff;
  transition: padding-left 0.25s ease;
}
.contact-directory a:hover { padding-left: 0.7rem; }
.contact-kind { font-size: 0.74rem; font-weight: 650; letter-spacing: 0.13em; text-transform: uppercase; color: #a9a9a3; }
.contact-value { font-size: clamp(1.3rem, 3.2vw, 2rem); font-weight: 740; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.contact-arrow { font-size: 1.25rem; color: var(--accent); transition: transform 0.25s ease; }
.contact-directory a:hover .contact-arrow { transform: translate(3px, -3px); }

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

.site-footer { padding-block: 0.6rem 2.6rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: var(--ink-2); text-decoration: none; font-weight: 560; }
.footer-nav a:hover { color: var(--accent-dark); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  margin: 1.6rem 0 0;
  font-size: 0.92rem;
  font-weight: 540;
  color: var(--muted);
}
.hero-meta span + span::before { content: "·"; margin-inline: 0.65rem; color: var(--dim); }

.cover-photo { background: #0d0d12; }
.cover-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.work-card:hover .cover-photo img { transform: scale(1.03); }
.cover-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(10 10 14 / 0.35), transparent 45%);
  pointer-events: none;
}
.cover-photo .cover-sector { z-index: 1; background: rgb(13 13 18 / 0.45); backdrop-filter: blur(4px); }

.work-detail {
  margin: 0 0 0.2rem;
  font-size: 0.83rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.about-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 14px;
  margin-bottom: 1.15rem;
}

.contact-note { margin: 1.6rem 0 0; color: #8f8f8a; font-size: 0.94rem; }

/* ---------- Reveal ---------- */

.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 62rem) {
  .bento-exp, .bento-dong, .bento-study { grid-column: span 3; }
  .bento-map { grid-column: span 2; }
  .bento-process { grid-column: span 4; }
  .expertise-grid { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 1fr; }
  .about-facts { max-width: 26rem; }
}

@media (max-width: 47rem) {
  .bento { grid-template-columns: 1fr; }
  .bento-exp, .bento-dong, .bento-study, .bento-map, .bento-process { grid-column: 1 / -1; }
  .numbers-row { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .work-card-featured { flex-direction: column; }
  .work-card-featured .cover { flex: none; aspect-ratio: 16 / 9; }
  .more-work-list li { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.2rem; }
  .timeline-date { text-align: left; order: -1; }
  .contact-directory a { grid-template-columns: 1fr 2rem; }
  .contact-kind { grid-column: 1 / -1; }
  .hero-cta { gap: 1rem; }
  .header-email { display: none; }
  .process-tabs { flex-wrap: wrap; border-radius: 20px; }
  .process-tab { flex: 1 1 40%; }
}

@media print {
  .site-header, .process-tabs { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .contact-card { background: #fff; color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
  .contact-lead, .contact-kind { color: var(--ink-2); }
  .contact-directory a { color: var(--ink); border-color: var(--line); }
  body { background: #fff; }
}

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