/* ================================================
   sru company — Yeseul LEE Portfolio
   ================================================ */

:root {
  --bg:        #1C1C1C;
  --text:      #E8E8E8;
  --dim:       rgba(232,232,232,0.4);
  --border:    rgba(232,232,232,0.1);
  --mint:      #C2ECDA;
  --lime:      #C8F135;
  --white:     #FFFFFF;
  --nav-h:     60px;
  --gutter:    clamp(24px, 5vw, 80px);
  --gap:       16px;
  --ease:      cubic-bezier(.25,.1,.25,1);
  --ease-out:  cubic-bezier(0,0,.2,1);
  --font:      'IBM Plex Mono', 'Gothic A1', monospace;
  --hand:      'Caveat', Georgia, serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }

/* ── NAV ── */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(28,28,28,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--gutter);
}
.logo {
  display: flex;
  align-items: center;
  transition: opacity .2s;
}
.logo:hover { opacity: .5; }
.logo-img {
  height: 22px;
  width: auto;
  filter: none; /* white logo on dark bg */
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color .2s;
}
.nav-links a:hover { color: var(--lime); }
.nav-lang {
  display: flex;
  gap: 2px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}
.lang-btn {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--dim);
  padding: 2px 5px;
  transition: color .2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.lang-active { color: var(--lime); }

/* ── WORK SECTION ── */
.work-section {
  padding: 80px var(--gutter) 100px;
}
.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}
.section-title {
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 300;
  letter-spacing: -.03em;
}
.count-label {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: .06em;
}

/* Filter */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.f-btn {
  padding: 7px 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid transparent;
  color: var(--dim);
  transition: all .2s var(--ease);
}
.f-btn:hover {
  color: var(--text);
  border-color: var(--border);
}
.f-btn.active {
  color: #111;
  background: var(--lime);
  border-color: var(--lime);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  transition: opacity .18s ease, transform .18s ease;
}
.grid.fading {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* Card */
.card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  animation: cardIn .5s var(--ease-out) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card:hover { z-index: 1; }

/* Color-only card */
.card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
}

/* Image card */
.card--img { background: #1a1a1a; }

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s var(--ease);
}
.card--img:hover .card-img { transform: scale(1.06); }

.card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.3)  45%,
    rgba(0,0,0,.08) 75%,
    transparent 100%
  );
  transition: opacity .3s;
}
.card--img:hover .card-gradient {
  background: linear-gradient(
    to top,
    rgba(0,0,0,.9)  0%,
    rgba(0,0,0,.45) 55%,
    rgba(0,0,0,.15) 80%,
    transparent 100%
  );
}

.card-inner--img {
  color: #fff;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.card-cat {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .6;
}
.card-yr {
  font-size: 10px;
  opacity: .5;
  letter-spacing: .04em;
}
.card-bottom {}
.card-title {
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 5px;
}
.card-sub {
  font-size: 12px;
  opacity: .65;
  margin-bottom: 4px;
}
.card-client {
  font-size: 10px;
  opacity: .45;
  letter-spacing: .03em;
}

/* Hover overlay */
.card-over {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.card--img .card-over { background: rgba(0,0,0,.2); }
.card:not(.card--img) .card-over { background: rgba(0,0,0,.35); }
.card:hover .card-over { opacity: 1; }
.card-cta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  padding: 9px 22px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 100px;
}

/* Modal image variant */
.modal-vis--img {
  position: relative;
}
.modal-vis--img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
  pointer-events: none;
}
.modal-vis--img .modal-vis-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

/* Pagination */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.pg-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 400;
  border-radius: 50%;
  border: 1px solid transparent;
  color: var(--dim);
  transition: all .18s var(--ease);
  font-family: var(--font);
}
.pg-btn:hover:not([disabled]) {
  color: var(--text);
  border-color: var(--border);
}
.pg-btn.active {
  background: var(--lime);
  color: #111;
  border-color: var(--lime);
}
.pg-btn[disabled] {
  opacity: .2;
  cursor: default;
  pointer-events: none;
}
.pg-nav { font-size: 15px; }

/* ── ABOUT ── */
.about-section {
  background: #111111;
  color: var(--white);
  padding: calc(var(--nav-h) + 80px) var(--gutter) 100px;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.about-top {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 40px;
}
.about-top .section-title {
  color: var(--white);
}
.about-body .section-title {
  color: var(--white);
  margin-bottom: 28px;
}
.about-lead {
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 20px;
}
.about-p {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,.55);
  margin-bottom: 12px;
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.skill-head {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 12px;
}
.skill-col li {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,.6);
  line-height: 2.3;
}

