/* Extract styles from original project and continue RyanCV-inspired refinements */

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

:root {
  --ink: #0e0e0f;
  --ink2: #1c1c1e;
  --mute: #6b6b72;
  --mute2: #9898a0;
  --bone: #f5f3ef;
  --cream: #faf9f7;
  --accent: #e8500a;
  --accent2: #ff6b2b;
  --white: #ffffff;
  --border: rgba(14, 14, 15, 0.1);
  --border2: rgba(14, 14, 15, 0.06);
  --radius: 14px;
  --radius-sm: 8px;
  --sidebar-w: 72px;
}

html,
body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
  /* desktop: no page scroll */
}

/* ══════════════════════════════════════
   DESKTOP LAYOUT — full‑screen panels
══════════════════════════════════════ */
.page-wrap {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ── Vertical icon nav (far left) ── */

.nav-container {
  position: absolute;
  display: flex;
  height: 100vh;
  margin-left: 4.5%;
  align-items: center;
  -webkit-perspective: 30rem;
  perspective: 30rem;
  z-index: 50;
}

.icon-rail {
  width: var(--sidebar-w);
  height: 90%;
  background: var(--ink2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  border-radius: var(--radius);
  -webkit-transform: rotateY(9deg);
  transform: rotateY(9deg);
}

.icon-rail::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 10px;
  right: 10px;
  bottom: -10px;
  border: 1px solid var(--accent);
  opacity: .65;
  border-radius: inherit;
  transform: inherit;
  z-index: -2;
}

.icon-rail::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  z-index: -1;
}

.icon-rail a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
}

.icon-rail a svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.icon-rail a:hover,
.icon-rail a.active {
  color: var(--accent);
  background: rgba(232, 80, 10, 0.1);
}

.rail-logo {
  width: 36px;
  height: 36px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: white;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.rail-bottom {
  margin-top: auto;
  margin-bottom: 20px;
}

.rail-hire {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.rail-hire:hover {
  background: var(--accent2);
  transform: scale(1.08);
}

.rail-hire svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Panels container ── */
.panels {
  flex: 1;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Each panel fills viewport height, hidden by default */
.panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.panel.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   PANEL 1 — HOME (two‑column hero)
══════════════════════════════════════ */
#panel-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  overflow: hidden;
}

.home-left {
  position: relative; 
  display: grid;
  align-items: center;
  -webkit-perspective: 30rem;
  perspective: 30rem;
}

.home-photo-bg {
  position: absolute;
  inset: 0; 
}

.home-photo-frame {
  position: absolute; 
    left: 33%;
    width: 440px;
    height: 510px;
    max-width: 80%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    -webkit-transform: rotateY(6deg);
    border-radius: 30px;
}
 
.home-photo-frame::before {
    content: '';
    position: absolute;
    left: -20px;
    top: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent2);
    opacity: .5;
    border-radius: inherit; 
}

.home-photo-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.home-photo-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.rprof-before, .rprof-after {
    position: absolute;
    top: auto;
    bottom: 0;
    width: 105%;
    height: auto;
}
svg.rprof-after {
    top: 0;
    bottom: auto;
    rotate: 180deg;
}

.home-left-decor {
  position: absolute;
  bottom: 15px;
  left: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.home-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  color: white;
  position: relative;
}

.home-hi {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.home-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  color: white;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* Typed role strip */
.home-roles {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  min-height: 32px;
}

.role-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

.typed-wrap {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent2);
  min-width: 200px;
  position: relative;
}

.typed-text::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
  color: var(--accent);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.home-bio {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  max-width: 400px;
  margin-bottom: 36px;
}

.home-socials {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
}

.home-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Syne', sans-serif;
}

.home-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232, 80, 10, 0.08);
}

.home-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: white;
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.btn-white:hover {
  background: #f0efed;
  transform: translateY(-1px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.btn-outline-white:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: white;
}

/* ══════════════════════════════════════
   ALL OTHER PANELS — light background
══════════════════════════════════════ */
.panel-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 56px;
  min-height: 100%;
}

/* section label */
.ey {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.ey::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--accent);
}

.ptitle {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 42px);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.psub {
  font-size: 15px;
  color: var(--mute);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-text p {
  font-size: 14.5px;
  color: var(--mute);
  line-height: 1.78;
  margin-bottom: 18px;
}

.about-text p strong {
  color: var(--ink);
  font-weight: 500;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
  border-top: 1px solid var(--border2);
}

.af {
  padding: 12px 0;
  border-bottom: 1px solid var(--border2);
}

.af:nth-child(odd) {
  padding-right: 20px;
  border-right: 1px solid var(--border2);
}

.af:nth-child(even) {
  padding-left: 20px;
}

.af label {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute2);
  font-weight: 600;
  margin-bottom: 3px;
}

.af span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.skills-box {
  background: var(--bone);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border2);
}

.skills-box h3 {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
}

.sk {
  margin-bottom: 14px;
}

.sk-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}

