:root {
  --ink: #17201b;
  --muted: #68746d;
  --paper: #f3f5f0;
  --paper-2: #fbfcf8;
  --card: #ffffff;
  --line: rgba(23, 32, 27, 0.13);
  --red: #b83b32;
  --green: #2e6f4f;
  --blue: #2869a6;
  --gold: #b1842d;
  --shadow: 0 28px 80px rgba(23, 32, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(46, 111, 79, 0.13), transparent 26%),
    radial-gradient(circle at 86% 8%, rgba(184, 59, 50, 0.1), transparent 24%),
    radial-gradient(circle at 86% 70%, rgba(40, 105, 166, 0.08), transparent 24%),
    linear-gradient(180deg, #fbfcf8 0%, var(--paper) 48%, #e8eee6 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(23, 20, 18, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 20, 18, 0.2) 1px, transparent 1px);
  background-size: 44px 44px;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -20% -36% -20%;
  z-index: -1;
  height: 46vh;
  background: linear-gradient(90deg, rgba(46, 111, 79, 0.12), rgba(184, 59, 50, 0.08), rgba(40, 105, 166, 0.1));
  filter: blur(70px);
  animation: ambient-shift 14s ease-in-out infinite alternate;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 239, 227, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: Outfit, Inter, sans-serif;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: -0.03em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

nav a {
  transition: color 180ms ease;
}

nav a:hover {
  color: var(--ink);
}

.header-cta,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.header-cta,
.primary-btn {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 14px 34px rgba(23, 20, 18, 0.16);
}

.secondary-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.header-cta:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr);
  align-items: center;
  gap: 68px;
  padding-top: 86px;
  padding-bottom: 76px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Outfit, Inter, sans-serif;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 770px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 0.95;
}

h2 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(29px, 3.6vw, 48px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.05;
}

.hero-text,
.section-heading p,
.contact-section p {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-panel {
  display: grid;
  max-width: 520px;
  justify-self: end;
  gap: 14px;
}

.profile-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 30px 30px 26px;
  background:
    radial-gradient(circle at 86% 13%, rgba(255, 221, 82, 0.3), transparent 21%),
    radial-gradient(circle at 0% 90%, rgba(207, 52, 40, 0.42), transparent 36%),
    linear-gradient(135deg, #181412 0%, #463123 48%, #142c21 100%);
  color: #fff8ea;
  box-shadow: var(--shadow);
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 248, 234, 0.14);
  border-radius: 18px;
  pointer-events: none;
}

.profile-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 18px;
  border: 2px solid rgba(255, 248, 234, 0.82);
  object-fit: cover;
  object-position: center 18%;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.profile-card h2 {
  margin-bottom: 6px;
  font-size: 32px;
  line-height: 1;
}

.profile-card p,
.profile-note {
  color: rgba(255, 248, 234, 0.72);
}

.profile-card p {
  margin-bottom: 0;
  line-height: 1.35;
}

.profile-note {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  max-width: 470px;
  font-size: 15px;
  line-height: 1.55;
}

.social-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social-row a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 248, 234, 0.18);
  border-radius: 50%;
  color: rgba(255, 248, 234, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.brand-mark {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.instagram-mark {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.metric-grid div {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 16px 40px rgba(40, 26, 16, 0.07);
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid strong {
  color: var(--ink);
  font-family: Outfit, Inter, sans-serif;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.metric-grid span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  overflow: visible;
  border-block: 1px solid rgba(46, 111, 79, 0.18);
  padding: 24px clamp(18px, 4vw, 54px);
  background:
    linear-gradient(135deg, rgba(46, 111, 79, 0.96), rgba(28, 51, 42, 0.96)),
    #244434;
  color: #f7fbf5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-strip span {
  white-space: nowrap;
  border: 1px solid rgba(247, 251, 245, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 251, 245, 0.84);
  font-size: 12px;
  font-weight: 800;
}

.section-heading {
  display: block;
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading p {
  margin-bottom: 0;
}

.work-heading {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.work-heading h2,
.work-heading p {
  margin-right: auto;
  margin-left: auto;
}

#work {
  padding-bottom: 42px;
}

#experience {
  padding-top: 42px;
}

.work-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
  text-align: center;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.filter-btn {
  border: 1px solid rgba(46, 111, 79, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: #4b443e;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 10px 14px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  transform: translateY(-2px);
  background: #1f3d31;
  color: #fff8ea;
  box-shadow: 0 12px 26px rgba(31, 61, 49, 0.18);
}

.gallery-controls {
  display: inline-flex;
  flex: none;
  gap: 8px;
}

.gallery-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(46, 111, 79, 0.18);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.88);
  color: #1f3d31;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 10px 24px rgba(40, 26, 16, 0.07);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.gallery-arrow:hover {
  transform: translateY(-2px);
  background: #1f3d31;
  color: #fff8ea;
  box-shadow: 0 14px 30px rgba(31, 61, 49, 0.18);
}

.gallery-arrow span {
  margin-top: -3px;
  font-size: 29px;
  line-height: 1;
}

.work-gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 8px 4px 12px;
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(46, 111, 79, 0.42) rgba(46, 111, 79, 0.08);
}

.work-gallery::-webkit-scrollbar {
  height: 10px;
}

.work-gallery::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(46, 111, 79, 0.08);
}

.work-gallery::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(46, 111, 79, 0.38);
}

