/* Rewsyaydee.tech - 2026 enhancement layer
 * Loaded after the compiled Vite/React stylesheet.
 * Adds: Apple-style intro, light theme, new hero headline, project video,
 * Ledger highlights, rebuilt Toolkit and a services gallery + dialog.
 */

:root {
  --sy-gold-solid: var(--r3-gold);
  --sy-on-gold: #14100a;
  --sy-panel: #100d08;
  --sy-panel-2: #17130c;
  --sy-overlay: rgba(10, 9, 8, 0.7);
  --sy-video-tint: linear-gradient(180deg, rgba(212, 168, 67, 0.08), transparent 28%, rgba(10, 9, 8, 0.42));
}

html[data-theme="light"] {
  --r3-bg: #f6f1e6;
  --r3-bg2: #eee5d3;
  --r3-ink: #1a150e;
  --r3-muted: #5b5144;
  --r3-gold: #7a5606;
  --r3-gold-bright: #5f4304;
  --r3-line: rgba(122, 86, 6, 0.24);
  --r3-line-soft: rgba(26, 21, 14, 0.12);

  --sy-gold-solid: #6f4e05;
  --sy-on-gold: #fff8e7;
  --sy-panel: #fffaf0;
  --sy-panel-2: #f1e8d7;
  --sy-overlay: rgba(246, 241, 230, 0.74);
  --sy-video-tint: linear-gradient(180deg, rgba(122, 86, 6, 0.08), transparent 28%, rgba(26, 21, 14, 0.22));

  color-scheme: light;
}

:focus-visible {
  outline: 2px solid var(--r3-gold-bright);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ */
/* Intro                                                              */
/* ------------------------------------------------------------------ */

.sy-intro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--r3-bg);
  color: var(--r3-ink);
  isolation: isolate;
}

.sy-intro[hidden],
.sy-intro-skip #sy-intro {
  display: none !important;
}

.sy-intro__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(212, 168, 67, 0.18), transparent 56%),
    radial-gradient(ellipse at 50% 110%, rgba(212, 168, 67, 0.08), transparent 48%),
    var(--r3-bg);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.sy-intro::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: syIntroGrain 0.9s steps(2) infinite;
}

@keyframes syIntroGrain {
  0% { transform: translate(0, 0); }
  50% { transform: translate(2%, -1.5%); }
  100% { transform: translate(-1.5%, 2%); }
}

.sy-intro__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vh, 34px);
  padding: 24px;
  text-align: center;
}

.sy-intro__kicker {
  font-family: var(--r3-mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--r3-muted);
  text-transform: uppercase;
  opacity: 0;
  animation: syIntroFade 0.9s 0.45s ease forwards;
}

.sy-intro__word {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--r3-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(96px, 25vw, 330px);
  line-height: 0.78;
  letter-spacing: -0.035em;
  color: var(--r3-gold-bright);
  transform-origin: center center;
  text-shadow: 0 0 90px rgba(212, 168, 67, 0.16);
  will-change: transform, opacity;
}

.sy-intro__letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.36em) rotate(4deg);
  filter: blur(14px);
  animation: syIntroLetter 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}

@keyframes syIntroLetter {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
    filter: blur(0);
  }
}

.sy-intro__hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-family: var(--r3-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--r3-muted);
  opacity: 0;
  animation: syIntroFade 0.8s 1.5s ease forwards;
  white-space: nowrap;
}

@keyframes syIntroFade {
  to { opacity: 1; }
}

.sy-intro.is-morphing .sy-intro__bg {
  opacity: 0;
}

