@font-face {
  font-family: "FantasqueSansMono";
  src: url("assets/fonts/fantasquesansmonoregular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* @link https://utopia.fyi/type/calculator?c=320,18,1.2,1240,20,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

:root {
  /* Theme variables */
  /* Default theme (Cyber) */
  --color-primary: #9dd0ff;
  --color-secondary: #84bfff;
  --color-tertiary: #9abfe3;
  --color-background: #344668;
  --color-background-overlay: #0f274075;
  --color-accent: #ff786d;
  --color-danger: #d64b83;
  --color-hover: #c4e0ffcc;
  --color-shadow: #2930439e;
  --color-command: #a4d5ff;
  --color-command-desc: #88bde8;
  --color-output: #a4d5ff;
  --color-error: #a1a6f0;
  --color-white: #fff;
  --color-spotify-bg: #0d2740a7;
  --color-spotify-border: #9dd0ff;
  --color-spotify-icon: #8dc6ff;
  --color-spotify-text: #fff;
  --color-spotify-track-info: #9dd0ff;
  --frame-gap-top: 4px;
  --frame-gap-right: 11px;
  --frame-gap-bottom: 7px;
  --frame-gap-left: 4px;
  --cat-offset-x: 0.95rem;
  --cat-offset-y: 0.2rem;
  --cat-offset-y-stacked: -1rem;

  /* Typography */
  --step--2: clamp(0.7813rem, 0.7747rem + 0.0326vw, 0.8rem);
  --step--1: clamp(0.9375rem, 0.9158rem + 0.1087vw, 1rem);
  --step-0: clamp(1.125rem, 1.0815rem + 0.2174vw, 1.25rem);
  --step-1: clamp(1.35rem, 1.2761rem + 0.3696vw, 1.5625rem);
  --step-2: clamp(1.62rem, 1.5041rem + 0.5793vw, 1.9531rem);
  --step-3: clamp(1.944rem, 1.771rem + 0.8651vw, 2.4414rem);
  --step-4: clamp(2.3328rem, 2.0827rem + 1.2504vw, 3.0518rem);
  --step-5: clamp(2.7994rem, 2.4462rem + 1.7658vw, 3.8147rem);
  --step-ascii: 1.55rem;
}

@media (max-width: 1600px) {
  :root {
    --step-ascii: 1.4rem;
    --cat-offset-x: 0.9rem;
    --cat-offset-y: 0.08rem;
  }
}

@media (max-width: 1280px) {
  :root {
    --step-ascii: 1.24rem;
    --cat-offset-x: 0.82rem;
    --cat-offset-y: 0rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --step-ascii: 1.16rem;
    --cat-offset-x: 0.72rem;
    --cat-offset-y: -0.14rem;
    --frame-gap-top: 4px;
    --frame-gap-left: 7px;
    --frame-gap-right: 7px;
  }
}

@media (max-width: 768px) {
  :root {
    --step-ascii: 1.06rem;
    --cat-offset-y-stacked: -0.85rem;
    --frame-gap-top: 3px;
  }
}

@media (max-width: 520px) {
  :root {
    --step-ascii: 0.92rem;
    --cat-offset-y-stacked: -0.72rem;
  }
}

@media (max-width: 420px) {
  :root {
    --step-ascii: 0.84rem;
  }
}

a {
  color: var(--color-primary);
}

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

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-background);
  color: var(--color-secondary);
  -moz-text-size-adjust: auto;
  -webkit-text-size-adjust: auto;
  text-size-adjust: auto;
  overflow: hidden;
  font-family: "FantasqueSansMono";
  position: relative;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.terminal-window {
  position: fixed;
  top: var(--frame-gap-top);
  right: var(--frame-gap-right);
  bottom: var(--frame-gap-bottom);
  left: var(--frame-gap-left);
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  z-index: 1;
  border: none;
  background-color: var(--color-background-overlay);
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 10px 22px 6px 22px;
  position: relative;
  font-size: var(--step-0);
  font-family: "FantasqueSansMono";
}

hr {
  border: 0;
  border-top: 1px solid var(--color-primary);
  width: 100%;
  margin: 0;
  opacity: 0.9;
}

.brand-title {
  color: #b7dcff;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 6px;
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: 2px;
  padding: 0.2rem 0.5rem;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.brand-title:hover,
.brand-title:focus-visible {
  color: var(--color-primary);
  background-color: rgba(157, 208, 255, 0.12);
}

.brand-title.active {
  color: var(--color-primary);
  background-color: rgba(157, 208, 255, 0.18);
}

.top-nav {
  margin-left: auto;
  display: flex;
  align-self: center;
  align-items: center;
  gap: 1.6rem;
}

.top-nav a {
  display: flex;
  align-items: center;
  position: relative;
  top: -1px;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 2px;
  padding: 0.2rem 0.5rem;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--color-primary);
  background-color: rgba(157, 208, 255, 0.12);
}

.top-nav a.active {
  color: var(--color-primary);
  background-color: rgba(157, 208, 255, 0.18);
}

.top-nav .nav-close {
  font-weight: 700;
  min-width: 1.1rem;
  justify-content: center;
  padding: 0.2rem;
  margin-left: -0.15rem;
  margin-right: -0.1rem;
}

@media (max-width: 726px) {
  html,
  body {
    height: 100dvh;
  }

  .contact-type {
    display: block;
    min-width: 0;
    margin-bottom: 0.15rem;
  }

  body {
    min-height: 100dvh;
    overflow-y: hidden;
    overflow-x: hidden;
    overscroll-behavior-y: none;
  }

  .terminal-window {
    position: fixed;
    top: var(--frame-gap-top);
    right: var(--frame-gap-right);
    bottom: var(--frame-gap-bottom);
    left: var(--frame-gap-left);
    width: auto;
    height: auto;
    height: calc(100dvh - var(--frame-gap-top) - var(--frame-gap-bottom));
    min-height: 0;
  }

  header {
    flex-wrap: wrap;
    row-gap: 0.45rem;
    justify-content: center;
    text-align: center;
  }

  .brand-title {
    width: 100%;
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }

  .top-nav {
    display: none;
  }

  #contentscroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior-y: contain;
  }

  .content-container,
  #terminal {
    width: min(100%, 42rem);
    max-width: 100%;
    box-sizing: border-box;
    align-self: center;
  }

  .content-container,
  .ascii-Hero,
  .cat-panel,
  #terminal {
    text-align: left;
  }

  .cat-panel {
    justify-content: flex-start;
  }

  .ascii-Hero {
    max-width: 100%;
  }

  .ascii {
    padding-left: 0.35rem;
    max-width: 100%;
  }

  #terminal {
    height: auto;
    min-height: 0;
    padding-left: var(--step-1);
    padding-right: var(--step-0);
  }

  .bottom-bar {
    display: none;
  }
}

