/* hiresia.com — static CV page. Colours follow the Lovable source; type is DM Sans (EdgeCX brand). */

:root {
  --radius: 0.25rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.22 0.04 260);
  --card: oklch(1 0 0);
  --primary: oklch(0.3 0.08 260);
  --primary-foreground: oklch(0.98 0.01 85);
  --muted: oklch(0.95 0.015 85);
  --muted-foreground: oklch(0.48 0.03 260);
  --accent: oklch(0.72 0.16 60);
  --accent-foreground: oklch(0.2 0.04 260);
  --success: oklch(0.55 0.15 150);
  --border: oklch(0.86 0.02 85);
  --input: oklch(0.86 0.02 85);
  --ring: oklch(0.72 0.16 60);
  --font: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-optical-sizing: auto;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ----- buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--ring);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.btn-primary:hover {
  background: color-mix(in oklch, var(--primary) 90%, black);
}

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--input);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-sm {
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
}

.btn-lg {
  height: 2.5rem;
  padding: 0 2rem;
  border-radius: calc(var(--radius) - 2px);
}

.btn-cta {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  margin-top: 2rem;
}

/* ----- nav ----- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--background) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
}

.nav.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.nav-links a:not(.btn) {
  display: none;
  color: var(--muted-foreground);
}

.nav-links a:not(.btn):hover {
  color: var(--foreground);
}

@media (min-width: 640px) {
  .nav-links a:not(.btn) {
    display: inline;
  }
}

/* ----- hero ----- */

.hero {
  position: relative;
  height: 88vh;
  min-height: 520px;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    height: 100vh;
  }
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-mobile {
  object-position: 50% 30%;
}

.hero-img-desktop {
  display: none;
  object-position: 70% 30%;
}

@media (min-width: 768px) {
  .hero-img-mobile {
    display: none;
  }
  .hero-img-desktop {
    display: block;
  }
}

.hero-copy-wrap {
  display: none;
  position: absolute;
  inset: 0;
  max-width: 72rem;
  margin: 0 auto;
  align-items: center;
  padding: 0 1.5rem;
}

.hero-copy {
  max-width: 36rem;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero-sub {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .hero-copy-wrap {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 6rem;
  }
  .hero-sub {
    font-size: 1.5rem;
  }
}

/* ----- paper / CV cards ----- */

.paper-wrap {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: -4rem auto 0;
  filter:
    drop-shadow(0 24px 40px oklch(0.22 0.04 260 / 0.28))
    drop-shadow(0 2px 4px oklch(0.22 0.04 260 / 0.1));
}

.paper-wrap + .paper-wrap {
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .paper-wrap {
    margin-top: -10rem;
  }
  .paper-wrap + .paper-wrap {
    margin-top: 2.5rem;
  }
}

.paper {
  position: relative;
  background: var(--card);
  padding: 3rem 1.5rem;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

@media (min-width: 768px) {
  .paper {
    padding: 4rem;
  }
}

.page-curl {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
  background: linear-gradient(45deg, oklch(0.9 0.008 85) 0%, oklch(0.96 0.005 85) 49%, transparent 50%);
  box-shadow: -1px 1px 2px oklch(0.22 0.04 260 / 0.12);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.cv-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--foreground);
  padding-bottom: 1.5rem;
}

.cv-name-mobile h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.cv-name-mobile p {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary);
}

.cv-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .cv-name-mobile {
    display: none;
  }
  .cv-kicker {
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    color: var(--foreground);
  }
}

/* Mobile only: shorter hero, hide Meet Sia intro, start at the CV heading. */
@media (max-width: 767px) {
  .hero {
    height: 75vh;
    min-height: 70vh;
    max-height: 80vh;
  }

  .hero-img-mobile {
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
  }

  .cv-name-mobile {
    display: none;
  }
}

/* ----- sections ----- */

