/* ==========================================================================
   NITHISH GAJULA — STUDIO & WORKSHOP PORTFOLIO
   Tactile craft aesthetic with seamless responsiveness (Mobile to Ultra-Wide)
   ========================================================================== */

/* System font fallback first, then Google Fonts when online */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Onest:wght@300;400;500;600;700&display=swap');

/* --- ROOT DESIGN TOKENS --- */
:root {
  /* Palette: Tactile paper & studio ink */
  --paper: #F6F4ED;
  --paper-rgb: 246, 244, 237;
  --surface: #FFFFFF;
  --surface-rgb: 255, 255, 255;
  --surface-muted: #EDEAE1;
  --surface-muted-rgb: 237, 234, 225;

  --ink: #1B1D28;
  --ink-rgb: 27, 29, 40;
  --ink-2: #4E5268;
  --ink-3: #7A7F96;
  --ink-muted: #9BA0B5;

  /* Accents */
  --cobalt: #3649E8;
  --cobalt-rgb: 54, 73, 232;
  --coral: #EF5338;
  --coral-rgb: 239, 83, 56;
  --mint: #10B981;
  --mint-rgb: 16, 185, 129;
  --yellow: #F59E0B;
  --yellow-rgb: 245, 158, 11;
  --accent: var(--cobalt);

  /* Paper Tones for Sheets */
  --tone-ivory-bg: #FCFBF7;
  --tone-ivory-edge: #E6E2D6;
  --tone-cream-bg: #FAF6ED;
  --tone-cream-edge: #E3D9C4;
  --tone-chalk-bg: #F7F8FC;
  --tone-chalk-edge: #DCE0ED;
  --tone-kraft-bg: #F5EFE6;
  --tone-kraft-edge: #DBCFBD;

  /* Borders & Lines */
  --line: rgba(27, 29, 40, 0.10);
  --line-strong: rgba(27, 29, 40, 0.20);
  --line-subtle: rgba(27, 29, 40, 0.05);

  /* Shadows */
  --shadow-contact: 0 1px 2px rgba(27, 29, 40, 0.08);
  --shadow-sheet: 0 4px 16px -2px rgba(27, 29, 40, 0.08), 0 1px 3px rgba(27, 29, 40, 0.04);
  --shadow-lift: 0 18px 30px -10px rgba(27, 29, 40, 0.16), 0 2px 6px rgba(27, 29, 40, 0.06);

  /* Layout */
  --max-width: 1180px;
  --gutter: clamp(14px, 3.5vw, 36px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Typography with robust local fallbacks */
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Easing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-normal: 0.24s var(--ease);
}

/* --- DARK / BLUEPRINT MODE TOKENS --- */
[data-theme="dark"] {
  --paper: #12131A;
  --paper-rgb: 18, 19, 26;
  --surface: #1B1D27;
  --surface-rgb: 27, 29, 39;
  --surface-muted: #242635;
  --surface-muted-rgb: 36, 38, 53;

  --ink: #F2F4FB;
  --ink-rgb: 242, 244, 251;
  --ink-2: #A5A9C0;
  --ink-3: #757A95;
  --ink-muted: #535770;

  --cobalt: #5768FF;
  --cobalt-rgb: 87, 104, 255;
  --coral: #FF684E;
  --coral-rgb: 255, 104, 78;
  --mint: #34D399;
  --mint-rgb: 52, 211, 153;
  --yellow: #FBBF24;
  --yellow-rgb: 251, 191, 36;
  --accent: var(--cobalt);

  --tone-ivory-bg: #1B1D28;
  --tone-ivory-edge: #2E3144;
  --tone-cream-bg: #1F1F2B;
  --tone-cream-edge: #343346;
  --tone-chalk-bg: #1C1F2D;
  --tone-chalk-edge: #2E354D;
  --tone-kraft-bg: #222026;
  --tone-kraft-edge: #3A3540;

  --line: rgba(242, 244, 251, 0.10);
  --line-strong: rgba(242, 244, 251, 0.22);
  --line-subtle: rgba(242, 244, 251, 0.05);

  --shadow-contact: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-sheet: 0 6px 20px -4px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 20px 34px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* --- RESET & GLOBAL DEFAULTS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--t-normal), color var(--t-normal);
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

::selection {
  background: rgba(var(--cobalt-rgb), 0.2);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- AMBIENT STUDIO BACKGROUND --- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__grid {
  position: absolute;
  inset: -10%;
  background-image: 
    linear-gradient(to right, var(--line-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-subtle) 1px, transparent 1px),
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  mask-image: radial-gradient(120% 90% at 50% 10%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 10%, black 30%, transparent 85%);
}

.ambient__sun {
  position: absolute;
  top: -20vh;
  left: 10vw;
  width: 80vw;
  height: 60vh;
  background: 
    radial-gradient(40% 40% at 30% 30%, rgba(var(--yellow-rgb), 0.08), transparent 70%),
    radial-gradient(50% 50% at 70% 40%, rgba(var(--cobalt-rgb), 0.06), transparent 70%);
  filter: blur(40px);
}

/* --- LAYOUT WRAPPER --- */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

/* --- TOPBAR NAVIGATION --- */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 100;
  margin-top: 14px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(var(--surface-rgb), 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  box-shadow: var(--shadow-sheet);
  transition: all var(--t-normal);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  min-width: 0;
  flex-shrink: 1;
}

.topbar__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cobalt), #6366F1);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(var(--cobalt-rgb), 0.35);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.topbar__name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-2);
  padding-left: 8px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
  flex-shrink: 0;
}

.beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(var(--mint-rgb), 0.7);
  animation: beacon-pulse 2.2s infinite;
  flex-shrink: 0;
}

@keyframes beacon-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--mint-rgb), 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(var(--mint-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--mint-rgb), 0); }
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all var(--t-normal);
  white-space: nowrap;
}

.topbar__link:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  flex-shrink: 0;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all var(--t-normal);
  flex-shrink: 0;
}

.icon-btn:hover {
  color: var(--cobalt);
  border-color: var(--cobalt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-contact);
}

.icon-btn svg, .icon-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Ensure single-color dark icons (like GitHub) stay visible in dark mode */
[data-theme="dark"] .icon-btn img[src*="github"],
[data-theme="dark"] .sheet__btn img[src*="github"] {
  filter: invert(1) brightness(1.2);
}

/* Special branding for Google Play button in topbar */
.icon-btn--play {
  background: var(--surface);
  border-color: rgba(0, 160, 255, 0.3);
}

.icon-btn--play:hover {
  border-color: #00A0FF;
  box-shadow: 0 2px 8px rgba(0, 160, 255, 0.25);
}

/* --- HERO SECTION --- */
.hero {
  padding: clamp(16px, 3vw, 28px) 0 clamp(32px, 5vw, 56px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow-contact);
  max-width: 100%;
}

.hero__eyebrow-accent {
  color: var(--cobalt);
  font-weight: 700;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: clamp(16px, 3vw, 24px);
  max-width: 22ch;
  word-break: break-word;
}

.hero__title .highlight {
  position: relative;
  display: inline-block;
  color: var(--cobalt);
}

.hero__title .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 7px;
  background: rgba(var(--cobalt-rgb), 0.15);
  border-radius: 4px;
  z-index: -1;
}

.hero__lede {
  font-size: clamp(0.975rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 58ch;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.hero__lede strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 44px; /* mobile-friendly touch target */
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--t-normal);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn svg, .btn img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--t-normal);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 4px 12px rgba(var(--ink-rgb), 0.15);
}

.btn-primary:hover {
  background: var(--cobalt);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--cobalt-rgb), 0.28);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-contact);
}

.btn-secondary:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sheet);
}