.work-card {
  flex: 0 0 min(360px, 86vw);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(46, 111, 79, 0.16);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 45px rgba(40, 26, 16, 0.08);
  scroll-snap-align: start;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(46, 111, 79, 0.28);
  box-shadow: 0 34px 90px rgba(40, 26, 16, 0.17);
}

.work-card-button {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.work-image {
  position: relative;
  display: flex;
  aspect-ratio: 4 / 3;
  min-height: 0;
  flex: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.18) 50%, transparent 72%),
    linear-gradient(135deg, #edf3ec 0%, #dfe9df 100%);
}

.work-image::after {
  content: "";
  position: absolute;
  inset: auto 14% 10%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 32, 27, 0.13), transparent 64%);
  filter: blur(18px);
}

.work-image img {
  position: relative;
  z-index: 1;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(40, 26, 16, 0.16));
  transition: transform 460ms ease;
}

.work-card:hover .work-image img {
  transform: scale(1.04) rotate(-0.6deg);
}

.project-count {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border: 1px solid rgba(31, 61, 49, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  color: #1f3d31;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 10px;
}

.work-content {
  display: flex;
  min-height: 210px;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.work-content p {
  margin: 14px 0 8px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.client-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(46, 111, 79, 0.18);
  border-radius: 14px;
  background: rgba(46, 111, 79, 0.08);
  padding: 9px 12px;
}

.client-badge small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.client-badge strong {
  overflow-wrap: anywhere;
  color: #1f3d31;
  font-size: 14px;
  line-height: 1.1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: #4b443e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.inline-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(14px, 3vw, 34px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.project-modal[hidden] {
  display: none;
}

.project-modal.is-open {
  opacity: 1;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 15, 0.76);
  backdrop-filter: blur(16px);
}

.project-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  margin: auto;
  width: min(1120px, 100%);
  height: min(820px, calc(100vh - 68px));
  max-height: calc(100vh - 68px);
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  overflow: hidden;
  border: 1px solid rgba(255, 248, 234, 0.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 221, 82, 0.14), transparent 30%),
    linear-gradient(135deg, #f9f6ee, #edf3ec);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.34);
  transform: translateY(18px) scale(0.98);
  transition: transform 220ms ease;
}

.project-modal.is-open .project-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(31, 61, 49, 0.16);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.88);
  cursor: pointer;
}

.modal-close span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #1f3d31;
}

.modal-close span:first-child {
  transform: rotate(45deg);
}

.modal-close span:last-child {
  transform: rotate(-45deg);
}

.project-detail-media {
  position: relative;
  display: flex;
  min-height: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 42px);
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.2) 48%, transparent 72%),
    linear-gradient(135deg, rgba(46, 111, 79, 0.12), rgba(207, 52, 40, 0.08));
}

.project-detail-media img {
  width: auto;
  max-width: min(100%, 560px);
  height: auto;
  max-height: min(650px, calc(100vh - 160px));
  object-fit: contain;
  filter: drop-shadow(0 24px 26px rgba(40, 26, 16, 0.18));
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(31, 61, 49, 0.16);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.88);
  color: #1f3d31;
  cursor: pointer;
  font: inherit;
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.carousel-btn:hover {
  background: #fffdf8;
  box-shadow: 0 14px 28px rgba(40, 26, 16, 0.16);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn span {
  display: block;
  margin-top: -3px;
  font-size: 34px;
  line-height: 1;
}

.carousel-prev {
  left: 18px;
}

.carousel-next {
  right: 18px;
}

.carousel-count {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(31, 61, 49, 0.88);
  color: #fff8ea;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
}

.project-detail-copy {
  overflow-y: auto;
  padding: clamp(24px, 4vw, 46px);
}

.modal-brand {
  margin-bottom: 20px;
}

.project-detail-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.4vw, 54px);
}

.modal-tags {
  margin: -4px 0 18px;
  padding-top: 0;
}

.project-detail-copy > p:not(.eyebrow),
.detail-block p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.detail-block {
  margin-top: 22px;
}

.detail-block h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.carousel-thumb {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(46, 111, 79, 0.14);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.7);
  color: #2b2621;
  cursor: pointer;
  font: inherit;
  padding: 8px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.carousel-thumb:hover,
.carousel-thumb.is-active {
  border-color: rgba(46, 111, 79, 0.42);
  background: rgba(46, 111, 79, 0.1);
  transform: translateY(-2px);
}

.carousel-thumb img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.carousel-thumb span {
  overflow: hidden;
  color: #1f3d31;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.modal-cta {
  margin-top: 26px;
}

body.modal-open {
  overflow: hidden;
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
}

.split-section .section-heading {
  display: block;
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item,
.skill-card,
.certificate-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.86);
  padding: 24px;
  box-shadow: 0 14px 38px rgba(40, 26, 16, 0.07);
}

.timeline-item > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
}