.sy-intro.is-morphing .sy-intro__kicker,
.sy-intro.is-morphing .sy-intro__hint {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.sy-intro.is-done {
  display: none;
}

html.sy-intro-lock,
html.sy-intro-lock body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* ------------------------------------------------------------------ */
/* Hero headline                                                      */
/* ------------------------------------------------------------------ */

.sy-original-h1 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.r3-hero h1.sy-headline {
  position: relative;
  z-index: 2;
  display: block;
  max-width: min(920px, calc(100vw - clamp(40px, 8vw, 112px) - 390px));
  margin: 0;
  padding: 0;
  font-family: var(--r3-display);
  font-size: clamp(42px, 6.2vw, 92px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: none;
  pointer-events: none;
}

.sy-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
}

.sy-line-a {
  gap: 0 0.55em;
}

.sy-hi {
  font-family: var(--r3-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  line-height: 0.8;
  letter-spacing: -0.025em;
  color: var(--r3-gold-bright);
  transition: opacity 0.18s ease;
}

.sy-said,
.sy-call {
  font-family: var(--r3-mono);
  font-size: max(10px, 0.16em);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--r3-muted);
}

.sy-line-b {
  font-size: 1em;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.sy-name {
  color: var(--r3-ink);
}

.sy-mark {
  font-family: var(--r3-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--r3-gold);
  letter-spacing: 0;
  text-transform: none;
}

.sy-line-c {
  margin-top: 0.2em;
  gap: 0;
}

.sy-alias {
  margin-left: 0.34em;
  font-family: var(--r3-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.72em;
  line-height: 0.75;
  letter-spacing: -0.02em;
  color: var(--r3-gold-bright);
  text-transform: none;
}

.sy-said,
.sy-line-b,
.sy-line-c {
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

html.sy-intro-run .r3-hero h1.sy-headline .sy-hi {
  opacity: 0;
}

html.sy-intro-run .r3-hero h1.sy-headline .sy-said,
html.sy-intro-run .r3-hero h1.sy-headline .sy-line-b,
html.sy-intro-run .r3-hero h1.sy-headline .sy-line-c {
  opacity: 0;
  transform: translateY(0.32em);
}

html.sy-intro-run.sy-landed .r3-hero h1.sy-headline .sy-hi {
  opacity: 1;
}

html.sy-intro-run.sy-landed .r3-hero h1.sy-headline .sy-said,
html.sy-intro-run.sy-landed .r3-hero h1.sy-headline .sy-line-b,
html.sy-intro-run.sy-landed .r3-hero h1.sy-headline .sy-line-c {
  opacity: 1;
  transform: translateY(0);
}

html.sy-intro-run.sy-landed .r3-hero h1.sy-headline .sy-line-b {
  transition-delay: 0.08s;
}

html.sy-intro-run.sy-landed .r3-hero h1.sy-headline .sy-line-c {
  transition-delay: 0.16s;
}

@media (max-width: 999px) {
  .r3-hero h1.sy-headline {
    max-width: 100%;
  }
}

/* ------------------------------------------------------------------ */
/* Theme toggle                                                       */
/* ------------------------------------------------------------------ */

.sy-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid var(--r3-line);
  border-radius: 999px;
  background: transparent;
  color: var(--r3-ink);
  font-family: var(--r3-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.sy-theme-toggle:hover {
  color: var(--r3-gold-bright);
  border-color: var(--r3-gold);
  transform: translateY(-1px);
}

.sy-theme-icon {
  position: relative;
  display: inline-block;
  width: 11px;
  height: 11px;
  overflow: hidden;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.sy-theme-icon::after {
  content: "";
  position: absolute;
  inset: 0 0 0 50%;
  background: currentColor;
}

html[data-theme="light"] .sy-theme-icon::after {
  inset: 0 50% 0 0;
}

/* ------------------------------------------------------------------ */
/* Resume CTA                                                         */
/* ------------------------------------------------------------------ */

.r3-hero-cta .r3-btn-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 18px 34px;
  border-color: var(--sy-gold-solid);
  background: var(--sy-gold-solid);
  color: var(--sy-on-gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: 0 14px 38px rgba(212, 168, 67, 0.2);
}

.r3-hero-cta .r3-btn-cv span {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.r3-hero-cta .r3-btn-cv:hover {
  border-color: var(--r3-gold-bright);
  background: var(--r3-gold-bright);
  color: var(--sy-on-gold);
  transform: translateY(-3px);
}

.r3-hero-cta .r3-btn-cv:hover span {
  transform: translateY(3px);
}

/* ------------------------------------------------------------------ */
/* igoldiium project card                                             */
/* ------------------------------------------------------------------ */

.sy-video-preview {
  background: #060504;
}

.sy-video-preview video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.03);
}

.sy-video-preview::after {
  background: var(--sy-video-tint);
}

.sy-video-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(242, 234, 217, 0.28);
  border-radius: 50%;
  background: rgba(10, 9, 8, 0.62);
  color: #f2ead9;
  font-family: var(--r3-mono);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.sy-video-toggle:hover {
  border-color: var(--r3-gold);
  background: rgba(10, 9, 8, 0.86);
  transform: scale(1.06);
}

html[data-theme="light"] .sy-video-toggle {
  border-color: rgba(26, 21, 14, 0.28);
  background: rgba(255, 250, 240, 0.86);
  color: #1a150e;
}

html[data-theme="light"] .sy-video-toggle:hover {
  background: #fffaf0;
}

/* ------------------------------------------------------------------ */
/* Ledger highlights                                                  */
/* ------------------------------------------------------------------ */

.sy-highlights {
  margin: 0 0 clamp(44px, 6vh, 72px);
}

.sy-highlights-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.sy-eyebrow {
  font-family: var(--r3-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--r3-gold);
}

.sy-highlights-head p {
  margin: 0;
  color: var(--r3-muted);
  font-size: 13px;
  line-height: 1.5;
}

.sy-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.sy-highlight {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--r3-line);
  background: var(--sy-panel);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.3s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sy-highlight:hover,
.sy-highlight:focus-visible {
  border-color: var(--r3-gold);
  transform: translateY(-3px);
}

.sy-highlight-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--r3-bg2);
}

.sy-highlight-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.sy-highlight:hover .sy-highlight-media img,
.sy-highlight:focus-visible .sy-highlight-media img {
  transform: scale(1.035);
}

.sy-highlight-cta {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(242, 234, 217, 0.4);
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.58);
  color: #fff8e7;
  font-family: var(--r3-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(7px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sy-highlight:hover .sy-highlight-cta,
.sy-highlight:focus-visible .sy-highlight-cta {
  opacity: 1;
  transform: translateY(0);
}

.sy-highlight-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}

.sy-highlight-org {
  display: block;
  font-family: var(--r3-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--r3-gold);
}

.sy-highlight-caption {
  display: block;
  color: var(--r3-muted);
  font-size: 14px;
  line-height: 1.65;
}

.sy-highlight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--r3-line-soft);
  font-family: var(--r3-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--r3-muted);
}

.sy-highlight-count {
  color: var(--r3-gold);
}

.sy-media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(242, 234, 217, 0.48);
  border-radius: 50%;
  background: rgba(10, 9, 8, 0.55);
  color: #fff8e7;
  font-size: 16px;
  line-height: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sy-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;
}

/* ------------------------------------------------------------------ */
/* Toolkit                                                            */
/* ------------------------------------------------------------------ */

h2.r3-sec-title.sy-skill-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.12em 0.3em;
  text-transform: none;
}