.btn-ghost {
  color: var(--ink-2);
  padding: 10px 14px;
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

/* Fact Strip */
.hero__specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sheet);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-item__value {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.spec-item__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* --- SECTION HEADERS --- */
.section-header {
  margin-bottom: clamp(20px, 3vw, 28px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.section-header__group {
  max-width: 50ch;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.section-tag::before {
  content: '§';
  font-size: 0.85rem;
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}

.section-desc {
  font-size: 0.925rem;
  color: var(--ink-2);
  margin-top: 4px;
}

/* --- BENCH FILTER TABS --- */
.bench-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(24px, 3.5vw, 32px);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  min-height: 38px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all var(--t-normal);
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 2px 8px rgba(var(--ink-rgb), 0.15);
}

[data-theme="dark"] .filter-btn.active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.filter-count {
  display: inline-block;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(var(--ink-rgb), 0.08);
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
}

/* --- THE PROJECT SHEETS GRID --- */
.workbench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(48px, 6vw, 68px);
}

/* The Sheet Card (Crafted Paper Motif) */
.sheet {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--sheet-bg, var(--tone-ivory-bg));
  border: 1.5px solid var(--sheet-edge, var(--tone-ivory-edge));
  box-shadow: var(--shadow-sheet);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sheet:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: var(--sheet-accent, var(--cobalt));
}

/* Tones & Accents */
.sheet.tone-ivory {
  --sheet-bg: var(--tone-ivory-bg);
  --sheet-edge: var(--tone-ivory-edge);
}

.sheet.tone-cream {
  --sheet-bg: var(--tone-cream-bg);
  --sheet-edge: var(--tone-cream-edge);
}

.sheet.tone-chalk {
  --sheet-bg: var(--tone-chalk-bg);
  --sheet-edge: var(--tone-chalk-edge);
}

.sheet.tone-kraft {
  --sheet-bg: var(--tone-kraft-bg);
  --sheet-edge: var(--tone-kraft-edge);
}

.sheet.accent-cobalt { --sheet-accent: var(--cobalt); }
.sheet.accent-coral { --sheet-accent: var(--coral); }
.sheet.accent-mint { --sheet-accent: var(--mint); }
.sheet.accent-yellow { --sheet-accent: var(--yellow); }

/* Washi Tape Corner Decoration */
.sheet__tape {
  position: absolute;
  top: 14px;
  right: -24px;
  width: 90px;
  height: 22px;
  background: rgba(245, 235, 210, 0.7);
  border-left: 1px dashed rgba(180, 160, 130, 0.4);
  border-right: 1px dashed rgba(180, 160, 130, 0.4);
  transform: rotate(38deg);
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .sheet__tape {
  background: rgba(70, 75, 100, 0.55);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Hole Punch Detail (Binder style) */
.sheet.is-punched::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
  z-index: 4;
}

/* Card Visual Banner Frame */
.sheet__banner-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  background: var(--surface-muted);
  overflow: hidden;
  border-bottom: 1.5px solid var(--line);
}

.sheet__banner-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.sheet:hover .sheet__banner-frame img {
  transform: scale(1.03);
}

/* Card Body Content */
.sheet__content {
  padding: clamp(18px, 2.8vw, 24px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sheet__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sheet__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  white-space: nowrap;
}

.tag--featured {
  background: rgba(var(--cobalt-rgb), 0.1);
  border-color: var(--cobalt);
  color: var(--cobalt);
  font-weight: 700;
}

.sheet__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 3px;
  line-height: 1.25;
}

.sheet__name a {
  transition: color var(--t-normal);
}

.sheet:hover .sheet__name a {
  color: var(--sheet-accent, var(--cobalt));
}

.sheet__kicker {
  font-size: 0.835rem;
  font-weight: 600;
  color: var(--sheet-accent, var(--cobalt));
  margin-bottom: 10px;
}

.sheet__body {
  font-size: 0.9125rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 18px;
  flex: 1;
}

/* Card Actions / Destination Bar */
.sheet__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.sheet__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  min-height: 38px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  transition: all var(--t-normal);
  white-space: nowrap;
}

