/* ==========================================================================
   RE:DICEN — Re:Design Center
   ========================================================================== */

/* 1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --blue: #2460FD;
  --blue-light: #4A7DFF;
  --navy: #0B1D3D;
  --bg-soft: #F6F8FC;
  --bg-tint: #EDF0F7;
  --line: #D4D5D9;
  --muted: #9AA3B5;
  --text: #111;

  --header-h: 72px;
  --container: 1680px;
  --gutter: clamp(20px, 5vw, 96px);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.3, 1.5, .5, 1);
}

/* 2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Pretendard, sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
b { font-weight: 700; }

::selection { background: var(--blue); color: #fff; }

a:focus-visible,
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

[id] { scroll-margin-top: var(--header-h); }

/* Small text utilities used inside headings / copy */
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.c-blue { color: var(--blue); }
.c-navy { color: var(--navy); }
.small  { font-size: .8em; }

/* 3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { position: relative; padding: clamp(88px, 7vw, 170px) 0; }
.section--soft { background: var(--bg-soft); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.4vw, 26px);
  text-align: center;
}

.eyebrow {
  font-size: clamp(20px, 2.3vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-title {
  font-size: clamp(28px, 3.9vw, 60px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.04em;
  color: var(--navy);
  text-wrap: balance;
}

.section-lead {
  margin-top: clamp(10px, 1vw, 20px);
  font-size: clamp(16px, 1.56vw, 20px);
  font-weight: 300;
  line-height: 1.36;
  letter-spacing: -0.03em;
  color: #000;
}

.section-body { margin-top: clamp(40px, 5vw, 90px); }

/* Two-column media + text block (About, Vision) */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 3vw, 60px);
}

/* 4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, 0);
  transition: box-shadow .3s, background .3s;
}

.is-scrolled .site-header {
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--bg-tint), 0 10px 30px rgba(11, 29, 61, .06);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo { flex: none; }
.site-header__logo img { width: auto; height: 30px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: inherit;
}

.nav-link {
  position: relative;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--navy);
  transition: color .25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset: auto 0 2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .35s var(--ease);
}

.nav-link:hover { color: var(--blue); }
.nav-link.is-active { color: var(--blue); font-weight: 700; }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-cta {
  flex: none;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .25s;
}
.nav-cta:hover { background: var(--navy); }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

@media (max-width: 1180px) {
  .site-nav__links { display: none; }
}

/* 5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100vh, 1080px);
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__symbol {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 0;
  width: min(49vw, 940px);
}
.hero__symbol img { width: 100%; }

.hero__body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(40px, 8vw, 120px);
  padding-bottom: clamp(40px, 5vw, 80px);
}

.hero__title {
  font-size: clamp(38px, 5.2vw, 100px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.045em;
  color: #000;
}
.hero__title > span { display: block; }

.hero__points {
  margin-top: clamp(24px, 2.4vw, 44px);
  padding-left: clamp(0px, 15vw, 292px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: clamp(16px, 1.56vw, 25px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #000;
}

.hero__points li { display: flex; align-items: center; gap: 14px; }
.hero__points li::before {
  content: "";
  flex: none;
  width: .36em;
  height: .36em;
  border-radius: 50%;
  background: var(--blue);
}

.hero__tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 32px);
  padding-bottom: clamp(56px, 8vw, 150px);
}

.tag {
  display: block;
  padding: clamp(9px, .8vw, 14px) clamp(20px, 1.6vw, 32px);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: clamp(14px, 1.4vw, 27px);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background .3s, transform .35s var(--spring);
}
.tag:hover { background: var(--blue); transform: translateY(-4px); }

/* 6. Brand identity
   -------------------------------------------------------------------------- */
.brand { padding-top: clamp(48px, 5vw, 90px); }

.brand__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 3vw, 52px);
}

.brand__label {
  align-self: flex-start;
  font-size: clamp(16px, 1.56vw, 30px);
  font-weight: 300;
  color: #000;
}

.brand__logo { width: min(100%, 640px); margin-top: clamp(20px, 4vw, 80px); }
.brand__logo img { width: 100%; }

