:root {
  --bg: #0E0F0F;
  --bar: #161818;
  --card: #1C1E1E;
  --card-hover: #434747;
  --accent: #5D9D9D;
  --text: #FFFFFF;
  --text-dim: #A3A8A8;

  --radius: 14px;
  --page-width: 560px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Brand font is Myriad Pro, but its desktop license doesn't allow serving it.
   Source Sans 3 is Adobe's open-source near-twin, self-hosted. */
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  /* same centering whether or not the page scrolls */
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Top bar ---------- */

/* Tabs are full-height segments of the bar, all the same width */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bar);
}

.tab {
  width: 9.5em; /* fits the longest label ("CONTACT") with breathing room */
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background-color .2s var(--ease);
}

.tab+.tab {
  border-left: 1px solid var(--bg);
}

.tab:hover {
  background: var(--card);
}

.tab.is-active {
  background: var(--accent);
}

/* ---------- Page ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 48px 16px 32px;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.profile-logo {
  width: 96px;
  height: auto;
  margin-bottom: 20px;
}

/* "AKIU" in a Atomic Md, outlined to SVG (img/wordmark.svg) */
.profile-name {
  margin: 0;
}

.profile-name img {
  width: 84px;
  height: auto;
}

.page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .04em;
}

.profile-tagline {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* ---------- Social icon row ---------- */

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}

.socials a:hover {
  background: var(--card);
  transform: scale(.94);
}

.socials .icon {
  width: 20px;
  height: 20px;
}

/* ---------- Icons ----------
   Monochrome SVGs are drawn as a mask so they always take the text color.
   The URL is set per-element via the --icon custom property. */

.icon {
  display: block;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* ---------- Blocks ---------- */

.blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  position: relative;
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}

.card:hover,
.card:focus-visible {
  background: var(--card-hover);
  transform: scale(.98);
}

.card:active {
  transform: scale(.96);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Link card: icon on the left, label centered across the full card */
.link {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
}

.link-media {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
}

.link-media .icon {
  width: 26px;
  height: 26px;
}

.link-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.link-text {
  flex: 1;
  text-align: center;
  padding: 0 44px 0 12px;
  /* balances the media column so text sits dead-center */
}

.link-label {
  display: block;
  font-weight: 600;
  font-size: 16px;
}

.link-sub {
  display: block;
  margin-top: 2px;
  color: var(--text-dim);
  font-size: 13px;
}

/* Link card + square side button (e.g. copy email) */
.link-row {
  display: flex;
  gap: 8px;
}

.link-row .link {
  flex: 1;
  min-width: 0;
}

.copy-btn {
  display: grid;
  place-items: center;
  width: 64px;
  flex-shrink: 0;
  border: 0;
  color: var(--text);
  cursor: pointer;
}

.copy-btn .icon {
  width: 22px;
  height: 22px;
  --icon: url("../icons/link.svg");
}

.copy-btn.is-copied {
  background: var(--accent);
}

.copy-btn.is-copied .icon {
  --icon: url("../icons/check.svg");
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Video card: thumbnail → YouTube player on click */
.video {
  padding: 12px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.video-frame img,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 60%);
  cursor: pointer;
}

.video-play-btn {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(14, 15, 15, .7);
  backdrop-filter: blur(4px);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}

.video-play-btn::before {
  content: "";
  margin-left: 4px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--text);
}

.video-play:hover .video-play-btn {
  transform: scale(1.08);
  background: var(--card-hover);
}

.video-title {
  margin: 12px 0 2px;
  text-align: center;
  font-weight: 600;
}

/* Video card shouldn't shrink once playing — it's not a button anymore */
.video.is-playing:hover {
  transform: none;
  background: var(--card);
}

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

.footer {
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}