/* Cursor dimensions + blend mode */
.layout-um3iI.layout-1oy0ih7 {
  width: 26px;
  height: 26px;
  mix-blend-mode: difference;
  overflow: hidden;
  will-change: var(--site-will-change-override, transform);
}
@media (hover: hover) {
  [data-site-root] { cursor: none; }
  [data-site-root] a,
  [data-site-root] button,
  [data-site-root] input,
  [data-site-root] textarea,
  [data-site-root] [tabindex] { cursor: none; }
}

/* Work-card hover: title + gradient overlay */
.layout-107nacr, .layout-1n3chbh {
  transition: opacity 0.25s ease;
}
.layout-iF7NM:hover .layout-107nacr,
.layout-iF7NM:hover .layout-1n3chbh {
  opacity: 1 !important;
}

/* Footer wrapper: transparent scroll spacer */
.layout-xivj96-container {
  background-color: transparent;
}

/* Scale the name against its column, including the space taken by the portrait. */
.home-profile .home-name {
  container-type: inline-size;
}

.home-name-heading {
  width: 100%;
  margin: 0;
  color: var(--token-e9abed44-df8b-4765-bbfe-7c072006d47b, #121114);
  font-family: "AV Estiana Bold", "AV Estiana Bold Placeholder", sans-serif;
  font-feature-settings: "blwf" on, "cv09" on, "cv03" on, "cv04" on, "cv11" on;
  font-size: min(16.3125rem, calc(22vw - 2rem));
  font-size: min(16.3125rem, 26.75cqi);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.09em;
  text-transform: uppercase;
}

.home-name-heading span {
  display: block;
  white-space: nowrap;
}

.home-hero .home-portrait {
  width: clamp(10.3125rem, calc(20vw - 1.25rem), 15.75rem);
  height: auto;
}

@media (min-width: 810px) {
  section.home-hero[data-site-name="Hero"] {
    padding-inline: clamp(1.875rem, calc(10.8vw - 3.6rem), 5rem);
  }
}

@media (max-width: 809.98px) {
  .home-hero .home-profile {
    gap: clamp(1rem, 4vw, 1.875rem);
  }

  .home-hero .layout-1umilaq {
    padding-block-start: clamp(6.25rem, 14vh, 8.75rem);
  }

  .home-hero .home-portrait {
    width: clamp(6.5rem, 27vw, 10.3125rem);
  }

  .home-name-heading {
    font-size: min(9.5rem, calc(26vw - 0.75rem));
    font-size: min(9.5rem, 26.75cqi);
  }

  .home-about p.rich-text {
    --site-text-alignment: start !important;
  }
}

/* Nav icon grid squares: transition for converge/spread animation */
.layout-1vrx0im, .layout-2irnel, .layout-ryl9c1, .layout-a4mw7x {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Status dot pulse */
@keyframes cos-pulse {
  0%   { transform: scale(1);   opacity: 0.65; }
  70%  { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* Avatar pixel burst: snap in, hold, fade */
@keyframes cos-pixel-in {
  0%   { transform: scale(0);   opacity: 0; }
  8%   { transform: scale(1.1); opacity: 1; }
  80%  { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1);   opacity: 0; }
}

/* Avatar pixel burst: snap in, hold, rotate 90°, fade */
@keyframes cos-pixel-spin {
  0%   { transform: scale(0)   rotate(0deg);  opacity: 0; }
  5%   { transform: scale(1.1) rotate(0deg);  opacity: 1; }
  37%  { transform: scale(1)   rotate(0deg);  opacity: 1; }
  62%  { transform: scale(1)   rotate(90deg); opacity: 1; }
  80%  { transform: scale(1)   rotate(90deg); opacity: 1; }
  100% { transform: scale(1)   rotate(90deg); opacity: 0; }
}

/* Contact heading across viewport sizes. */
.contact-page .layout-styles-preset-bglb1i:not(.rich-text-wrapper),
.contact-page .layout-styles-preset-bglb1i.rich-text-wrapper h1 {
  --site-font-size: 174px !important;
  --site-line-height: 1em !important;
}
@media (max-width: 1199px) and (min-width: 810px) {
  .contact-page .layout-styles-preset-bglb1i:not(.rich-text-wrapper),
  .contact-page .layout-styles-preset-bglb1i.rich-text-wrapper h1 {
    --site-font-size: 130px !important;
  }
}
@media (max-width: 809px) {
  .contact-page .layout-styles-preset-bglb1i:not(.rich-text-wrapper),
  .contact-page .layout-styles-preset-bglb1i.rich-text-wrapper h1 {
    --site-font-size: 90px !important;
  }
}

/* Hidden sections */

/* Floating nav: fixed, transparent */
header.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  overflow: visible !important;
  background-color: transparent !important;
  transition: padding-top 0.4s ease, padding-bottom 0.4s ease;
}
header.site-header[data-border]::after { display: none; }
header.site-header .layout-22gwm9-container {
  transition: width 0.4s ease, height 0.4s ease;
}
header.site-header .layout-89dhfu p.rich-text {
  transition: font-size 0.4s ease;
}
header.site-header .layout-1iby9z9 {
  transition: background 0.4s ease, border-radius 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

/* Nav links: collapsed before JS opens them */
[data-cos-nav] { max-width: 0; overflow: hidden; }
[data-cos-nav], [data-cos-nav] nav { background: transparent !important; }

[data-cos-nav-toggle] {
  appearance: none;
  background: transparent;
  border: 0;
}

[data-cos-nav-toggle]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

[data-cos-nav-toggle]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}


/* Scrolled state: tighter padding */
header.site-header.cos-scrolled {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  padding-right: 24px !important;
}
header.site-header.cos-scrolled .layout-22gwm9-container {
  width: 24px !important;
  height: var(--site-aspect-ratio-supported, 24px) !important;
}
header.site-header.cos-scrolled .layout-89dhfu p.rich-text {
  font-size: 18px !important;
}

/* Scrolled state: glass pill on logo */
header.site-header.cos-scrolled .layout-1iby9z9 {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 8px;
  box-shadow: none;
  padding: 8px 12px;
}

/* Scrolled state: glass pill on menu (snaps instantly — avoids wide-frost flash) */
header.site-header.cos-scrolled .layout-e4ig5p {
  flex: none !important;
  width: auto !important;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 8px;
  box-shadow: none;
  padding: 8px 12px;
}
header.site-header.cos-scrolled .layout-0ahr3.layout-85c39k {
  gap: 16px !important;
}

/* Footer font sizes */
footer.site-footer .layout-styles-preset-v5rub6:not(.rich-text-wrapper),
footer.site-footer .layout-styles-preset-v5rub6.rich-text-wrapper h4 {
  --site-font-size: 50px;
}
@media (max-width: 1199px) and (min-width: 810px) {
  footer.site-footer .layout-styles-preset-v5rub6:not(.rich-text-wrapper),
  footer.site-footer .layout-styles-preset-v5rub6.rich-text-wrapper h4 {
    --site-font-size: 40px;
  }
}
@media (max-width: 809px) {
  footer.site-footer .layout-styles-preset-v5rub6:not(.rich-text-wrapper),
  footer.site-footer .layout-styles-preset-v5rub6.rich-text-wrapper h4 {
    --site-font-size: 34px;
  }
}
footer.site-footer .layout-styles-preset-1l7bfec:not(.rich-text-wrapper),
footer.site-footer .layout-styles-preset-1l7bfec.rich-text-wrapper p {
  --site-font-size: 18px;
}
footer.site-footer .layout-styles-preset-1fdwjqn:not(.rich-text-wrapper),
footer.site-footer .layout-styles-preset-1fdwjqn.rich-text-wrapper p {
  --site-font-size: 18px;
}
@media (max-width: 1199px) and (min-width: 810px) {
  footer.site-footer .layout-styles-preset-1fdwjqn:not(.rich-text-wrapper),
  footer.site-footer .layout-styles-preset-1fdwjqn.rich-text-wrapper p {
    --site-font-size: 16px;
  }
}
@media (max-width: 809px) {
  footer.site-footer .layout-styles-preset-1fdwjqn:not(.rich-text-wrapper),
  footer.site-footer .layout-styles-preset-1fdwjqn.rich-text-wrapper p {
    --site-font-size: 14px;
  }
}
footer.site-footer .layout-p15zb8 {
  padding-top: 84px !important;
  padding-bottom: 84px !important;
}

/* Animated underline: nav + footer social links */
a.layout-styles-preset-1xepc05,
a.layout-styles-preset-dsdgjd {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0% calc(100% + 4px);
  background-size: 0% 1px;
  transition: background-size 0.3s ease !important;
  text-decoration: none !important;
}
a.layout-styles-preset-1xepc05 {
  --site-link-hover-text-color: var(--token-e9abed44-df8b-4765-bbfe-7c072006d47b, #121114);
}
a.layout-styles-preset-dsdgjd {
  --site-link-hover-text-color: var(--token-c21010f9-5cb6-4d3d-85fc-4227a6481949, #fff);
}
a.layout-styles-preset-1xepc05:hover,
a.layout-styles-preset-dsdgjd:hover {
  background-size: 100% 1px;
  color: inherit !important;
}

/* Email copy element: underline on text only (excludes SVG icon) */
.layout-x0dm4m {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0% calc(100% + 4px);
  background-size: 0% 1px;
  transition: background-size 0.3s ease;
}
.layout-1jpg09i-container:hover .layout-x0dm4m {
  background-size: 100% 1px;
}

/* Contact form: tighten gaps between fields and button */
.contact-page .contact-form { gap: 0 !important; }
.contact-page .layout-c0nbn7  { margin-bottom: 20px; }
.contact-page .layout-1cir3d4 { margin-bottom: 4px; }
.contact-page .layout-n9u796  { margin-bottom: 8px; }

/* Contact heading across viewport sizes. */
.contact-page .layout-1rr4hax {
  place-content: flex-start !important;
  align-items: flex-start !important;
}

/* CTA link buttons: animated underline on text (same effect as nav links) */
a.layout-WqizJ p.rich-text,
a.layout-9w2via p.rich-text {
  display: inline-block;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0% calc(100% + 2px);
  background-size: 0% 1px;
  transition: background-size 0.3s ease;
}
a.layout-WqizJ:hover p.rich-text,
a.layout-9w2via:hover p.rich-text {
  background-size: 100% 1px;
}

/* Submit button: restore pointer cursor + text underline on hover when enabled */
button.layout-rccim:not(:disabled) {
  cursor: pointer !important;
}
button.layout-rccim:not(:disabled):hover p.rich-text {
  text-decoration: underline;
}