.ascii {
  font-family: monospace; /* Makes sure characters align */
  white-space: pre; /* Preserve formatting */
  display: inline-block;
  font-size: var(--step-ascii);
  padding-left: var(--step-2);
  color: var(--color-hover);
  white-space: pre-wrap;
  display: inline-block;
  overflow-wrap: break-word;
  line-height: 1;
}

.name {
  position: relative;
  display: inline-block;
  font-weight: bold;
  color: var(--color-primary);
}

.name::after {
  content: "------------------------------";
  display: block;
  margin-top: 0.5rem;
  width: 100%;
}

.profile-summary {
  margin: 0.15rem 0 0.9rem;
  color: var(--color-primary);
  line-height: 1.45;
}

.info-item {
  display: flex;
  align-items: center;
  color: var(--color-primary);
  margin-bottom: 0.5rem; /* optional spacing between items */
}

.info-item i {
  margin-right: 0.6rem;
  min-width: 1.25rem; /* ensures consistent icon spacing */
  text-align: center;
}

.link-text {
  padding-left: 0.5rem; /* nice left indent */
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.link-text:hover {
  color: var(--color-accent); /* optional hover to match icon */
}

.contact-line {
  display: block;
}

.contact-type {
  display: inline-block;
  min-width: 11ch;
}

#contentscroll {
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer and Edge */
  overflow-y: auto;
}
.content-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: nowrap;
  margin-bottom: 0.35rem;
}

.ascii-Hero {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0; /* prevent shrinking */
  margin-top: 2rem;
}

.cat-panel {
  display: flex;
  align-items: center;
  max-width: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0.55rem;
  margin-left: var(--cat-offset-x);
  transform: translateY(var(--cat-offset-y));
}

.ascii-cat-wrapper {
  min-height: 13.5rem;
}

.cat-frame {
  margin: 0;
  white-space: pre;
  font-size: var(--step-0);
  line-height: 1.15;
  color: var(--color-primary);
}

.profile-info {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  text-align: left;
  font-size: var(--step-0);
  padding: var(--step-2);
}

/* Responsive: stack on smaller screens */
@media (max-width: 1015px) {
  .content-container {
    flex-direction: column;
    gap: 0rem; /* space between ASCII and profile */
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
  }
  .profile-info {
    padding-top: var(--step--2);
  }

  .cat-panel {
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 0.4rem;
    margin-left: 0;
    transform: translateY(var(--cat-offset-y-stacked));
  }

  .spotify-panel {
    float: left;
  }

  #terminal {
    margin-top: 0.55rem;
  }
}