.sheet__btn:hover {
  border-color: var(--sheet-accent, var(--cobalt));
  color: var(--sheet-accent, var(--cobalt));
  transform: translateY(-1px);
}

.sheet__btn svg, .sheet__btn img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.sheet__btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.sheet__btn--primary:hover {
  background: var(--sheet-accent, var(--cobalt));
  color: #fff;
  border-color: var(--sheet-accent, var(--cobalt));
}

/* --- THE WORKSHOP TOOLS & SKILLS SECTION --- */
.workshop-section {
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 22px);
}

.skill-card {
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.5vw, 24px);
  box-shadow: var(--shadow-contact);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-normal), border-color var(--t-normal);
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--cobalt);
}

.skill-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.skill-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--cobalt);
  flex-shrink: 0;
}

.skill-icon-box svg {
  width: 20px;
  height: 20px;
}

.skill-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.skill-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  transition: all var(--t-normal);
}

.skill-pill:hover {
  background: var(--surface);
  border-color: var(--cobalt);
  color: var(--cobalt);
  transform: translateY(-1px);
}

/* --- ABOUT & CRAFT PHILOSOPHY --- */
.philosophy-section {
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 22px);
}

.philosophy-card {
  background: var(--tone-ivory-bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.5vw, 24px);
  box-shadow: var(--shadow-contact);
}

.philosophy-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cobalt);
  margin-bottom: 6px;
  display: inline-block;
}

.philosophy-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.philosophy-text {
  font-size: 0.885rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* --- FOOTER --- */
.footer {
  margin-top: clamp(48px, 6vw, 68px);
  border-top: 1.5px solid var(--line-strong);
  padding: clamp(32px, 5vw, 48px) 0 clamp(48px, 6vw, 68px);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px 44px;
  align-items: start;
}

.footer__craft-note {
  display: flex;
  gap: 14px;
}

.footer__mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--cobalt);
  flex-shrink: 0;
}

.footer__text {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 52ch;
}

.footer__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}

.footer__links a:hover {
  color: var(--cobalt);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
}

/* --- TOAST / NOTIFICATION --- */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
}

.toast-notice.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile, Tablet, Laptop, Desktop, 4K)
   ========================================================================== */

/* Laptops & Tablets Landscape (<= 1040px) */
@media (max-width: 1040px) {
  .hero__specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablets Portrait & Small Laptops (<= 860px) */
@media (max-width: 860px) {
  .workbench-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .skills-grid, .philosophy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer__actions {
    align-items: flex-start;
  }
}

/* Phablets & Mobile Landscape (<= 680px) */
@media (max-width: 680px) {
  .topbar {
    top: 8px;
    margin-top: 8px;
  }

  .topbar__inner {
    padding: 6px 10px;
    gap: 8px;
  }

  .topbar__status {
    display: none;
  }

  .topbar__nav {
    display: none; /* Keep topbar clean and uncluttered on mobile */
  }

  .hero {
    padding-top: 8px;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .skills-grid, .philosophy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bench-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .bench-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .sheet__actions {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Small Smart Phones (<= 440px) */
@media (max-width: 440px) {
  :root {
    --gutter: 14px;
  }

  .topbar__name {
    font-size: 0.925rem;
  }

  .topbar__actions {
    padding-left: 4px;
    gap: 4px;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
  }

  .icon-btn svg, .icon-btn img {
    width: 15px;
    height: 15px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__specs {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .sheet__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .sheet__btn {
    width: 100%;
    justify-content: center;
  }

  .toast-notice {
    left: 14px;
    right: 14px;
    bottom: 14px;
    text-align: center;
    justify-content: center;
  }
}

/* Extra-Wide Screens & 4K Monitors (>= 1600px) */
@media (min-width: 1600px) {
  :root {
    --max-width: 1280px;
  }

  .hero__title {
    font-size: 4.2rem;
  }
}