.r3-sec-title .sy-skill-kicker {
  font-family: var(--r3-mono);
  font-size: 0.3em;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--r3-gold);
}

.sy-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--r3-line);
}

.sy-capability {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid var(--r3-line-soft);
}

.sy-capability:nth-child(odd) {
  padding-right: clamp(18px, 3vw, 44px);
  border-right: 1px solid var(--r3-line-soft);
}

.sy-capability:nth-child(even) {
  padding-left: clamp(18px, 3vw, 44px);
}

.sy-cap-no {
  padding-top: 3px;
  font-family: var(--r3-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--r3-gold);
}

.sy-capability h4 {
  margin: 0 0 5px;
  font-family: var(--r3-display);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sy-capability p {
  max-width: 48ch;
  margin: 0;
  color: var(--r3-muted);
  font-size: 14px;
  line-height: 1.65;
}

.sy-capability a {
  color: var(--r3-gold-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--r3-line);
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.sy-capability a:hover {
  color: var(--r3-ink);
  border-color: var(--r3-ink);
}

.sy-hidden {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* Services gallery                                                   */
/* ------------------------------------------------------------------ */

.sy-services {
  margin-bottom: clamp(22px, 4vh, 38px);
}

.sy-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.sy-service {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--r3-line);
  background: var(--sy-panel);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

.sy-service:hover {
  border-color: var(--r3-gold);
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
}

.sy-service-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--r3-bg2);
}

.sy-service-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.sy-service:hover .sy-service-media img,
.sy-service:focus-visible .sy-service-media img {
  transform: scale(1.045);
}

.sy-service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.22), transparent 28%, rgba(10, 9, 8, 0.52));
}