body.magnum-mode .content-container {
  display: none !important;
}

body.magnum-mode #terminal {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
}

body.magnum-mode .bottom-bar {
  display: none !important;
}

body.magnum-mode #cursor-cat-gif {
  display: none !important;
}

.magnum-showcase {
  display: none;
  padding: clamp(0.9rem, 2.4vw, 1.5rem) clamp(0.95rem, 2.8vw, 2rem)
    clamp(1.2rem, 3.2vw, 1.25rem);
}

.magnum-showcase.is-visible {
  display: block;
}

.magnum-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.7vw, 1.1rem);
}

.magnum-gif-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(157, 208, 255, 0.44);
  background: #132840;
  box-shadow: 0 12px 24px rgba(10, 19, 31, 0.45);
  aspect-ratio: 16 / 9.9;
  min-height: 166px;
  isolation: isolate;
}

.magnum-showcase.is-visible.is-animating .magnum-gif-card {
  opacity: 1;
  transform: none;
  animation: none;
  will-change: auto;
}

.magnum-showcase.is-visible.is-animating .magnum-gif-overlay {
  opacity: 0;
  transform: translateY(-10px);
}

.magnum-showcase.is-visible.is-animating .magnum-gif-card.is-spawn-active .magnum-gif-overlay {
  opacity: 1;
  transform: translateY(0);
}

.magnum-showcase.is-visible.is-animating .magnum-gif-image,
.magnum-showcase.is-visible.is-animating .magnum-gif-video {
  clip-path: none;
  animation: none;
}

@keyframes magnumCardTypeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .magnum-showcase.is-visible.is-animating .magnum-gif-card {
    opacity: 1;
    animation: none;
  }

  .magnum-showcase.is-visible.is-animating .magnum-gif-image,
  .magnum-showcase.is-visible.is-animating .magnum-gif-video {
    clip-path: none;
    animation: none;
  }
}

.magnum-gif-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background-color: #0b111a;
  filter: brightness(1.06) saturate(1.08);
  transform: scale(1);
  transition:
    transform 0.24s ease,
    filter 0.24s ease;
  pointer-events: none;
}

.magnum-gif-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background-color: #0b111a;
  filter: brightness(1.06) saturate(1.08);
  transform: scale(1);
  transition:
    transform 0.24s ease,
    filter 0.24s ease;
  pointer-events: none;
}

.magnum-gif-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0.88rem;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 14, 0.22) 0%,
    rgba(8, 10, 14, 0.1) 46%,
    rgba(8, 10, 14, 0) 100%
  );
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

.magnum-gif-title {
  margin: 0;
  color: #ffffff;
  font-size: var(--step-0);
  line-height: 1.25;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 4px 14px rgba(0, 0, 0, 0.75);
}

.magnum-gif-description {
  margin: 0;
  color: #ffffff;
  font-size: var(--step--1);
  line-height: 1.35;
  max-width: 48ch;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.72);
}

.magnum-gif-card:hover .magnum-gif-image,
.magnum-gif-card:focus-visible .magnum-gif-image {
  transform: scale(1.05);
  filter: brightness(1.12) saturate(1.12);
}

.magnum-gif-card:hover .magnum-gif-video,
.magnum-gif-card:focus-visible .magnum-gif-video {
  transform: scale(1.05);
  filter: brightness(1.12) saturate(1.12);
}

.magnum-gif-card:hover .magnum-gif-overlay,
.magnum-gif-card:focus-visible .magnum-gif-overlay {
  opacity: 1;
  transform: translateY(0);
}

.magnum-gif-card:focus-visible {
  outline: 2px solid rgba(157, 208, 255, 0.9);
  outline-offset: 2px;
}

.magnum-back-hint {
  margin: clamp(0.95rem, 2.5vw, 1.35rem) 0 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  font-size: var(--step-0);
  background: transparent;
  border: 0;
  width: min(100%, 44rem);
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.35;
  cursor: pointer;
  font-family: inherit;
  padding: 0.25rem 0.45rem;
}

@media (max-width: 1080px) {
  .magnum-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .magnum-gif-card {
    aspect-ratio: 16 / 9.4;
    min-height: 158px;
  }
}

@media (max-width: 726px) {
  .content-container {
    margin-bottom: 0.2rem;
  }

  .ascii-Hero {
    margin-top: 0.35rem;
  }

  .magnum-showcase-grid {
    grid-template-columns: 1fr;
  }

  .magnum-showcase {
    width: 100%;
    box-sizing: border-box;
    padding-left: var(--step-0);
    padding-right: var(--step-0);
  }

  .magnum-gif-card {
    aspect-ratio: 16 / 9.1;
    min-height: 172px;
  }

  .magnum-gif-overlay {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(
      180deg,
      rgba(8, 10, 14, 0.08) 0%,
      rgba(8, 10, 14, 0) 100%
    );
  }

  .magnum-gif-description {
    display: block;
  }

  .magnum-back-hint {
    margin-top: 0.9rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.12rem;
    padding-right: 0.12rem;
  }
}