.brand__desc {
  text-align: center;
  font-size: clamp(16px, 1.3vw, 25px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: #000;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 2vw, 40px);
}

.keyword {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 999px;
  transition: background .3s, transform .35s;
}
.keyword:hover { background: var(--bg-tint); transform: translateY(-3px); }

.keyword__en {
  font-size: clamp(20px, 1.56vw, 22px);
  font-weight: 500;
  letter-spacing: .005em;
  color: var(--blue);
}

.keyword__ko {
  font-size: clamp(14px, 1.04vw, 18px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #000;
}

.palette {
  width: min(100%, 1200px);
  padding: clamp(10px, 2.3vw, 80px) clamp(20px, 3vw, 60px);
  border-radius: 12px;
  background: var(--bg-tint);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 2.2vw, 40px);
}

.swatch {
  flex: 1 1 260px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.swatch--blue { --swatch: #2460FD; --swatch-a20: #2460FD33; --swatch-a33: #2460FD55; }
.swatch--navy { --swatch: #0B1D3D; --swatch-a20: #0B1D3D33; --swatch-a33: #0B1D3D55; }

.swatch__chip {
  width: 100%;
  height: clamp(64px, 4.4vw, 84px);
  border: 0;
  border-radius: 4px;
  background: var(--swatch);
  color: #fff;
  font-size: clamp(20px, 1.56vw, 30px);
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 10px 30px var(--swatch-a20);
  transition: transform .35s var(--spring), box-shadow .35s;
}
.swatch__chip:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 22px 44px var(--swatch-a33);
}

.swatch__name {
  margin-top: 10px;
  font-size: clamp(17px, 1.3vw, 22px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #000;
}

.swatch__desc {
  font-size: clamp(14px, 1.04vw, 18px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* 7. About & Vision
   -------------------------------------------------------------------------- */
.about__media { flex: 1 1 380px; min-width: 0; }
.about__media img { width: 100%; max-width: 580px; }

.about__text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.4vw, 40px);
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: #000;
}
.about__text .lead { font-size: clamp(16px, 1.56vw, 20px); line-height: 1.5; }

.vision__body { max-width: 1200px; }

.vision__text {
  flex: 1.4 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.2vw, 40px);
  font-size: clamp(15px, 1.56vw, 20px);
  font-weight: 300;
  line-height: 1.36;
  letter-spacing: -0.03em;
  color: #000;
}

.vision__media { flex: 1 1 340px; min-width: 0; }
.vision__media img { width: 100%; max-width: 560px; margin: 0 auto; }

/* 8. What I do — service cards
   -------------------------------------------------------------------------- */
.services { max-width: 1480px; }

.services__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 20px;
}

.services__list > li {
  flex: 0 1 calc(33.333% - 20px);
  min-width: min(100%, 300px);
}

.service-card {
  position: relative;
  display: block;
  height: 100%;
  padding: clamp(28px, 2.4vw, 44px);
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(11, 29, 61, .07);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s;
}

.service-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.service-card__icon {
  width: clamp(60px, 4.2vw, 80px);
  height: clamp(60px, 4.2vw, 80px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tint);
  color: var(--blue);
  transition: background .35s, color .35s, transform .45s;
}

.service-card__arrow { color: #C9D0DE; transition: color .3s, transform .4s; }

.service-card__title {
  margin: clamp(22px, 2.2vw, 40px) 0 14px;
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #000;
}

.service-card__desc {
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.service-card:hover { border-color: var(--blue); transform: translateY(-10px); }
.service-card:hover .service-card__icon {
  background: var(--blue);
  color: #fff;
  transform: rotate(-8deg) scale(1.06);
}
.service-card:hover .service-card__arrow { color: var(--blue); transform: translate(3px, -3px); }

/* 9. Work — category blocks with masonry-like galleries
   -------------------------------------------------------------------------- */
.work { position: relative; }

.work-block { padding: clamp(64px, 8vw, 140px) 0; background: #fff; }
.work-block:nth-child(even) { background: var(--bg-soft); }

.work-block__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(36px, 5vw, 96px);
}

.work-block__intro {
  position: sticky;
  top: 120px;
  flex: 1 1 305px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 32px);
}

.work-block__label { display: flex; align-items: center; gap: 14px; }
.work-block__label .eyebrow { font-weight: 900; }

.work-block__count {
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
}

.work-block__title {
  font-size: clamp(30px, 3.6vw, 60px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.05em;
  color: #000;
}

.work-block__summary {
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: #000;
}

.work-block__desc {
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.work-block__gallery {
  flex: 3 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1vw, 10px);
}

/* A row of columns; each column's width ratio (--flex) and vertical
   offset (--offset) come from the markup. */
.gallery-row { display: flex; align-items: flex-start; gap: 0%; }

.gallery-col {
  flex: var(--flex) 1 0;
  min-width: 0;
  margin-top: var(--offset, 0);
  display: flex;
  flex-direction: column;
  gap: clamp(0px, 0vw, 0px);
}

.gallery-item {
  position: relative;
  display: block;
 /* background: #fff;
  box-shadow: 0 18px 40px rgba(11, 29, 61, .12);*/
  cursor: zoom-in;
  transition: transform .5s var(--ease), box-shadow .5s;
}

.gallery-item img { width: 100%; }

/* Colour overlay on hover */
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(36, 96, 253, .16);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}

.gallery-item:hover { transform: translateY(-10px); } /*.gallery-item:hover { transform: translateY(-10px); box-shadow: 0 34px 64px rgba(11, 29, 61, .22); }*/
.gallery-item:hover::before { opacity: 1; }

/* Non-clickable variant: same hover look, normal cursor */
.gallery-item--static { cursor: default; }

/* No colour overlay on hover (lift effect stays) */
.gallery-item--no-overlay::before { content: none; }

/* 10. Core strength cards
   -------------------------------------------------------------------------- */
.strengths {
  max-width: 1500px;
  margin-top: clamp(40px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}

.strength-card {
  --card-bg: #fff;
  --card-fg: #000;
  --card-text: var(--text);
  --tab-bg: var(--line);
  --tab-fg: #fff;

  position: relative;
  aspect-ratio: 380 / 530;
  min-height: 340px;
  padding: 0 clamp(24px, 1.5vw, 40px);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform .5s var(--ease), box-shadow .5s;
}

.strength-card--outline { border: 1px solid var(--line); }
.strength-card--tint  { --card-bg: var(--bg-tint); --tab-bg: var(--bg-tint); --tab-fg: rgba(0, 0, 0, .3); }
.strength-card--blue  { --card-bg: var(--blue); --card-fg: #fff; --card-text: #fff; --tab-bg: var(--blue); --tab-fg: rgba(255, 255, 255, .5); }
.strength-card--navy  { --card-bg: var(--navy); --card-fg: #fff; --card-text: #fff; --tab-bg: var(--navy); --tab-fg: rgba(255, 255, 255, .5); }

.strength-card__icon {
  color: var(--card-fg);
  transform-origin: left bottom;
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}

.strength-card__title {
  margin: clamp(28px, 3vw, 52px) 0 clamp(14px, 1.4vw, 24px);
  font-size: clamp(18px, 1.72vw, 25px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--card-fg);
}

.strength-card__desc {
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: var(--card-text);
}

.strength-card__tab {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: clamp(42px, 3.1vw, 60px);
  padding-left: clamp(24px, 2vw, 40px);
  border-top: 10px solid #fff;
  border-right: 10px solid #fff;
  border-top-right-radius: 22px;
  background: var(--tab-bg);
  color: var(--tab-fg);
  font-size: clamp(13px, 1.05vw, 20px);
  font-weight: 800;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  transition: width .55s var(--ease);
}

.strength-card:hover { transform: translateY(-14px); box-shadow: 0 30px 60px rgba(11, 29, 61, .18); }
.strength-card:hover .strength-card__icon { transform: translateY(-8px) scale(1.18) rotate(-6deg); }
.strength-card:hover .strength-card__tab { width: 78%; }

/* 11. Case study
   -------------------------------------------------------------------------- */
.case__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(28px, 2.4vw, 44px);
}

.case__intro {
  flex: 1.1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.2vw, 22px);
}

.case__title {
  margin: clamp(20px, 3vw, 56px) 0 clamp(6px, .6vw, 12px);
  font-size: clamp(28px, 2.6vw, 50px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.05em;
  color: #000;
}

.case-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: clamp(14px, 1.8vw, 34px);
}
.case-meta > div { display: flex; align-items: center; gap: 12px; }
.case-meta dt {
  flex: none;
  min-width: clamp(78px, 5.2vw, 100px);
  padding: 3px 10px;
  border-radius: 0 10px 10px 0;
  background: var(--blue);
  color: #fff;
  font-size: clamp(13px, .94vw, 16px);
  font-weight: 900;
}
.case-meta dd {
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #000;
}

.case-card {
  padding: clamp(24px, 1.5vw, 40px);
  border-radius: 20px;
  background: var(--bg-tint);
  transition: transform .4s var(--ease), box-shadow .4s, background .3s;
}
.case-card--hover:hover {
  transform: translateY(-6px);
  background: #E6EBF5;
  box-shadow: 0 18px 40px rgba(11, 29, 61, .08);
}

.case-card__step {
  margin-bottom: 14px;
  font-size: clamp(15px, 1.04vw, 16px);
  font-weight: 800;
  color: var(--blue);
}

.case-card__title {
  margin-bottom: 14px;
  font-size: clamp(18px, 1.3vw, 22px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #000;
}

.case-card__text {
  font-size: clamp(14px, 1.04vw, 16px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.04em;
  color: #000;
}

/* Long landing-page screenshots that pan downward on hover */
.case__screens {
  flex: 1.2 1 420px;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.1vw, 20px);
}

.screen-scroll {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 282 / 700;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 20px 50px rgba(11, 29, 61, .16);
  transition: transform .5s var(--ease);
}
.screen-scroll + .screen-scroll { margin-top: clamp(16px, 1.6vw, 30px); }
.screen-scroll img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transition: object-position 5s cubic-bezier(.45, 0, .55, 1);
}
.screen-scroll:hover { transform: translateY(-8px); }
.screen-scroll:hover img { object-position: 50% 100%; }

/* Desktop: stretch the screenshots to the full height of the side columns */
@media (min-width: 1181px) {
  .case__inner { align-items: stretch; }
  .case__screens { align-items: stretch; }
  .screen-scroll { aspect-ratio: auto; }
  .screen-scroll + .screen-scroll { margin-top: 0; }
  .screen-scroll img { position: absolute; inset: 0; }
}

.case__aside {
  flex: .8 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 1.6vw, 30px);
  padding-top: clamp(0px, 4.6vw, 88px);
}

.case-card--result { display: flex; flex-direction: column; gap: clamp(14px, 0.5vw, 22px); }
.case-card--result .case-card__step { margin: 0; }
.case-card--result .case-card__title { margin: 0 0 6px; }

.result-item {
  display: flex;
  align-items: center;
  gap: clamp(5px, 0.7vw, 22px);
  font-size: clamp(14px, 1.04vw, 18px);
  line-height: 1.35;
  letter-spacing: -0.04em;
  color: #000;
  transition: transform .35s;
}
.result-item:hover { transform: translateX(6px); }
.result-item img { width: clamp(48px, 3.3vw, 64px); border-radius: 50%; }

.case-asset { display: flex; flex-direction: column; gap: 12px; }
.case-asset__label { font-size: clamp(14px, .94vw, 16px); color: #000; }
.case-asset__link {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.case-asset__link:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(11, 29, 61, .16); }

/* 12. Experience — tilting gradient cards
   -------------------------------------------------------------------------- */
.experience { overflow: hidden; }

.experience__grid {
  max-width: 1440px;
  margin-top: clamp(70px, 8vw, 150px);
  padding-bottom: clamp(30px, 4vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: clamp(48px, 4vw, 60px) clamp(14px, 1.4vw, 24px);
}

.exp-item { position: relative; min-width: 0; margin-top: var(--offset, 0); }

/* Light card stacked behind each tile */
.exp-item::before {
  content: "";
  position: absolute;
  left: 22%;
  top: -22%;
  width: 84%;
  height: 100%;
  border-radius: 18px;
  background: rgba(230, 239, 252, .9);
  box-shadow: 0 20px 50px rgba(36, 96, 253, .10);
}

.exp-card {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #2B5FA6 0%, #153E7E 55%, #0B2556 100%);
  box-shadow: 0 24px 50px rgba(20, 60, 140, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .35s ease-out;
}

.exp-item--bright::before { left: 14%; top: -16%; background: rgba(204, 225, 252, .75); }
.exp-item--bright .exp-card { background: linear-gradient(160deg, #4FB0FF 0%, #2B83FF 45%, #1F5BEA 100%); }

/* Glare that follows the cursor (position set from JS) */
.exp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 55%);
  transition: opacity .3s;
}
.exp-card.is-tilting::before { opacity: 1; }

.exp-card p {
  position: relative;
  font-size: clamp(18px, 1.67vw, 25px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.035em;
  color: #fff;
}

/* 13. Work process
   -------------------------------------------------------------------------- */
.process { margin-top: clamp(50px, 6vw, 110px); }
.process__track { position: relative; }

/* Dashed line connecting the step circles */
.process__line {
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: calc(clamp(76px, 6.9vw, 132px) / 2);
  border-top: 2px dashed var(--blue);
  transform-origin: left center;
}

.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 30px);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.process-step__num {
  width: clamp(76px, 6.9vw, 132px);
  height: clamp(76px, 6.9vw, 132px);
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 1.56vw, 30px);
  font-weight: 800;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: background .4s, color .4s, transform .5s var(--spring), box-shadow .4s;
}

/* Hovered step is highlighted; the last step is highlighted by default */
.process__steps:not(:has(.process-step:hover)) .process-step:last-child .process-step__num,
.process-step:hover .process-step__num {
  background: var(--blue);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 16px 36px rgba(36, 96, 253, .35);
}

.process-step__title {
  margin: clamp(28px, 3.4vw, 60px) 0 clamp(14px, 1.6vw, 26px);
  font-size: clamp(20px, 1.56vw, 30px);
  font-weight: 600;
  letter-spacing: .01em;
  color: #000;
}

.process-step__lead {
  margin-bottom: 12px;
  font-size: clamp(15px, 1.15vw, 22px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #000;
}

.process-step__desc {
  font-size: clamp(14px, 1.04vw, 18px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

/* 14. Contact
   -------------------------------------------------------------------------- */
.contact .section-lead {
  margin-top: clamp(6px, .6vw, 12px);
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.45;
}

.contact__body { max-width: 1180px; margin-top: clamp(36px, 4vw, 70px); }

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 3.6vw, 108px) clamp(28px, 5.6vw, 108px);
  border-radius: 24px;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Glow that follows the cursor (position set from JS) */
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(36, 96, 253, .42), rgba(36, 96, 253, 0) 62%);
  transition: opacity .4s;
}
.contact-card.is-glowing::before { opacity: 1; }

.contact-card__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: clamp(25px, 3.1vw, 55px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}
.contact-card__copy .indent { padding-left: clamp(40px, 10.4vw, 200px); }

.contact-card__action {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(16px, 1.6vw, 30px);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(10px, .9vw, 16px) clamp(20px, 1.6vw, 30px);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: clamp(15px, 1.2vw, 23px);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background .3s, transform .35s var(--spring), box-shadow .35s;
}
.btn-cta:hover {
  background: var(--blue-light);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(36, 96, 253, .45);
}

/* E-mail line under the contact card */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  margin-top: clamp(28px, 2.6vw, 48px);
}
.contact-info__label {
  font-size: clamp(13px, .9vw, 16px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}
.contact-info__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(18px, 1.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  border-bottom: 2px solid transparent;
  transition: color .3s, border-color .3s;
}
.contact-info__mail svg { color: var(--blue); flex: none; }
.contact-info__mail:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* 15. Back-to-top button
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(36, 96, 253, .35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .25s;
}
.to-top:hover { background: var(--navy); }
.is-scrolled .to-top { opacity: 1; pointer-events: auto; transform: none; }

/* 16. Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 56px 72px;
  background: rgba(8, 14, 28, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transform: scale(.94);
  transition: transform .4s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }

.lightbox__btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox__btn:hover { background: var(--blue); }
.lightbox__btn--close { top: 16px; right: 16px; }
.lightbox__btn--prev  { left: 14px; top: 50%; margin-top: -22px; }
.lightbox__btn--next  { right: 14px; top: 50%; margin-top: -22px; }

.lightbox__count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  font-size: 14px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .75);
}

/* 17. Scroll-reveal animation
   Elements start hidden only when JS is running and motion is allowed.
   `translate` / `scale` are used (not `transform`) so they never clash
   with hover transforms on the same element.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]               { opacity: 0; translate: 0 36px; }
  .js [data-reveal="zoom"]        { translate: none; scale: .94; }
  .js [data-reveal="line"]        { opacity: 1; translate: none; scale: 0 1; }

  .js [data-reveal].is-visible {
    opacity: 1;
    translate: none;
    scale: none;
    transition: opacity .9s ease, translate 1.1s var(--ease), scale 1.1s var(--ease);
  }
}

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

/* Mobile: Core Strength & Experience — two cards per row */
@media (max-width: 767px) {
  .strengths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .strength-card {
    aspect-ratio: auto;
    min-height: 0;
    padding: 28px 16px 62px;
    justify-content: flex-start;
    border-radius: 12px;
  }
  .strength-card__icon svg { width: 34px; height: 34px; }
  .strength-card__title {
    margin: 18px 0 10px;
    font-size: 16px;
    line-height: 1.35;
    word-break: keep-all;
  }
  .strength-card__desc { font-size: 13px; line-height: 1.5; word-break: keep-all; }
  .strength-card__desc br { display: none; }
  .strength-card__tab {
    width: 78%;
    height: 38px;
    padding-left: 16px;
    border-top-width: 6px;
    border-right-width: 6px;
    border-top-right-radius: 16px;
    font-size: 11px;
  }
  .strength-card:hover .strength-card__tab { width: 78%; }

  .experience__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 14px;
    margin-top: 56px;
  }
  .exp-item { margin-top: 0; }
  .exp-item:nth-child(even) { margin-top: 24px; }
  .exp-item::before { left: 12%; top: -12%; width: 88%; border-radius: 14px; }
  .exp-item--bright::before { left: 8%; top: -10%; }
  .exp-card { aspect-ratio: 1 / 1; padding: 12px; border-radius: 14px; }
  .exp-card p { font-size: 15px; line-height: 1.45; word-break: keep-all; }
}

/* Mobile: hero spacing, brand logo size, Work Process 2 x 2 */
@media (max-width: 767px) {
  .hero { min-height: 0; }
  .hero__body {
    flex: none;
    padding-top: 96px;
    padding-bottom: 36px;
  }
  .hero__tags { padding-bottom: 48px; }

  .brand__logo {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
  }

  .process__line { display: none; }
  .process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 16px;
  }
  .process-step { position: relative; }
  /* Dashed connector between the two circles in each row */
  .process-step:nth-child(odd)::before {
    content: "";
    position: absolute;
    top: 38px;
    left: 50%;
    width: calc(100% + 16px);
    border-top: 2px dashed var(--blue);
  }
  .process-step__num { position: relative; z-index: 1; width: 76px; height: 76px; }
  .process-step__title { margin: 22px 0 10px; font-size: 18px; }
  .process-step__lead { font-size: 15px; word-break: keep-all; }
  .process-step__desc { font-size: 14px; word-break: keep-all; }
}

/* Stacked Work layout (mobile/tablet): the gallery slides over the sticky
   intro text, so give it a solid full-width background to hide the text */
@media (max-width: 1017px) {
  .work-block__gallery {
    --gallery-bg: #fff;
    position: relative;
    z-index: 1;
    background: var(--gallery-bg);
    box-shadow: 0 0 0 100vmax var(--gallery-bg);
    clip-path: inset(-24px -100vmax 0);
  }
  .work-block:nth-child(even) .work-block__gallery { --gallery-bg: var(--bg-soft); }
}