.sk-top span:first-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
}

.sk-top span:last-child {
  font-size: 11.5px;
  color: var(--mute);
}

.sk-bar {
  height: 3px;
  background: rgba(14, 14, 15, 0.08);
  border-radius: 99px;
}

.sk-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.pill {
  padding: 4px 11px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink2);
}

/* ── SERVICES ── */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.srv-card {
  background: white;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 26px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.srv-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.srv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(14, 14, 15, 0.07);
}

.srv-card:hover::after {
  transform: scaleX(1);
}

.srv-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.srv-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.srv-card p {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.65;
}

.srv-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 9px;
  background: rgba(232, 80, 10, 0.08);
  color: var(--accent);
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── PORTFOLIO ── */
.pf-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.pf-btn {
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--mute);
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.pf-btn:hover,
.pf-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

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

.pf-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bone);
  border: 1px solid var(--border2);
  transition: all 0.25s;
  cursor: pointer;
}

.pf-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(14, 14, 15, 0.08);
}

.pf-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.pf-thumb.web {
  background: linear-gradient(135deg, #e8f4fd 0%, #c8e6f7 100%);
}

.pf-thumb.graphics {
  background: linear-gradient(135deg, #fdf0e8 0%, #f7d9c4 100%);
}

.pf-thumb.vinyl {
  background: linear-gradient(135deg, #f0fdf4 0%, #c6f0d3 100%);
}

.pf-thumb.dev {
  background: linear-gradient(135deg, #f5f0ff 0%, #e0d5f7 100%);
}

.pf-info {
  padding: 14px 16px;
}

.pf-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 5px;
}

.pf-info h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 3px;
}

.pf-info p {
  font-size: 12px;
  color: var(--mute);
}

/* ── RESUME ── */
.res-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.res-col h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.tl {
  position: relative;
  padding: 0 0 24px 22px;
  border-left: 1.5px solid var(--border2);
}

.tl::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 2px var(--accent);
}

.tl:last-child {
  padding-bottom: 0;
}

.tl-period {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 5px;
}

.tl-role {
  font-family: 'Syne', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.tl-org {
  font-size: 12.5px;
  color: var(--mute);
  margin-bottom: 7px;
}

.tl-desc {
  font-size: 12.5px;
  color: var(--mute);
  line-height: 1.6;
}

/* ── CONTACT ── */
.ct-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.ct-info h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 14px;
}

.ct-info>p {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.7;
  margin-bottom: 28px;
}

.ct-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ct-ico {
  width: 38px;
  height: 38px;
  background: var(--bone);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ct-row label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--mute2);
  font-weight: 600;
  margin-bottom: 2px;
}

.ct-row a,
.ct-row span {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.ct-row a:hover {
  color: var(--accent);
}

.ct-callout {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ct-callout-ico {
  font-size: 28px;
}

.ct-callout p {
  font-size: 12.5px;
  color: rgba(245, 243, 239, 0.5);
  margin-bottom: 10px;
  line-height: 1.5;
}

.ct-callout a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.ct-callout a:hover {
  background: var(--accent2);
}

.ct-form {
  background: white;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 30px;
}

.fg {
  margin-bottom: 14px;
}

.fg label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mute);
  margin-bottom: 7px;
}

.fg input,
.fg textarea,
.fg select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bone);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  outline: none;
}

.fg input:focus,
.fg textarea:focus,
.fg select:focus {
  border-color: var(--accent);
  background: white;
}

.fg textarea {
  resize: vertical;
  min-height: 100px;
}

.fg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ct-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ct-submit p {
  font-size: 12px;
  color: var(--mute);
}

.ct-submit p a {
  color: var(--accent);
  font-weight: 500;
}

.ct-submit button {
  padding: 13px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ct-submit button:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}

#formSuccess {
  display: none;
  text-align: center;
  padding: 24px;
}

/* ══════════════════════════════════════
   MOBILE — restore normal scroll
══════════════════════════════════════ */
@media (max-width: 768px) {

  html,
  body {
    overflow: auto;
    height: auto;
  }

  .page-wrap {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  /* Replace icon rail with a top bar */


  .icon-rail a {
    width: auto;
    padding: 0 10px;
    font-size: 10px;
    border-radius: 6px;
  }

  .rail-bottom {
    margin: 0;
  }

  .rail-hire {
    width: 34px;
    height: 34px;
  }

  /* All panels become normal flow blocks */
  .panels {
    height: auto;
    overflow: visible;
  }

  .panel {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    overflow: visible;
  }

  /* Stack home panel vertically */
  #panel-home {
    grid-template-columns: 1fr;
  }

  .home-left {
    min-height: 320px;
  }

  .home-right {
    padding: 40px 24px;
  }

  .panel-inner {
    padding: 40px 24px;
  }

  .about-grid,
  .res-cols,
  .ct-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .srv-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pf-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fg-row {
    grid-template-columns: 1fr;
  }
}

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

  .pf-grid {
    grid-template-columns: 1fr;
  }
}