/* Terminal input */
#terminal {
  height: 55vh;
  width: 60%;
  padding-left: var(--step-2);
  box-sizing: border-box;
  font-size: var(--step-0);
  position: relative;
  margin-top: -0.35rem;
}

#terminal p {
  margin: 0.3rem 0;
}

#terminal p:first-of-type {
  margin-top: 0;
}

@media (max-width: 726px) {
  #contentscroll {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior-y: contain;
  }

  #cursor-cat-gif {
    display: none !important;
  }

  #terminal {
    height: auto;
    min-height: 0;
    width: 100%;
    margin-top: 0rem;
  }
}

#command {
  cursor: text;
  height: 50px;
  color: var(--color-secondary);
}

.texter {
  position: fixed;
  opacity: 0;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  z-index: -1;
  pointer-events: none;
}

#liner {
  line-height: 1.3em;
  animation: none;
  opacity: 1;
}

#liner::before {
  content: attr(data-prompt);
}

.cursor {
  font-size: 12px;
  color: var(--color-command);
  background-color: var(--color-command);
  position: relative;
  opacity: 1;
  height: 1.5em;
  width: 10px;
  max-width: 10px;
  transform: translateY(4px);
  overflow: hidden;
  text-indent: -5px;
  display: inline-block;
  text-decoration: blink;
  animation: blinker 1s linear infinite;
}