.about-visual {
  display: flex;
  justify-content: center;
}
.about-card {
  position: relative;
  width: clamp(180px, 26vw, 300px);
  aspect-ratio: .707;
  background: var(--mint);
  display: flex;
  align-items: flex-end;
  padding: 10% 12%;
  box-shadow: 8px 16px 64px rgba(0,0,0,.3);
}
.about-card-yr {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(0,0,0,.35);
}
.about-sig {
  font-family: var(--hand);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

/* ── FOOTER ── */
footer {
  background: #111111;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 36px var(--gutter);
  color: var(--white);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-logo-img {
  height: 20px;
  width: auto;
  opacity: .7;
}
.footer-mid { text-align: center; }
.footer-mid p {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-bottom: 3px;
}
.footer-mid a {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding-bottom: 1px;
  transition: color .2s;
}
.footer-mid a:hover { color: var(--white); }
.footer-copy {
  font-size: 10px;
  color: rgba(255,255,255,.25);
  letter-spacing: .05em;
}
.footer-loc {
  max-width: 1100px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
}
.footer-loc-item {
  font-size: 10px;
  color: rgba(255,255,255,.25);
  letter-spacing: .04em;
}
.footer-loc-city {
  color: rgba(255,255,255,.4);
  margin-right: 6px;
}

/* ── MODAL ── */
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal-bg.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  overflow: hidden;
  border-radius: 8px;
  transform: translateY(24px) scale(.98);
  transition: transform .3s var(--ease);
  background: #252525;
}
.modal-bg.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-x {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10;
  font-size: 26px;
  font-weight: 300;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  line-height: 1;
  transition: background .2s;
}
.modal-x:hover { background: rgba(255,255,255,.22); }

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-vis {
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  transition: background .3s;
}
.modal-vis-content { width: 100%; }
.m-cat {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 10px;
}
.m-title {
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 8px;
  white-space: pre-line;
}
.m-sub {
  font-size: 15px;
  opacity: .65;
}

.modal-detail {
  background: #2E2E2E;
  padding: 48px 36px;
  display: flex;
  align-items: center;
  overflow-y: auto;
  max-height: 480px;
}
.meta-list { width: 100%; }
.meta-list dt {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
  margin-top: 20px;
}
.meta-list dt:first-child { margin-top: 0; }
.meta-list dd {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.meta-url {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: opacity .2s;
}
.meta-url:hover { opacity: .6; }

/* ── Mobile Nav Toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile Nav Drawer ── */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.nav-drawer.open {
  opacity: 1;
  pointer-events: all;
}
.nav-drawer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.nav-drawer-links a {
  font-size: clamp(28px, 9vw, 52px);
  font-weight: 300;
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--text);
  transition: color .2s;
}
.nav-drawer-links a:hover,
.nav-drawer-links .nav-current { color: var(--lime); }
.nav-drawer-lang {
  display: flex;
  gap: 12px;
  margin-top: 52px;
  border: none;
  padding: 0;
}
.nav-drawer-lang .lang-btn { font-size: 13px; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-top { padding-bottom: 28px; }
  .skills-grid { padding-top: 0; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-vis { min-height: 240px; }
  .modal-detail { max-height: none; }
  .contact-box { padding: 48px 28px 36px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-lang { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 20px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 10px; letter-spacing: .06em; }
  .about-section { padding: calc(var(--nav-h) + 48px) 20px 64px; }
  .work-section { padding: 56px 20px 80px; }
  .filter-row { gap: 6px; padding-bottom: 20px; margin-bottom: 24px; }
  .f-btn { padding: 6px 14px; font-size: 10px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-mid { text-align: left; }
  .cta-section { padding: 64px 20px; }
  .contact-box { padding: 44px 20px 32px; }
  .contact-title { font-size: 20px; margin-bottom: 28px; }
  .modal-x { top: 10px; right: 10px; }
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  padding: 100px var(--gutter);
  border-top: 1px solid var(--border);
}
.cta-btn {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 15px 44px;
  border: 1px solid var(--lime);
  border-radius: 100px;
  transition: background .25s var(--ease), color .25s var(--ease);
  cursor: pointer;
}
.cta-btn:hover {
  background: var(--lime);
  color: #111;
}

/* ── Contact Modal ── */
.contact-bg {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.contact-bg.open {
  opacity: 1;
  pointer-events: all;
}
.contact-box {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: #1E1E1E;
  border-radius: 8px;
  padding: 56px 48px 48px;
  transform: translateY(24px);
  transition: transform .3s var(--ease);
}
.contact-bg.open .contact-box {
  transform: translateY(0);
}
.contact-x {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 24px;
  font-weight: 300;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  transition: color .2s;
  cursor: pointer;
}
.contact-x:hover { color: var(--text); }
.contact-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}
.contact-title {
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 300;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 40px;
}
.contact-field {
  margin-bottom: 28px;
}
.contact-field label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 6px 0 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  outline: none;
  resize: none;
  transition: border-color .2s;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(232,232,232,.2);
}
.contact-field input:focus,
.contact-field textarea:focus {
  border-bottom-color: var(--lime);
}
.contact-submit {
  margin-top: 8px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #111;
  background: var(--lime);
  padding: 13px 36px;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity .2s;
}
.contact-submit:hover { opacity: .82; }
.contact-submit[disabled] { opacity: .4; cursor: default; }
[data-fs-success] { display: none; }
[data-fs-success].visible,
.contact-success.visible {
  display: block;
  text-align: center;
  padding: 40px 0 20px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--lime);
}
.contact-error-global {
  font-size: 12px;
  color: #ff6b6b;
  margin-bottom: 16px;
}
.contact-field-error {
  display: block;
  font-size: 11px;
  color: #ff6b6b;
  margin-top: 4px;
  min-height: 16px;
}
.contact-field input[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"] {
  border-bottom-color: #ff6b6b;
}