.sy-service-no {
  position: absolute;
  top: 13px;
  left: 14px;
  z-index: 2;
  font-family: var(--r3-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 234, 217, 0.7);
}

.sy-service-cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(242, 234, 217, 0.4);
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.55);
  color: #fff8e7;
  font-family: var(--r3-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(7px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sy-service:hover .sy-service-cta,
.sy-service:focus-visible .sy-service-cta {
  opacity: 1;
  transform: translateY(0);
}

.sy-service-info {
  display: block;
  padding: 18px 18px 20px;
  border-top: 1px solid var(--r3-line);
}

.sy-service-kicker,
.sy-service-title,
.sy-service-tagline {
  display: block;
}

.sy-service-kicker {
  font-family: var(--r3-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--r3-gold);
}

.sy-service-title {
  margin: 6px 0 5px;
  font-family: var(--r3-display);
  font-size: clamp(17px, 1.65vw, 21px);
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
}

.sy-service-tagline {
  margin: 0;
  color: var(--r3-muted);
  font-size: 13px;
  line-height: 1.5;
}

.sy-service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--r3-line-soft);
  font-family: var(--r3-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--r3-muted);
}

.sy-service-count {
  color: var(--r3-gold);
}

.sy-service-open {
  color: var(--r3-muted);
}

/* ------------------------------------------------------------------ */
/* Service dialog                                                     */
/* ------------------------------------------------------------------ */

html.sy-modal-open {
  overflow: hidden !important;
}

html.sy-modal-open .r3-root {
  filter: blur(14px) saturate(0.78);
  transition: filter 0.35s ease;
  pointer-events: none;
}

html.sy-modal-open .r3-nav {
  filter: blur(14px) saturate(0.78);
}

.sy-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 40px);
  color: var(--r3-ink);
}

.sy-modal[hidden] {
  display: none;
}

.sy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--sy-overlay);
  opacity: 0;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition: opacity 0.35s ease;
}

.sy-modal.is-open .sy-modal-backdrop {
  opacity: 1;
}

.sy-modal-panel {
  position: relative;
  display: flex;
  width: min(1180px, 100%);
  height: min(90dvh, 920px);
  max-height: min(90dvh, 920px);
  overflow: hidden;
  border: 1px solid var(--r3-line);
  background: var(--sy-panel);
  color: var(--r3-ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
  opacity: 0;
}

.sy-modal.is-open .sy-modal-panel {
  opacity: 1;
}

.sy-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--r3-line);
  border-radius: 50%;
  background: var(--sy-panel);
  color: var(--r3-ink);
  font-family: var(--r3-mono);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.sy-modal-close:hover {
  border-color: var(--r3-gold);
  background: var(--sy-gold-solid);
  color: var(--sy-on-gold);
  transform: rotate(90deg);
}

.sy-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
}

.sy-modal-panel.is-ledger .sy-gallery-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.sy-gallery-media-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
  border-right: 1px solid var(--r3-line);
  background: #080706;
  color: #f2ead9;
}