/* Animations */
@keyframes show {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Colors */
.index {
  color: #dcdccc;
}

.color2 {
  color: #8285c1f0;
}

.output-blue {
  color: var(--color-output);
}

.about-body {
  color: var(--color-secondary);
}

.home-command {
  color: var(--color-command);
}

.home-desc {
  color: var(--color-command-desc);
}

.home-white {
  color: var(--color-command);
}

.tertiary {
  color: var(--color-tertiary);
}

.command {
  color: var(--color-command);
}

.back-link {
  color: var(--color-secondary);
}

.project-name,
.project-lead {
  color: var(--color-command);
}

.project-intro {
  color: var(--color-secondary);
}

.cli-run-command {
  cursor: pointer;
  border-radius: 2px;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.cli-run-command:hover,
.cli-run-command:focus-visible {
  background-color: rgba(157, 208, 255, 0.12);
}

.cli-run-command.cli-preview-active {
  background-color: rgba(157, 208, 255, 0.12);
}

.cli-run-item {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 0 2px;
}

.home-item-desc {
  color: var(--color-command-desc);
}

.home-item-desc.project-intro {
  color: var(--color-secondary);
}

.project-desc {
  color: var(--color-secondary);
}

.help-item-desc {
  color: var(--color-secondary);
}

.about-desc {
  display: block;
  color: var(--color-secondary);
}

.error {
  color: var(--color-error);
}

.white {
  color: var(--color-white);
}

.bottom-bar {
  position: fixed;
  bottom: var(--frame-gap-bottom);
  left: var(--frame-gap-left);
  right: var(--frame-gap-right);
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.5rem;
  z-index: 50;
  background: transparent;
  pointer-events: none;
}

.bottom-bar .spotify-panel {
  pointer-events: auto;
  margin: 15px 24px 15px 15px;
}

#cursor-cat-gif {
  position: fixed;
  width: var(--step-5);
  height: auto;
  top: var(--frame-gap-top);
  left: var(--frame-gap-left);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.12s ease-out,
    top 0.03s ease-out,
    left 0.03s ease-out;
}

/* Spotify styling */
.spotify-panel {
  background-color: var(--color-spotify-bg);
  border: 1px solid var(--color-spotify-border);
  border-radius: 4px;
  max-width: max-content;
  padding: 0.5rem;
  position: relative;
  float: right;
  align-items: center;
  font-size: var(--step--1);
  color: var(--color-spotify-text);
}

.spotify-inner {
  display: flex;
  flex-direction: row;
}

.spotify-icon {
  font-size: var(--step-3);
  color: var(--color-spotify-icon);
  display: flex;
  margin-right: 0.5rem;
  padding: 0.4rem;
}

.spotify-info {
  margin-right: 1rem;
  display: flex;
}

.track-info {
  justify-content: center;
  text-decoration: underline;
  color: var(--color-spotify-track-info);
}

pre {
  white-space: pre-wrap !important;
  word-break: break-word;
  overflow-wrap: break-word;
}

pre.ascii {
  white-space: pre !important;
  word-break: normal;
  overflow-wrap: normal;
}

a {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Charcoal browser mock copied from portfolioReal */
.charcoal-project {
    margin-top: 5rem;
}

.charcoal-project .section-title {
    margin: 0 0 0.85rem;
    font-size: var(--step-0);
    line-height: 1.35;
    font-weight: 400;
}

.charcoal-project .section-subtitle {
    margin: 0 0 2rem;
    font-size: var(--step-0);
    line-height: 1.35;
    width: 100%;
    max-width: 100%;
}

.charcoal-project .section-subtitle a {
    color: #ff9b42;
}

.chrome-shell {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    overflow: hidden;
    background: #17181a;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42);
}

.chrome-tabstrip {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: calc(1.9rem - 2px);
    padding: 0.12rem 0.18rem 0 0.06rem;
    background: #1d1f22;
}

.chrome-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 252px;
    max-width: 292px;
    min-height: calc(1.62rem - 3px);
    padding: 0.3rem 0.86rem 0.29rem 0.72rem;
    border-radius: 12px 12px 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    margin-left: 0.38rem;
    margin-right: 0.45rem;
}

.chrome-tab-active {
    background: #34373b;
    border-color: rgba(255, 255, 255, 0.18);
    border-bottom: none;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.chrome-tab-active::before {
    content: "";
    position: absolute;
    left: -16px;
    bottom: 0;
    width: 16px;
    height: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 7px 0 0 0 #34373b;
}

.chrome-tab-active::after {
    content: "";
    position: absolute;
    right: -16px;
    bottom: 0;
    width: 16px;
    height: 16px;
    border-bottom-left-radius: 16px;
    box-shadow: -7px 0 0 0 #34373b;
}

.chrome-tab-label {
    font-size: 0.84rem;
    font-weight: 500;
    color: #f4f7fb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chrome-tab-favicon {
    width: 0.98rem;
    height: 0.98rem;
    object-fit: contain;
    display: block;
    background: none;
    border: 0;
    box-shadow: none;
    margin-left: -0.2rem;
    margin-right: -0.06rem;
}

.chrome-tab-close {
    margin-left: auto;
    width: 1rem;
    height: 1rem;
    font-size: 0;
    line-height: 0;
    position: relative;
    display: inline-block;
}

.chrome-tab-close::before,
.chrome-tab-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.66rem;
    border-top: 1.9px solid rgba(248, 250, 252, 0.96);
}

.chrome-tab-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.chrome-tab-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.chrome-new-tab {
    width: 1.44rem;
    height: 1.44rem;
    border: none;
    background: transparent;
    color: rgba(244, 247, 251, 0.9);
    font-size: 0.9rem;
    line-height: 1;
    cursor: default;
    margin-right: 0.2rem;
}

.chrome-tab-fade {
    flex: 1;
    align-self: center;
    height: 0;
    border-top: none;
    margin: 0;
}

.chrome-window-controls {
    margin-left: auto;
    display: flex;
    align-items: stretch;
    position: relative;
    gap: 0.34rem;
}

.chrome-window-controls::before {
    content: none;
}

.chrome-window-btn {
    width: 1.56rem;
    height: 1.24rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(176, 182, 190, 0.92);
    font-size: 0.75rem;
    line-height: 1;
    position: relative;
    z-index: 1;
    transform: translateY(0);
    border-radius: 2px;
    transition: background-color 0.16s ease;
}

.chrome-window-min::before {
    content: "";
    width: 0.56rem;
    border-top: 1.6px solid rgba(176, 182, 190, 0.92);
}

.chrome-window-max::before {
    content: "";
    width: 0.54rem;
    height: 0.44rem;
    border: 1.5px solid rgba(176, 182, 190, 0.92);
}

.chrome-window-close::before,
.chrome-window-close::after {
    content: "";
    position: absolute;
    width: 0.62rem;
    border-top: 1.6px solid rgba(176, 182, 190, 0.92);
}

.chrome-window-close::before {
    transform: rotate(45deg);
}

.chrome-window-close::after {
    transform: rotate(-45deg);
}

.chrome-window-close:hover {
    background-color: rgba(232, 17, 35, 0.92);
}

.chrome-window-close:hover::before,
.chrome-window-close:hover::after {
    border-top-color: rgba(248, 250, 252, 0.98);
}

.chrome-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.62rem;
    min-height: 3.05rem;
    padding: 0.5rem 0.55rem 0.68rem;
    background: #34373b;
    margin-top: -1px;
}

.chrome-nav-controls {
    display: flex;
    gap: 0.3rem;
}

.chrome-nav-btn {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    position: relative;
}