.timeline-item span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.timeline-item h3 {
  flex-basis: 100%;
  margin-bottom: 0;
}

.timeline-item p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.timeline-item ul {
  margin: 0;
  padding-left: 18px;
}

.timeline-item li {
  margin-bottom: 8px;
  color: #3f3a34;
  font-size: 14px;
  line-height: 1.6;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skill-card {
  min-height: 210px;
  transition: transform 220ms ease, background 220ms ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  background: #fff;
}

.skill-card h3 {
  margin-bottom: 12px;
}

.skill-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.certificate-section {
  padding-top: 14px;
  padding-bottom: 34px;
}

.certificate-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(22px, 4vw, 46px);
  min-height: 340px;
  text-align: left;
  background:
    radial-gradient(circle at 88% 24%, rgba(255, 221, 82, 0.22), transparent 26%),
    linear-gradient(135deg, #171412, #38281e);
  color: #fff8ea;
}

.certificate-card p:not(.eyebrow) {
  color: rgba(255, 248, 234, 0.72);
  font-size: 15px;
  line-height: 1.72;
}

.certificate-preview {
  display: grid;
  place-items: center;
  width: 100%;
}

.certificate-frame {
  width: min(100%, 420px);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 248, 234, 0.3);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.certificate-points span {
  border: 1px solid rgba(46, 111, 79, 0.18);
  border-radius: 999px;
  color: #1f3d31;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 10px;
}

.certificate-copy {
  max-width: 620px;
}

.certificate-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 24px;
}

.certificate-points span {
  border-color: rgba(255, 248, 234, 0.2);
  color: #fff8ea;
}

.certificate-card .secondary-btn {
  width: fit-content;
  border-color: rgba(255, 248, 234, 0.2);
  color: #fff8ea;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 34px;
  padding-top: 34px;
}

.contact-copy {
  border-radius: 30px;
  padding: 34px;
  background:
    radial-gradient(circle at 12% 20%, rgba(207, 52, 40, 0.16), transparent 27%),
    rgba(255, 253, 248, 0.74);
  border: 1px solid var(--line);
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.contact-panel a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.9);
  padding: 16px 18px;
  box-shadow: 0 12px 34px rgba(40, 26, 16, 0.06);
  transition: transform 220ms ease, background 220ms ease;
}

.contact-panel a:hover {
  transform: translateX(6px);
  background: #fff;
}

.contact-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.contact-icon .instagram-mark {
  fill: none;
  stroke: currentColor;
}

.instagram-icon {
  background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #515bd4);
}

.linkedin-icon {
  background: #0a66c2;
}

.facebook-icon {
  background: #1877f2;
}

.facebook-icon svg {
  fill: currentColor;
  stroke: none;
}

.linkedin-icon svg {
  fill: currentColor;
  stroke: none;
}

.contact-panel strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.reveal {
  animation: rise-in 640ms ease both;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  animation-delay: 100ms;
}

.delay-2 {
  animation-delay: 180ms;
}

.delay-3 {
  animation-delay: 260ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambient-shift {
  from {
    transform: translate3d(-4%, 0, 0) scale(1);
  }

  to {
    transform: translate3d(4%, -5%, 0) scale(1.08);
  }
}

@media (max-width: 1060px) {
  nav {
    display: none;
  }

  .hero,
  .split-section,
  .contact-section,
  .certificate-card {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
  }

  .hero-panel {
    max-width: none;
    justify-self: stretch;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .metric-grid,
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-toolbar {
    align-items: center;
    flex-direction: column;
  }

  .project-dialog {
    height: auto;
    max-height: calc(100vh - 42px);
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .project-detail-media {
    height: min(48vh, 430px);
    min-height: 320px;
  }

  .project-detail-media img {
    max-width: min(100%, 520px);
    max-height: min(390px, calc(48vh - 50px));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: center;
    gap: 12px;
  }

  .header-cta {
    display: none;
  }

  .section-shell {
    width: min(100% - 28px, 1180px);
    padding: 64px 0;
  }

  h1 {
    font-size: clamp(34px, 11vw, 42px);
    line-height: 1;
  }

  h2 {
    font-size: clamp(27px, 8vw, 32px);
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .metric-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-btn {
    flex: none;
  }

  .gallery-controls {
    display: none;
  }

  .work-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .work-card {
    width: 100%;
  }

  .work-image {
    aspect-ratio: 1 / 1;
  }

  .project-modal {
    align-items: start;
    overflow-y: auto;
    padding: 10px;
  }

  .project-dialog {
    max-height: none;
    border-radius: 22px;
  }

  .project-detail-media {
    height: 52vh;
    min-height: 300px;
    padding: 22px;
  }

  .project-detail-media img {
    max-width: 100%;
    max-height: calc(52vh - 44px);
  }

  .project-detail-copy {
    padding: 22px;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .carousel-thumbs {
    grid-template-columns: 1fr;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .certificate-card {
    align-items: center;
    flex-direction: column;
    text-align: left;
  }

  .certificate-frame {
    width: 100%;
    min-height: 320px;
  }

  .contact-copy {
    padding: 24px;
  }

  .contact-panel a {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }
}