.sy-gallery-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(242, 234, 217, 0.12);
  background:
    radial-gradient(circle at 50% 42%, rgba(212, 168, 67, 0.07), transparent 58%),
    #050403;
}

.sy-gallery-stage::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  pointer-events: none;
  background-image: var(--sy-stage-bg, none);
  background-position: center;
  background-size: cover;
  filter: blur(22px) brightness(0.32) saturate(0.75);
  opacity: 0.8;
  transform: scale(1.08);
}

.sy-gallery-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(212, 168, 67, 0.05), transparent 60%),
    linear-gradient(180deg, rgba(5, 4, 3, 0.16), rgba(5, 4, 3, 0.58));
}

.sy-gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--r3-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8f8676;
}

.sy-gallery-counter {
  color: var(--r3-gold);
  white-space: nowrap;
}

.sy-gallery-hint {
  color: #8f8676;
  text-align: right;
}

.sy-gallery-thumbs {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 6px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 168, 67, 0.5) transparent;
}

.sy-gallery-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 90px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(242, 234, 217, 0.16);
  background: #0a0908;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s ease,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  transition-delay: calc(var(--i, 0) * 40ms);
}

.sy-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
}

.sy-gallery-thumb:hover {
  border-color: rgba(212, 168, 67, 0.75);
}

.sy-gallery-thumb.is-active {
  border-color: var(--r3-gold);
  box-shadow: 0 0 0 1px var(--r3-gold);
}

.sy-thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 9, 8, 0.35);
  color: #fff8e7;
  font-size: 12px;
}

.sy-media-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.4s ease,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.sy-media-layer.is-active {
  opacity: 1;
  transform: none;
}

.sy-media-layer.is-leaving {
  opacity: 0;
  transform: translateY(-12px) scale(0.985);
}

.sy-media-layer img,
.sy-media-layer video {
  position: absolute;
  top: 8px;
  left: 8px;
  display: block;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
}

.sy-media-layer img {
  user-select: none;
}

.sy-media-layer video {
  background: #000;
}

.sy-modal-panel.is-revealed .sy-gallery-stage,
.sy-modal-panel.is-revealed .sy-gallery-toolbar,
.sy-modal-panel.is-revealed .sy-modal-body > * {
  opacity: 1;
  transform: translateY(0);
}

.sy-gallery-stage,
.sy-gallery-toolbar,
.sy-modal-body > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.45s ease,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sy-gallery-toolbar {
  transition-delay: 0.06s;
}

.sy-modal-panel.is-revealed .sy-gallery-thumb {
  opacity: 1;
  transform: translateY(0);
}

.sy-modal-panel.is-revealed .sy-modal-kicker {
  transition-delay: 0.04s;
}

.sy-modal-panel.is-revealed .sy-modal-body h2 {
  transition-delay: 0.08s;
}

.sy-modal-panel.is-revealed .sy-modal-copy {
  transition-delay: 0.12s;
}

.sy-gallery-media-col.is-single .sy-gallery-thumbs {
  display: none;
}

.sy-gallery-media-col.is-single .sy-gallery-hint {
  display: none;
}