.chrome-nav-back::before,
.chrome-nav-forward::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.34rem;
    height: 0.34rem;
    border-left: 1.7px solid #d3d6da;
    border-bottom: 1.7px solid #d3d6da;
}

.chrome-nav-back::before {
    transform: translate(-42%, -50%) rotate(45deg);
}

.chrome-nav-forward::before {
    transform: translate(-58%, -50%) rotate(225deg);
}

.chrome-nav-reload::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.86rem;
    height: 0.86rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d3d6da' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-2.64-6.36'/%3E%3Cpolyline points='21 3 21 9 15 9'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
}

.chrome-nav-reload::after {
    content: none;
}

.chrome-omnibox {
    min-height: 2.3rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: #2b2e32;
    display: flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0 0.88rem 0 0.56rem;
}

.chrome-site-icon {
    width: 1.62rem;
    height: 1.62rem;
    border-radius: 50%;
    border: none;
    background: #383c43;
    position: relative;
    display: inline-block;
    z-index: 1;
}

.chrome-site-icon::before,
.chrome-site-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
}

.chrome-site-icon::before {
    width: 0.94rem;
    height: 0.94rem;
    background: transparent;
    border: 1px solid rgba(245, 248, 252, 0.96);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.chrome-site-icon::after {
    content: "i";
    color: rgba(245, 248, 252, 0.96);
    font-size: 0.66rem;
    font-weight: 500;
    line-height: 1;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.chrome-url {
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    flex: 1;
    min-width: 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chrome-url.is-typing::after {
    content: "|";
    margin-left: 0.08rem;
    color: rgba(255, 255, 255, 0.92);
    animation: chrome-url-caret-blink 1s steps(1, end) infinite;
}

@keyframes chrome-url-caret-blink {
    50% {
        opacity: 0;
    }
}

.chrome-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.32rem;
}

.chrome-action {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    border: 1px solid transparent;
    position: relative;
}

.chrome-extension::before {
    content: "";
    position: absolute;
    width: 0.58rem;
    height: 0.58rem;
    border: 1.7px solid #d3d6da;
    border-radius: 0.16rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.chrome-profile {
    background: radial-gradient(circle at 45% 38%, #b8bcc3 24%, #8e939b 62%, #7a8089 100%);
}

.chrome-menu {
    width: 1.42rem;
    height: 1.42rem;
    border-radius: 50%;
    background-image: radial-gradient(circle, rgba(229, 235, 244, 0.95) 1.4px, transparent 1.4px);
    background-size: 3px 6px;
    background-repeat: repeat-y;
    background-position: center;
}

.chrome-viewport {
    height: min(76vh, 790px);
    background: #0f1115;
    position: relative;
    overflow: hidden;
}

.chrome-viewport-splash {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #202124;
    z-index: 2;
}

.chrome-viewport-splash.is-hidden {
    display: none;
}

.google-mock {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: #202124;
    color: #e8eaed;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

.google-mock-home,
.google-mock-results {
    width: 100%;
    height: 100%;
}

.google-mock-home {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.2rem, 4vw, 2.8rem);
}

.google-mock-center {
    width: min(100%, 860px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.7rem, 2.2vw, 1.3rem);
}

.google-mock-results {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: clamp(0.9rem, 2.3vw, 1.45rem) clamp(0.95rem, 2.5vw, 1.65rem);
    gap: 0.75rem;
}

.google-mock.is-results .google-mock-home {
    display: none;
}

.google-mock.is-results .google-mock-results {
    display: flex;
}

.google-wordmark {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 6.4vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1;
    user-select: none;
}

.google-wordmark .g-blue {
    color: #4285f4;
}

.google-wordmark .g-red {
    color: #db4437;
}

.google-wordmark .g-yellow {
    color: #f4b400;
}

.google-wordmark .g-green {
    color: #0f9d58;
}

.google-search-shell {
    width: min(100%, 700px);
    max-width: 100%;
    box-sizing: border-box;
    min-height: clamp(2.35rem, 5.4vw, 3.2rem);
    border: 1px solid #5f6368;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0 clamp(0.75rem, 2.8vw, 1.15rem);
    background: #202124;
    box-shadow: none;
}

.google-search-shell-results {
    width: min(100%, 860px);
    min-height: clamp(2.2rem, 4.2vw, 2.7rem);
    background: #303134;
    border-color: #5f6368;
}

.google-search-text,
.google-results-query {
    color: #bdc1c6;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.78rem, 2.1vw, 1.06rem);
    font-weight: 400;
    line-height: 1.2;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    min-height: 1.1em;
}

.google-results-query {
    color: #e8eaed;
}

.google-search-text.is-typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 3px;
    background: #e8eaed;
    vertical-align: -2px;
    animation: googleTextCaretBlink 0.9s steps(1, end) infinite;
}

.google-search-icon {
    width: 0.82rem;
    height: 0.82rem;
    border: 1.7px solid #9aa0a6;
    border-radius: 50%;
    position: relative;
    flex: 0 0 auto;
}

.google-search-icon::after {
    content: "";
    position: absolute;
    width: 0.36rem;
    border-top: 1.7px solid #9aa0a6;
    right: -0.22rem;
    bottom: -0.06rem;
    transform: rotate(45deg);
}

.google-mic-icon {
    margin-left: auto;
    width: 0.74rem;
    height: 1.02rem;
    border: 1.8px solid #8ab4f8;
    border-radius: 0.36rem;
    position: relative;
    flex: 0 0 auto;
}

.google-mic-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -0.34rem;
    width: 0.52rem;
    border-top: 1.8px solid #8ab4f8;
}

.google-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.35rem;
}

.google-btn {
    min-height: 2.25rem;
    padding: 0.48rem 1rem;
    border-radius: 4px;
    border: 1px solid #303134;
    background: #303134;
    color: #e8eaed;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.google-results-search {
    width: 100%;
}

.google-results-meta {
    color: #9aa0a6;
    font-size: clamp(0.72rem, 1.7vw, 0.85rem);
    margin-left: clamp(0.1rem, 1vw, 0.8rem);
}

.google-results-list {
    width: min(100%, 860px);
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
}

.google-result {
    padding: 0.56rem 0.42rem 0.68rem;
    border-radius: 10px;
    transition: background 0.16s ease, transform 0.16s ease;
}

.google-ai-overview {
    padding: 0.82rem 0.92rem 0.74rem;
    border-radius: 18px;
    border: 1px solid rgba(111, 124, 149, 0.34);
    background:
        radial-gradient(88% 115% at 82% 8%, rgba(83, 112, 178, 0.22) 0%, rgba(45, 49, 59, 0) 62%),
        linear-gradient(180deg, #202329 0%, #1e2026 62%, #1b1e24 100%);
    box-shadow: inset 0 1px 0 rgba(238, 244, 255, 0.05);
}

.google-ai-overview-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #e8edf8;
    font-size: clamp(0.82rem, 1.8vw, 0.97rem);
    font-weight: 600;
    margin-bottom: 0.52rem;
    letter-spacing: 0.01em;
}

.google-ai-overview-dot {
    width: 0.9rem;
    height: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #95b8ff;
    position: relative;
}

.google-ai-overview-dot::before {
    content: "✦";
    font-size: 0.9rem;
    line-height: 1;
    text-shadow: 0 0 8px rgba(138, 180, 248, 0.45);
}

.google-ai-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.78rem;
    align-items: start;
}