.section {
  scroll-margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.paper--continued > .section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.section-body {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .section--split {
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 3rem;
  }
  .section--split .section-body {
    margin-top: 0;
  }
}

/* ----- profile ----- */

.profile {
  scroll-margin-top: 5rem;
  margin-top: 2.5rem;
}

.profile-identity h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.profile-role {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.profile-specialism {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

.available {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--success);
}

.available-mark {
  display: flex;
  width: 1rem;
  height: 1rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 10px;
  line-height: 1;
}

.key-facts {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.key-facts dt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.key-facts dd {
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  .key-facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .profile {
    display: grid;
    grid-template-columns: 1fr 240px;
    column-gap: 2.5rem;
  }
  .profile-identity {
    grid-column: 1;
    grid-row: 1;
  }
  .key-facts {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    border-top: 0;
    border-bottom: 0;
    border-left: 1px solid var(--border);
    padding: 0 0 0 2rem;
    align-content: start;
  }
  .key-facts > div:last-child {
    margin-bottom: 2rem;
  }
  .profile-bio {
    grid-column: 1;
    grid-row: 2;
    margin-top: 2.5rem;
  }
}

.profile-bio {
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .profile-bio {
    padding: 0 0 1.5rem;
  }
}

.profile-bio h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.625;
}

.profile-more > .more-body {
  margin-top: 1rem;
}

.more-body p {
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.more-body p + p {
  margin-top: 1rem;
}

.profile-more > summary {
  list-style: none;
  cursor: pointer;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-underline-offset: 4px;
  width: max-content;
}

.profile-more > summary::-webkit-details-marker,
.profile-more > summary::marker {
  display: none;
  content: "";
}

.profile-more > summary::after {
  content: "Read more";
}

.profile-more[open] > summary::after {
  content: "Read less";
}

.profile-more > summary:hover {
  text-decoration: underline;
}


.lang-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  color: inherit;
  text-align: left;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
  cursor: pointer;
}

.lang-btn:hover {
  text-decoration: underline;
}

.lang-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(32rem, calc(100% - 2rem));
  max-height: 85vh;
  overflow: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 24px 60px oklch(0.22 0.04 260 / 0.22);
}

.lang-dialog::backdrop {
  background: oklch(0.22 0.04 260 / 0.4);
}

.lang-dialog-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
}

.lang-dialog-close button {
  appearance: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  color: var(--muted-foreground);
}

.lang-dialog-close button:hover {
  color: var(--foreground);
}

.lang-dialog h3 {
  font-size: 1.25rem;
  font-weight: 700;
  padding-right: 2rem;
}

.lang-dialog > p {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.lang-list {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1.5rem;
  list-style: none;
}

.lang-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 400;
}

/* ----- experience ----- */

.job + .job {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2.5rem;
}

.job h3,
.exp-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.exp-block h3 {
  font-size: 1.125rem;
}

.job p,
.muted-text {
  margin-top: 0.75rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.subhead {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.icon-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem 2.5rem;
  list-style: none;
}

.icon-list li,
.stack-list li,
.row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .icon-list {
    grid-template-columns: 1fr 1fr;
  }
}

.dash-list {
  margin-top: 0.75rem;
  list-style: none;
  color: var(--muted-foreground);
}

.dash-list li + li {
  margin-top: 0.5rem;
}

.dash-list li::before {
  content: "—";
  margin-right: 0.5rem;
}

/* ----- achievements ----- */

.achievements {
  display: grid;
  gap: 2.5rem 2rem;
}

.achievements > div {
  border-top: 2px solid var(--accent);
  padding-top: 1rem;
}

.achievements dt {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.achievements dd {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .achievements {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .achievements {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ----- definition rows ----- */

.rows {
  border-top: 0;
}

.row {
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.rows .row:first-child {
  padding-top: 0;
}

.rows .row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.row dt,
.row .row-label {
  font-size: 1.125rem;
  font-weight: 600;
}

.row dd,
.row .row-text {
  margin-top: 0.25rem;
  color: var(--muted-foreground);
}

.stack-list {
  list-style: none;
}

.stack-list li + li {
  margin-top: 1.25rem;
}

.stack-list span {
  flex: 1;
  color: var(--muted-foreground);
}

.icon {
  flex-shrink: 0;
  color: var(--accent);
  display: block;
}

.icon-20 {
  width: 20px;
  height: 20px;
  margin-top: 0.25rem;
}

.icon-18 {
  width: 18px;
  height: 18px;
  margin-top: 0.125rem;
}

.icon-15 {
  width: 15px;
  height: 15px;
}

/* ----- tags ----- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

/* ----- close / footer ----- */

.close {
  margin-top: 1.5rem;
  border-top: 2px solid var(--foreground);
  padding-top: 3rem;
  text-align: center;
  scroll-margin-top: 5rem;
}

.close h2 {
  font-size: 1.875rem;
  font-weight: 700;
}

.close > p {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  color: var(--muted-foreground);
}

.placeholder-note {
  margin: 1rem auto 0;
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.placeholder-note strong {
  font-weight: 600;
  color: var(--foreground);
}

.site-footer {
  margin-top: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 3rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  height: 1.75rem;
  width: auto;
}

.footer-rule {
  height: 1.25rem;
  width: 1px;
  background: var(--border);
}

.page {
  min-height: 100vh;
  padding-bottom: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .nav {
    transition: none;
  }
}

.btn[aria-disabled="true"] {
  cursor: not-allowed;
  pointer-events: none;
}
