/* Personal portfolio v3: warm, direct, app-first. */
body.personal-site {
  --bg: #100f0d;
  --bg-soft: #171512;
  --ink: #f7f4ef;
  --muted: #aaa49c;
  --line: rgba(247, 244, 239, 0.12);
  --glass: #181612;
  --glass-strong: #151310;
  --amber: #ff8067;
  --teal: #89d7c1;
  --max: 1120px;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.personal-site .site-shell { overflow: clip; }
.personal-site .site-header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 15, 13, 0.9);
  backdrop-filter: blur(18px);
}
.personal-site .site-header.is-scrolled { background: rgba(16, 15, 13, 0.96); }
.personal-site .nav-wrap { min-height: 70px; }
.personal-site .brand-mark {
  width: 38px;
  border: 1px solid rgba(255, 128, 103, 0.55);
  border-radius: 8px;
  background: rgba(255, 128, 103, 0.1);
  box-shadow: none;
  color: var(--amber);
  font-family: inherit;
  font-size: 0.72rem;
}
.personal-site .brand-name > span,
.personal-site h1,
.personal-site h2 { font-family: inherit; font-weight: 760; }
.personal-site .brand-name small { color: var(--muted); }
.personal-site .nav-links { color: var(--muted); }
.personal-site .nav-links a::after { height: 2px; background: var(--amber); }
.personal-site .language-switcher { border-radius: 999px; background: #181612; }
.personal-site .language-switcher a,
.personal-site .language-switcher a.is-active { border-radius: 999px; }
.personal-site .language-switcher a.is-active { background: var(--ink); color: var(--bg); }

.personal-site .hero {
  min-height: auto;
  align-items: center;
  padding: clamp(5.5rem, 10vw, 8.5rem) 0 clamp(5rem, 9vw, 7.5rem);
  background: var(--bg);
}
.personal-site .hero::before { display: none; }
.personal-site .hero::after {
  display: block;
  inset: 50% max(1rem, calc((100% - var(--max)) / 2)) auto auto;
  width: min(36vw, 420px);
  height: min(31vw, 320px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(16, 15, 13, 0.08), rgba(16, 15, 13, 0.08)),
    var(--hero-image) center / cover no-repeat;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  transform: translateY(-55%);
  animation: personalVisualFloat 8s ease-in-out infinite;
}
[dir="rtl"] .personal-site .hero::after {
  right: auto;
  left: max(1rem, calc((100% - var(--max)) / 2));
}
.personal-site .hero-phone-layer { display: none; }
.personal-site .hero-inner { display: block; }
.personal-site .hero-copy { width: min(61%, 660px); }
.personal-site .eyebrow {
  gap: 0;
  padding: 0.36rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: none;
}
.personal-site .eyebrow::before { display: none; }
.personal-site .hero h1 {
  max-width: 10ch;
  margin: 1.35rem 0 1.15rem;
  color: var(--ink);
  font-size: clamp(3.3rem, 7vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}
.personal-site .hero h1::after { content: "."; color: var(--amber); }
.personal-site .lead {
  max-width: 59ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
}
.personal-site .button {
  min-height: 46px;
  border-radius: 999px;
  border-color: var(--line);
  background: transparent;
  box-shadow: none;
}
.personal-site .button:hover,
.personal-site .button:focus-visible { border-color: var(--amber); background: rgba(255, 128, 103, 0.06); }
.personal-site .button.primary { border-color: var(--amber); background: var(--amber); color: #17100e; }
.personal-site .hero-stats {
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 1.8rem;
  width: min(61%, 660px);
  margin-top: 2.5rem;
}
.personal-site .stat {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
.personal-site .stat strong { color: var(--ink); font-family: inherit; font-size: 0.95rem; font-weight: 760; }
.personal-site .stat span { margin-top: 0.2rem; color: var(--muted); font-size: 0.78rem; }

.personal-site .section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.personal-site .section.alt { background: #14120f; }
.personal-site .section.cinematic-scene::before,
.personal-site .section.cinematic-scene::after,
.personal-site .cinematic-scene .section-inner::before { display: none; }
.personal-site .section-head {
  grid-template-columns: minmax(0, 0.88fr) minmax(260px, 0.5fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.2rem;
  padding: 0;
  border: 0;
}
.personal-site .section-head h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}
.personal-site .section-head > p { color: var(--muted); }
.personal-site .service-grid,
.personal-site .process-grid {
  gap: 1rem;
  border: 0;
}
.personal-site .service-card,
.personal-site .process-card {
  min-height: 230px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #181612;
  box-shadow: none;
}
.personal-site .service-card:hover,
.personal-site .process-card:hover { border-color: rgba(255, 128, 103, 0.42); background: #1c1915; }
.personal-site .service-icon {
  width: auto;
  aspect-ratio: auto;
  justify-content: start;
  margin-bottom: 1.7rem;
  border-radius: 0;
  background: transparent;
  color: var(--amber);
  font-size: 0.75rem;
}
.personal-site .service-card p,
.personal-site .process-card p { color: var(--muted); }
.personal-site .tag { border-radius: 999px; border-color: var(--line); color: var(--muted); }

.personal-site .personal-expertise {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #12110f;
}
.personal-site .expertise-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 980px;
}
.personal-site .expertise-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.personal-site .my-app-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}
.personal-site .my-app-list #apple-app-grid { display: contents; }
.personal-site .project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #181612;
  color: var(--ink);
  box-shadow: none;
}
.personal-site .project-card:hover { border-color: rgba(255, 128, 103, 0.42); background: #1c1915; }
.personal-site .project-card p,
.personal-site .project-card .app-store-description,
.personal-site .project-card .app-store-subtitle { color: var(--muted); }
.personal-site .my-app-list .project-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 1.1fr) auto;
  gap: 1.25rem;
  align-items: center;
  min-height: 108px;
  padding: 1rem;
}
.personal-site .app-store-head { grid-template-columns: 76px minmax(0, 1fr); }
.personal-site .app-store-icon { width: 76px; height: 76px; border: 0; border-radius: 18px; box-shadow: none; }
.personal-site .app-store-title-block h3 { font-size: 1.08rem; }
.personal-site .project-meta { color: var(--amber); font-size: 0.68rem; }
.personal-site .my-app-list .app-store-description { margin: 0; }
.personal-site .project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--amber);
  white-space: nowrap;
}
.personal-site .project-link:hover { border-color: rgba(255, 128, 103, 0.42); }
.personal-site .apps-attribution {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.personal-site .apps-attribution a { color: var(--amber); }

@media (max-width: 860px) {
  .personal-site .expertise-copy { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .personal-site .my-app-list .project-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }
  .personal-site .project-link { justify-self: start; }
}

.personal-site .process-number { margin-bottom: 2rem; color: var(--amber); font-family: inherit; font-size: 0.76rem; }
.personal-site .contact-layout { grid-template-columns: 0.8fr 1.2fr; gap: 1rem; border: 0; }
.personal-site .contact-panel { border: 1px solid var(--line); border-radius: 8px; background: #181612; box-shadow: none; }
.personal-site .contact-intro { color: var(--ink); }
.personal-site .contact-intro .eyebrow { color: var(--muted); }
.personal-site .contact-intro p,
.personal-site .contact-intro a { color: var(--muted); }
.personal-site .contact-form { background: #181612; }
.personal-site input,
.personal-site textarea,
.personal-site select,
.personal-site .captcha-question { border-radius: 8px; background: #100f0d; }
.personal-site .site-footer { border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); }

.personal-site .personal-newsletter {
  border-top: 1px solid var(--line);
  background: #ff795f;
  color: #17120f;
}
.personal-site .newsletter-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}
.personal-site .newsletter-copy h2 {
  max-width: 15ch;
  margin: .5rem 0 1rem;
  color: #17120f;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: .98;
}
.personal-site .newsletter-copy .eyebrow,
.personal-site .newsletter-copy p { color: #3d211b; }
.personal-site .newsletter-form { min-width: 0; }
.personal-site .newsletter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .7rem;
}
.personal-site .newsletter-row input {
  min-height: 54px;
  border-color: rgba(23, 18, 15, .36);
  background: rgba(255, 255, 255, .55);
  color: #17120f;
}
.personal-site .newsletter-row input::placeholder { color: #553229; }
.personal-site .newsletter-row .button.primary { background: #17120f; color: #fff; }
.personal-site .newsletter-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
  margin-top: .9rem;
  color: #3d211b;
  font-size: .82rem;
  line-height: 1.5;
}
.personal-site .newsletter-consent input { width: 18px; height: 18px; margin: .1rem 0 0; accent-color: #17120f; }
.personal-site .newsletter-notice { margin: 1rem 0 0; color: #17120f; }
.personal-site .newsletter-notice.error { color: #68170d; }

@keyframes personalVisualFloat {
  0%, 100% { transform: translateY(-55%) rotate(-0.4deg); }
  50% { transform: translateY(calc(-55% - 10px)) rotate(0.4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .personal-site .hero::after { animation: none; }
}

@media (max-width: 920px) {
  .personal-site .hero::after { opacity: 0.32; width: 46%; height: 50%; }
  .personal-site .hero-copy,
  .personal-site .hero-stats { width: 76%; }
  .personal-site .section-head { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 680px) {
  .personal-site .hero { min-height: auto; padding-top: 4.8rem; }
  .personal-site .hero::after {
    inset: 7rem -4rem auto auto;
    width: 76vw;
    height: 40vh;
    opacity: 0.2;
    transform: none;
    animation: none;
  }
  [dir="rtl"] .personal-site .hero::after { right: auto; left: -4rem; }
  .personal-site .hero-copy,
  .personal-site .hero-stats { width: 100%; }
  .personal-site .hero h1 { font-size: clamp(3.1rem, 16vw, 4.8rem); }
  .personal-site .hero-stats { grid-template-columns: 1fr; gap: 0.85rem; }
  .personal-site .hero-actions { align-items: stretch; }
  .personal-site .service-card,
  .personal-site .process-card,
  [dir="rtl"] .personal-site .service-card,
  [dir="rtl"] .personal-site .process-card { border: 1px solid var(--line); }
  .personal-site .project-card { box-shadow: none; }
  .personal-site .contact-layout { grid-template-columns: 1fr; }
  .personal-site .newsletter-layout,
  .personal-site .newsletter-row { grid-template-columns: 1fr; }
  .personal-site .newsletter-row .button { width: 100%; }
}

/* Visible expert answers support human readers and machine citations. */
.personal-site .geo-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.personal-site .geo-answer {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(21, 23, 23, .9);
}
.personal-site .geo-answer h3 {
  margin: 20px 0 12px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}
.personal-site .geo-answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}
@media (max-width: 760px) {
  .personal-site .geo-answer-grid { grid-template-columns: 1fr; }
  .personal-site .geo-answer { min-height: 0; }
}