.google-ai-summary-copy {
    min-width: 0;
}

.google-ai-overview-text {
    color: #edf1f8;
    font-size: clamp(0.84rem, 1.95vw, 1.02rem);
    line-height: 1.44;
    margin-bottom: 0.42rem;
    max-width: 100%;
}

.google-ai-overview-text:last-of-type {
    margin-bottom: 0.46rem;
}

.google-ai-highlight {
    background: rgba(126, 154, 242, 0.42);
    color: #f3f6ff;
    border-radius: 3px;
    padding: 0 0.08em;
}

.google-ai-source-inline {
    display: inline-flex;
    align-items: center;
    min-height: 1.46rem;
    padding: 0.16rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 115, 146, 0.58);
    background: rgba(42, 48, 63, 0.8);
    color: #d0d7e6;
    font-size: clamp(0.66rem, 1.55vw, 0.8rem);
    line-height: 1;
}

.google-ai-figure {
    width: clamp(102px, 19vw, 164px);
    height: clamp(80px, 14vw, 118px);
    border-radius: 16px;
    background: #eceff4;
    border: 1px solid rgba(10, 14, 20, 0.35);
    overflow: hidden;
    align-self: start;
}

.google-ai-figure-inner {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(237, 240, 245, 0.96) 0%, rgba(228, 233, 240, 0.96) 100%),
        repeating-linear-gradient(180deg, rgba(52, 66, 93, 0.22), rgba(52, 66, 93, 0.22) 1px, transparent 1px, transparent 9px);
    position: relative;
}

.google-ai-figure-inner::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 9px;
    height: 15px;
    border-radius: 8px;
    background: rgba(38, 49, 72, 0.15);
}

.google-ai-details-title {
    margin-top: 0.36rem;
    color: #e8edf8;
    font-size: clamp(0.9rem, 1.95vw, 1.06rem);
    font-weight: 700;
}

.google-ai-detail-list {
    margin: 0.3rem 0 0.74rem 1.06rem;
    padding: 0;
    color: #bec8d9;
    font-size: clamp(0.74rem, 1.75vw, 0.9rem);
    line-height: 1.45;
}

