/* ===== Portfolio one-pager — standalone dark theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --pf-bg: #0a0a0c;
  --pf-bg-alt: #131316;
  --pf-surface: #18181c;
  --pf-border: #2b2b30;
  --pf-text: #f3f2ef;
  --pf-text-muted: #9b9ba3;
  --pf-accent: #e2532b;
  --pf-accent-strong: #c8431f;

  --pf-font-heading: 'Instrument Sans', sans-serif;
  --pf-font-body: 'Instrument Sans', sans-serif;
  --pf-font-ui: 'Inter', sans-serif;

  --pf-gutter: 24px;
  --pf-max: clamp(1080px, 78vw, 1600px);
  --pf-anim-size: clamp(280px, 42vw, 480px);
  --pf-anim-gap: 24px;
}

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

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

body {
  background:
    radial-gradient(ellipse 900px 520px at 78% 0%, rgba(226, 83, 43, 0.09), transparent 60%),
    radial-gradient(ellipse 700px 500px at 8% 40%, rgba(226, 83, 43, 0.04), transparent 65%),
    var(--pf-bg);
  color: var(--pf-text);
  font-family: var(--pf-font-body);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

/* ===== Header ===== */
.pf-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pf-gutter);
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pf-border);
}

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

.pf-brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.pf-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-header__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.pf-header__btn {
  font-family: var(--pf-font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  white-space: nowrap;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.pf-header__btn--ghost {
  color: var(--pf-text-muted);
}

.pf-header__btn--ghost:hover {
  color: var(--pf-accent);
  text-decoration-color: var(--pf-accent);
}

.pf-header__btn--solid {
  color: var(--pf-text);
}

.pf-header__btn--solid:hover {
  color: var(--pf-accent);
  text-decoration-color: var(--pf-accent);
}

@media (max-width: 520px) {
  .pf-header {
    flex-wrap: wrap;
  }

  .pf-brand__name {
    display: none;
  }

  .pf-header__actions {
    flex: 1 0 100%;
    justify-content: flex-start;
    gap: 20px;
  }
}

.pf-brand__name {
  font-family: var(--pf-font-heading);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
}

/* ===== Hero / Bio ===== */
.pf-hero {
  display: flex;
  gap: 64px;
  align-items: center;
  max-width: var(--pf-max);
  margin: 0 auto;
  padding: 96px var(--pf-gutter) 88px;
}

.pf-hero__photo {
  flex: 0 0 clamp(280px, 22vw, 400px);
  aspect-ratio: 1678 / 1888;
  border-radius: 18px;
  overflow: hidden;
}

.pf-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-hero__content {
  flex: 1 1 auto;
  min-width: 0;
}

.pf-hero__eyebrow {
  font-family: var(--pf-font-ui);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-accent);
  margin-bottom: 14px;
}

.pf-hero__name {
  font-family: var(--pf-font-heading);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.pf-hero__location {
  font-family: var(--pf-font-ui);
  font-size: 14px;
  color: var(--pf-text-muted);
  margin-bottom: 22px;
}

.pf-hero__bio {
  font-size: 17px;
  line-height: 1.65;
  color: var(--pf-text-muted);
  margin-bottom: 36px;
}

.pf-hero__bio p + p {
  margin-top: 14px;
}

.pf-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 36px;
}

.pf-hero__meta-item dt {
  font-family: var(--pf-font-ui);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-text-muted);
  margin-bottom: 6px;
}

.pf-hero__meta-item dd {
  font-size: 14px;
  line-height: 1.5;
}

.pf-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pf-font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--pf-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--pf-border);
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.pf-hero__cta:hover {
  color: var(--pf-accent);
  text-decoration-color: var(--pf-accent);
}

@media (max-width: 760px) {
  .pf-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 56px var(--pf-gutter) 64px;
  }

  .pf-hero__photo {
    width: 100%;
    max-width: 260px;
    flex-basis: auto;
  }
}

/* ===== Project sections ===== */
.pf-project {
  border-top: 1px solid var(--pf-border);
  padding: 72px var(--pf-gutter);
}

.pf-project:nth-of-type(even) {
  background: var(--pf-bg-alt);
}

.pf-project__inner {
  max-width: var(--pf-max);
  margin: 0 auto;
}

.pf-project__head {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.pf-project__index {
  font-family: var(--pf-font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--pf-accent);
  padding-top: 10px;
  flex-shrink: 0;
}

.pf-project__heading {
  flex: 1 1 320px;
  min-width: 0;
}

.pf-project__title {
  font-family: var(--pf-font-heading);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.01em;
}

.pf-project__tagline {
  font-size: 15px;
  color: var(--pf-text-muted);
  margin-top: 8px;
}

.pf-project__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--pf-font-ui);
  font-size: 13px;
  color: var(--pf-text-muted);
  text-align: right;
  padding-top: 10px;
}

.pf-project__summary {
  font-size: 16px;
  line-height: 1.65;
  color: var(--pf-text-muted);
  max-width: 720px;
  margin-bottom: 44px;
}

.pf-project__media {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pf-media-frame {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.pf-media-frame img,
.pf-media-frame video {
  width: 100%;
  display: block;
}

.pf-media-frame--wide {
  width: 100%;
}

.pf-media-frame--phone {
  width: calc(var(--pf-anim-size) * 2 + var(--pf-anim-gap));
  max-width: 100%;
  margin: 0 auto;
}

.pf-media-frame--muted video {
  pointer-events: none;
}

.pf-media-row {
  display: flex;
  justify-content: center;
  gap: var(--pf-anim-gap);
  flex-wrap: wrap;
}

.pf-media-frame--square {
  width: var(--pf-anim-size);
  max-width: 100%;
  aspect-ratio: 1 / 1;
}

.pf-media-frame--square video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ===== Footer ===== */
.pf-footer {
  padding: 88px var(--pf-gutter) 140px;
  text-align: center;
  border-top: 1px solid var(--pf-border);
}

.pf-footer__title {
  font-family: var(--pf-font-heading);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}

.pf-footer__subtitle {
  font-size: 15px;
  color: var(--pf-text-muted);
}

.pf-footer__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
}

.pf-footer__links a {
  font-family: var(--pf-font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--pf-text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pf-footer__links a:hover {
  color: var(--pf-accent);
}

.pf-footer__copyright {
  margin-top: 56px;
  font-family: var(--pf-font-ui);
  font-size: 12px;
  color: var(--pf-text-muted);
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pf-surface);
  color: var(--pf-text);
  border: 1px solid var(--pf-border);
  box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
  z-index: 60;
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top.is-docked {
  position: absolute;
  bottom: auto;
}

.back-to-top:hover {
  background: var(--pf-accent);
  border-color: var(--pf-accent);
  color: var(--pf-bg);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--pf-accent);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }

  .pf-project__meta {
    text-align: left;
  }
}