.sy-modal-body {
  min-height: 0;
  padding: clamp(28px, 4vw, 50px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sy-modal-kicker {
  display: block;
  margin-bottom: 10px;
  font-family: var(--r3-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--r3-gold);
}

.sy-modal-body h2 {
  margin: 0 0 20px;
  font-family: var(--r3-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.sy-modal-panel.is-ledger .sy-modal-body {
  padding: clamp(26px, 3.2vw, 44px);
}

.sy-modal-panel.is-ledger .sy-modal-body h2 {
  font-size: clamp(20px, 2.1vw, 28px);
}

.sy-modal-copy {
  color: var(--r3-muted);
  font-size: 15px;
  line-height: 1.78;
}

.sy-modal-copy p {
  margin: 0 0 1.15em;
}

.sy-modal-copy p:last-child {
  margin-bottom: 0;
}

.sy-modal-copy ul {
  display: grid;
  gap: 11px;
  margin: 0 0 1.3em;
  padding: 0;
  list-style: none;
}

.sy-modal-copy li {
  margin: 0;
}

.sy-modal-copy a {
  color: var(--r3-gold-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--r3-line);
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.sy-modal-copy a:hover {
  color: var(--r3-ink);
  border-color: var(--r3-ink);
}

.sy-modal-price {
  display: inline-block;
  margin-top: 2px;
  padding: 7px 12px;
  border: 1px solid var(--r3-line);
  border-radius: 999px;
  font-family: var(--r3-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--r3-gold-bright);
}

/* ------------------------------------------------------------------ */
/* Light theme overrides                                              */
/* ------------------------------------------------------------------ */

html[data-theme="light"] .r3-nav {
  background: linear-gradient(to bottom, rgba(246, 241, 230, 0.94), rgba(246, 241, 230, 0));
}

html[data-theme="light"] .r3-marquee {
  background: rgba(246, 241, 230, 0.72);
}

html[data-theme="light"] .r3-stat {
  background: rgba(255, 250, 240, 0.92);
}

html[data-theme="light"] .r3-proj {
  background: linear-gradient(160deg, #fffaf0, #f1e8d7);
}

html[data-theme="light"] .r3-proj:hover {
  border-color: var(--r3-gold);
}

html[data-theme="light"] .r3-proj-index {
  -webkit-text-stroke-color: rgba(122, 86, 6, 0.42);
}

html[data-theme="light"] .r3-skill-group {
  background: #fffaf0;
}

html[data-theme="light"] .r3-svc {
  background: #fffaf0;
}

html[data-theme="light"] .r3-svc:hover {
  background: linear-gradient(160deg, rgba(122, 86, 6, 0.07), #fffaf0);
  border-color: var(--r3-gold);
}

html[data-theme="light"] .r3-fieldcard {
  background: rgba(255, 250, 240, 0.97);
  border-color: var(--r3-line);
  box-shadow: 0 24px 60px rgba(74, 55, 18, 0.2);
}

html[data-theme="light"] .r3-contact {
  background: linear-gradient(to bottom, transparent, rgba(232, 220, 197, 0.72));
}

html[data-theme="light"] .r3-pre-panel {
  background: #f6f1e6;
  border-right-color: rgba(122, 86, 6, 0.08);
}

html[data-theme="light"] .r3-grain {
  opacity: 0.032;
  mix-blend-mode: multiply;
}

html[data-theme="light"] .r3-canvas {
  opacity: 0.55;
}

html[data-theme="light"] .r3-proj-preview {
  background: linear-gradient(160deg, #e9dfcc, #f6f1e6);
}

html[data-theme="light"] .r3-proj-preview::after {
  background: linear-gradient(180deg, rgba(122, 86, 6, 0.06), transparent 30%, rgba(246, 241, 230, 0.2));
  box-shadow: inset 0 0 0 1px rgba(26, 21, 14, 0.05);
}

html[data-theme="light"] .r3-portrait-ascii {
  background-image: linear-gradient(115deg, #a9862e 0%, #7a5606 38%, #c8a45a 50%, #7a5606 62%, #a9862e 100%);
}

html[data-theme="light"] .r3-cursor-ring {
  border-color: rgba(122, 86, 6, 0.55);
}

html[data-theme="light"] .r3-btn-gold {
  border-color: var(--sy-gold-solid);
  background: var(--sy-gold-solid);
  color: var(--sy-on-gold);
}

html[data-theme="light"] .r3-btn-gold:hover {
  border-color: var(--r3-gold);
  background: var(--r3-gold);
  color: var(--sy-on-gold);
}

html[data-theme="light"] .r3-price.is-free {
  background: var(--sy-gold-solid);
  border-color: var(--sy-gold-solid);
  color: var(--sy-on-gold);
}

html[data-theme="light"] .sy-service-media::after {
  background: linear-gradient(180deg, rgba(26, 21, 14, 0.16), transparent 28%, rgba(26, 21, 14, 0.42));
}

html[data-theme="light"] .sy-service-no {
  -webkit-text-stroke-color: rgba(255, 250, 240, 0.9);
}

html[data-theme="light"] .sy-service-cta {
  border-color: rgba(255, 250, 240, 0.5);
  background: rgba(26, 21, 14, 0.58);
  color: #fff8e7;
}

html[data-theme="light"] .sy-modal-backdrop {
  background: rgba(246, 241, 230, 0.74);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 899px) {
  .sy-highlights-grid {
    grid-template-columns: 1fr;
  }

  .sy-highlights-head {
    display: block;
  }

  .sy-highlights-head p {
    margin-top: 7px;
  }

  .sy-capabilities {
    grid-template-columns: 1fr;
  }

  .sy-capability:nth-child(odd),
  .sy-capability:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .sy-services-grid {
    grid-template-columns: 1fr;
  }

  .sy-service-cta {
    opacity: 1;
    transform: none;
  }

  .sy-service-open {
    display: none;
  }

  .sy-modal {
    align-items: end;
    padding: 0;
  }

  .sy-modal-panel {
    width: 100%;
    height: 92dvh;
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
  }

  .sy-gallery-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .sy-gallery-media-col {
    flex: 0 0 auto;
    gap: 8px;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--r3-line);
  }

  .sy-gallery-stage {
    flex: 0 0 auto;
    height: 42dvh;
    aspect-ratio: auto;
  }

  .sy-gallery-thumbs {
    height: 58px;
  }

  .sy-gallery-thumb {
    width: 64px;
    height: 50px;
  }

  .sy-gallery-hint {
    display: none;
  }

  .sy-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 20px calc(22px + env(safe-area-inset-bottom));
    overflow: auto;
  }

  .sy-modal-body h2 {
    padding-right: 0;
  }

  .sy-modal-panel.is-ledger .sy-modal-body h2 {
    font-size: 22px;
  }
}

@media (max-width: 520px) {
  .sy-intro__kicker {
    font-size: 8px;
    letter-spacing: 0.28em;
  }

  .sy-intro__hint {
    font-size: 8px;
  }

  .r3-hero-cta .r3-btn-cv {
    width: 100%;
  }

  .sy-highlights-head {
    margin-bottom: 14px;
  }

  .sy-capability {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 20px 0;
  }

  .sy-modal-body h2 {
    font-size: 28px;
  }
}

@media (max-width: 380px) {
  .r3-nav-time {
    display: none;
  }

  .sy-modal-body h2 {
    font-size: 26px;
  }

  .sy-modal-panel.is-ledger .sy-modal-body h2 {
    font-size: 18px;
  }
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                     */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .sy-intro {
    display: none !important;
  }

  .sy-intro__letter,
  .sy-intro__kicker,
  .sy-intro__hint,
  .sy-intro::after {
    animation: none !important;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .sy-said,
  .sy-line-b,
  .sy-line-c,
  .sy-hi {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .sy-highlight,
  .sy-highlight-media img,
  .sy-highlight-cta,
  .sy-service,
  .sy-service-media img,
  .sy-service-cta,
  .sy-modal-backdrop,
  .sy-modal-panel,
  .sy-gallery-stage,
  .sy-gallery-toolbar,
  .sy-gallery-thumb,
  .sy-media-layer,
  .sy-modal-body > *,
  .sy-theme-toggle,
  .r3-hero-cta .r3-btn-cv,
  .r3-hero-cta .r3-btn-cv span {
    transition: none !important;
  }

  .sy-gallery-stage,
  .sy-gallery-toolbar,
  .sy-gallery-thumb,
  .sy-modal-body > * {
    opacity: 1 !important;
    transform: none !important;
  }

  html.sy-modal-open .r3-root,
  html.sy-modal-open .r3-nav {
    transition: none !important;
  }
}