.google-ai-detail-list strong {
    color: #d7e0ef;
    font-weight: 600;
}

.google-ai-show-more {
    width: 100%;
    min-height: 2.1rem;
    border-radius: 999px;
    border: 1px solid rgba(101, 114, 140, 0.58);
    background: rgba(26, 30, 38, 0.74);
    color: #dce4f1;
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-result-url {
    color: #9aa0a6;
    font-size: clamp(0.7rem, 1.7vw, 0.84rem);
    margin-bottom: 0.2rem;
}

.google-result-title {
    color: #8ab4f8;
    font-size: clamp(0.92rem, 2.35vw, 1.2rem);
    line-height: 1.3;
    margin-bottom: 0.22rem;
}

.google-result-snippet {
    color: #bdc1c6;
    font-size: clamp(0.74rem, 1.85vw, 0.9rem);
    line-height: 1.45;
    max-width: 66%;
}

.google-result-primary {
    position: relative;
}

.google-result-primary.is-clicked {
    background: rgba(138, 180, 248, 0.16);
}

.google-ai-overview.google-result-primary.is-clicked {
    border-color: rgba(159, 178, 214, 0.84);
    box-shadow: 0 0 0 1px rgba(147, 171, 214, 0.24) inset;
}

@media (max-width: 726px) {
    .google-mock-home {
        padding: clamp(0.65rem, 2.6vw, 1rem);
    }

    .google-mock-center {
        width: min(100%, 520px);
        gap: 0.72rem;
    }

    .google-wordmark {
        font-size: clamp(2.55rem, 17vw, 3.8rem);
        letter-spacing: -0.015em;
    }

    .google-search-shell {
        width: min(100%, 440px);
        min-height: 2.2rem;
        padding: 0 0.7rem;
        gap: 0.5rem;
    }

    .google-search-text {
        font-size: 0.86rem;
    }

    .google-actions {
        gap: 0.45rem;
        margin-top: 0.15rem;
    }

    .google-btn {
        min-height: 2rem;
        padding: 0.34rem 0.72rem;
        font-size: 0.76rem;
    }
}

@media (max-width: 760px) {
    .google-ai-summary-row {
        grid-template-columns: 1fr;
    }

    .google-ai-figure {
        display: none;
    }
}

.google-mock-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 17px;
    height: 23px;
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    will-change: transform, opacity;
}

.google-mock-cursor::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #f3f5f7;
    clip-path: polygon(6% 3%, 7% 95%, 33% 71%, 49% 100%, 63% 93%, 47% 66%, 95% 66%);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.google-mock-cursor::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: -3px;
    top: -2px;
    border-radius: 50%;
    border: 2px solid rgba(232, 234, 237, 0.85);
    opacity: 0;
    transform: scale(0.58);
}

.google-mock-cursor.is-clicking::after {
    animation: googleCursorClick 0.4s ease-out forwards;
}

@keyframes googleTextCaretBlink {
    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

@keyframes googleCursorClick {
    0% {
        opacity: 0.9;
        transform: scale(0.58);
    }

    100% {
        opacity: 0;
        transform: scale(1.15);
    }
}

.chrome-viewport iframe {
    position: absolute;
    inset: 0;
    width: 100.1%;
    height: 100.1%;
    border: 0;
    display: block;
    vertical-align: top;
    background: #0f1115;
    transform: translateZ(0);
    z-index: 1;
}

@media (max-width: 900px) {
    .charcoal-project {
        margin-top: 3.5rem;
    }

    .chrome-toolbar {
        grid-template-columns: 1fr;
        padding: 0.5rem 0.6rem 0.62rem;
    }

    .chrome-nav-controls {
        display: none;
    }

    .chrome-toolbar-actions {
        display: none;
    }

    .chrome-tab {
        min-width: 0;
        max-width: 240px;
    }

    .chrome-window-controls {
        display: flex;
        margin-left: auto;
    }

    .chrome-window-min,
    .chrome-window-max {
        display: none;
    }

    .chrome-viewport {
        height: 60vh;
    }
}

.charcoal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2vh 2vw;
    background: rgba(8, 14, 24, 0.72);
    z-index: 100000;
}

.charcoal-overlay.is-open {
    display: flex;
}

.charcoal-overlay-panel {
    width: min(96vw, 1500px);
    max-height: 96vh;
    overflow: auto;
}

.charcoal-overlay .charcoal-project {
    margin-top: 0;
}

.charcoal-overlay .projects-header {
    display: none;
}

.charcoal-overlay .chrome-tab-close,
.charcoal-overlay .chrome-window-close {
    cursor: pointer;
}


