/* ==========================================================================
   THE GAURAV SHARMA GAZETTE DESIGN SYSTEM & STYLES
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #000000;
  --ink2: #050505;
  --ink3: #111111;
  --ink4: #1a1a1a;
  --paper: #dfdfdf;
  --paper2: #d5d5d5;
  --rule: #888070;
  --rule2: #9c9488;
  --accent: #b5000a;
  --accent2: #e8000f;
  --col-gap: 16px;
  --body: 'Libre Baskerville', Georgia, serif;
  --head: 'Playfair Display', Georgia, serif;
  --mono: 'JetBrains Mono', monospace;
}

/* Base Body Styles */
html {
  background-color: transparent;
  background-image: url('img/background.png');
  background-size: auto;
  background-attachment: scroll;
  background-repeat: repeat;
  color: var(--ink);
  font-family: var(--body);
  scroll-behavior: smooth;
  width: 100%;
  min-width: 1024px;
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  min-width: 1024px;
  margin: 0;
  padding: 0;
  background-color: transparent;
  background-image: url('img/background.png');
  background-size: auto;
  background-attachment: scroll;
  background-repeat: repeat;
  position: relative;
  overflow-x: hidden;
}

/* Center the newspaper on screens wider than 900px */
@media (min-width: 901px) {

  html,
  body {
    margin: 0 auto;
  }
}

/* ── DESKTOP WIDESCREEN: expand to fill the full viewport ── */
@media (min-width: 1200px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

/* Vintage Paper Grain Overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  opacity: 0;
  animation: grainEntrance 1s ease-out forwards;
  animation-delay: 2.0s;
}

@keyframes grainEntrance {
  to {
    opacity: 0.65;
  }
}

/* ==========================================================================
   ANIMATIONS & ENTRANCE EFFECTS
   ========================================================================== */

/* Newspaper Load In (Hot off the Press!) */
.paper-container {
  opacity: 0;
  animation: paperEntrance 1.6s ease-in-out forwards;
  position: relative;
  background: transparent;
  padding-bottom: 20px;
}

@keyframes paperEntrance {
  to {
    opacity: 1;
  }
}

/* Ink Stamp Badging */
.ink-stamp {
  position: absolute;
  top: 70px;
  right: 25px;
  transform: translate3d(0, 0, 0) rotate(-14deg) scale3d(3.5, 3.5, 1);
  opacity: 0;
  z-index: 100;
  border: 3px double var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 2px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(250, 248, 243, 0.10);
  pointer-events: none;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.06);
  will-change: transform, opacity;
}

.stamp-inner {
  border: 1px solid var(--accent);
  padding: 4px 12px;
}

.ink-stamp.stamped {
  animation: stampSlam 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.5s forwards;
}

@keyframes stampSlam {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-35deg) scale3d(3.5, 3.5, 1);
  }

  75% {
    opacity: 0.9;
    transform: translate3d(0, 0, 0) rotate(-16deg) scale3d(0.92, 0.92, 1);
  }

  100% {
    opacity: 0.82;
    transform: translate3d(0, 0, 0) rotate(-13deg) scale3d(1, 1, 1);
  }
}

/* Scroll-triggered reveal effect */
.reveal-col {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-col.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay grid columns for natural flow */
.reveal-section .reveal-col:nth-child(1) {
  transition-delay: 0.05s;
}

.reveal-section .reveal-col:nth-child(2) {
  transition-delay: 0.18s;
}

.reveal-section .reveal-col:nth-child(3) {
  transition-delay: 0.3s;
}

/* Pulse animation for important alerts */
.animate-pulse {
  animation: pulse 1.8s infinite alternate;
}

@keyframes pulse {
  0% {
    opacity: 0.85;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* ==========================================================================
   MASTHEAD & NAV
   ========================================================================== */

.masthead {
  border-bottom: 3px double var(--ink);
  padding: 14px 20px 8px;
}

.mast-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 7px;
  margin-bottom: 7px;
}

.mast-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: .04em;
  flex: 1;
}

.mast-meta:first-child {
  text-align: left;
}

.mast-meta:last-child {
  text-align: right;
}

.mast-meta strong {
  color: var(--ink2);
  font-weight: 700;
}

.ed-badge {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--paper);
  background: var(--accent);
  padding: 3px 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mast-center {
  text-align: center;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--rule);
}

.mast-name {
  font-family: var(--head);
  font-size: clamp(28px, 6vw, 55px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: .92;
  text-transform: uppercase;
}

.mast-name span {
  display: block;
  font-size: clamp(10px, 1.4vw, 12px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: .16em;
  color: var(--ink);
  text-transform: none;
  margin-bottom: 3px;
}

.mast-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 5px;
}

.mast-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 7px;
}

.mast-nav a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink2);
  text-decoration: none;
  padding: 5px 13px;
  border-right: 1px solid var(--rule2);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mast-nav a:first-child {
  border-left: 1px solid var(--rule2);
}

.mast-nav a:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

/* ==========================================================================
   TICKER (BREAKING NEWS)
   ========================================================================== */

.ticker {
  background: var(--ink);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 25px;
}

.ticker-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  background: var(--accent);
  color: var(--paper);
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .08em;
}

.ticker-scroll {
  overflow: hidden;
  flex: 1;
  height: 100%;
}

.ticker-inner {
  display: flex;
  align-items: center;
  height: 100%;
  animation: tick 26s linear infinite;
  white-space: nowrap;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
}

.ticker-inner s {
  font-family: var(--mono);
  font-size: 11px;
  color: #ddd5c0;
  padding: 0 26px;
  text-decoration: none;
  display: inline;
}

.ticker-inner s::before {
  content: '◆  ';
  color: var(--accent);
}

@keyframes tick {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ==========================================================================
   GRID LAYOUTS & COLUMNS
   ========================================================================== */

.content {
  padding: 0 20px 32px;
}

.date-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 14px;
}

.date-text {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink3);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.date-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule2);
}

.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}

.grid2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
}

.grid2r {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
}

.col {
  padding: 13px var(--col-gap) 13px 0;
  border-right: 1px solid var(--rule2);
}

.col:last-child {
  border-right: none;
  padding-right: 0;
}

.col:not(:first-child) {
  padding-left: var(--col-gap);
}

/* ==========================================================================
   LABELS & VINTAGE GRAPHICS
   ========================================================================== */

.label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--paper);
  background: var(--ink);
  padding: 2px 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 7px;
}

.label.red {
  background: var(--accent);
}

.label.outline {
  background: transparent;
  color: var(--ink3);
  border: 1px solid var(--rule);
  padding: 1px 6px;
}

/* ==========================================================================
   NEWSPAPER PHOTOS
   ========================================================================== */

.news-photo-figure {
  margin: 8px 0;
  padding: 0;
}

.news-photo {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--ink);
  padding: 3px;
  /* classic photo frame */
  background: rgba(213, 213, 213, 0.4);
  /* Vintage newspaper filter - less grayscale to show more color */
  filter: grayscale(50%) contrast(75%) sepia(2%);
  mix-blend-mode: multiply;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.news-photo-link {
  display: block;
  text-decoration: none;
}

.news-photo:hover {
  filter: grayscale(0%) contrast(100%) sepia(0%);
  mix-blend-mode: normal;
  background: var(--paper);
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Thematic News Graphics */
.news-graphic {
  background: var(--paper2);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.news-graphic-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0, 0, 0, .025) 5px, rgba(0, 0, 0, .025) 6px);
}

.news-graphic-text {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .06em;
  z-index: 1;
}

/* ==========================================================================
   NEWSPAPER INFOGRAPHIC BLOCKS
   ========================================================================== */

.news-infographic {
  border: 1px solid var(--rule);
  background: rgba(213, 213, 213, 0.60);
  /* translucent var(--paper2) */
  padding: 8px 10px;
  position: relative;
}

.news-infographic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 6px,
      rgba(0, 0, 0, .018) 6px, rgba(0, 0, 0, .018) 7px);
  pointer-events: none;
}

.infographic-title {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--paper);
  background: var(--ink);
  padding: 2px 6px;
  display: inline-block;
  margin-bottom: 7px;
  position: relative;
}

.infographic-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.infographic-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px dotted var(--rule);
}

.infographic-row:last-child {
  border-bottom: none;
}

.infographic-key {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  width: 62px;
  flex-shrink: 0;
}

.infographic-val {
  font-family: var(--body);
  font-size: 11.5px;
  color: var(--ink2);
  line-height: 1.3;
}

/* Tool Palette Grid (GS Paint) */
.tool-palette-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
  position: relative;
}

.tool-item {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink2);
  padding: 3px 0;
  border-bottom: 1px dotted var(--rule2);
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tool-item:nth-last-child(-n+2) {
  border-bottom: none;
}


/* Deliverables Checklist (ACS Column) */
.checklist-box {
  border-left: 3px solid var(--accent);
  padding: 8px 10px;
  background: rgba(213, 213, 213, 0.60);
  /* translucent var(--paper2) */
  margin-top: 4px;
  filter: grayscale(40%) contrast(100%) sepia(2%);
}

.checklist-title {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--paper);
  background: var(--accent);
  padding: 2px 6px;
  display: inline-block;
  margin-bottom: 7px;
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.checklist-item {
  font-family: var(--body);
  font-size: 11.5px;
  color: var(--ink2);
  padding: 2px 0;
  border-bottom: 1px dotted var(--rule2);
  display: flex;
  align-items: center;
  gap: 7px;
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item.done::before {
  content: '✓';
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #1a6b1a;
  flex-shrink: 0;
}

/* In the Pipeline Box (Col 3) */
.pipeline-box {
  border: 1px solid var(--rule);
  background: var(--ink);
  padding: 10px 12px;
}

.pipeline-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--paper);
  margin-bottom: 5px;
}

.pipeline-intro {
  font-family: var(--body);
  font-size: 10.5px;
  color: #c0b8a8;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.4;
}

.pipeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pipeline-list li {
  font-family: var(--body);
  font-size: 11.5px;
  color: #e8e0d0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 5px;
}

.pipeline-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pipeline-tag {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--accent);
  color: var(--paper);
  padding: 1px 5px;
  flex-shrink: 0;
}

/* Sidebar Experience Box */
.experience-box {
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid var(--rule);
  padding: 12px;
  border-radius: 2px;
}

.experience-tag {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .08em;
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
  border: 1px solid var(--rule2);
  padding: 1px 5px;
  flex-shrink: 0;
}

/* Coffee Stain Visual Overlays */

.coffee-stain-container {
  position: relative;
  height: 0;
  width: 0;
  pointer-events: none;
  z-index: 10;
}

.coffee-stain {
  position: absolute;
  width: clamp(150px, 20vw, 240px);
  height: auto;
  bottom: 120px;
  left: -90px;
  opacity: 0.55;
  transform: rotate(-10deg);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  mix-blend-mode: multiply;
}

.coffee-stain:hover {
  transform: rotate(-5deg) scale(1.05);
  opacity: 0.75;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.hl1 {
  font-family: var(--head);
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 7px;
}

.hl2 {
  font-family: var(--head);
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 5px;
}

.hl3 {
  font-family: var(--head);
  font-size: clamp(13px, 2.5vw, 17px);
  font-weight: 700;
  line-height: 1.15;
  font-style: italic;
  margin-bottom: 4px;
}

.hl4 {
  font-family: var(--head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 4px;
}

.byline {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink3);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.byline::before {
  content: 'By ';
}

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

.deck {
  font-family: var(--head);
  font-size: 14px;
  font-style: italic;
  color: var(--ink2);
  line-height: 1.5;
  margin-bottom: 9px;
  border-left: 2px solid var(--accent);
  padding-left: 9px;
}

.body {
  font-family: var(--body);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.85;
  text-align: justify;
  text-justify: inter-word;
  text-shadow: 0.2px 0.2px 0px rgba(0, 0, 0, 0.4);
}

.body+.body {
  margin-top: 7px;
}

.drop::first-letter {
  font-family: var(--head);
  font-size: 46px;
  font-weight: 900;
  float: left;
  line-height: .82;
  margin-right: 4px;
  margin-top: 4px;
  color: var(--ink);
}

.rule-d {
  border: none;
  border-top: 3px double var(--ink);
  margin: 12px 0;
}

.rule-t {
  border: none;
  border-top: 2px solid var(--ink);
  margin: 10px 0;
}

.rule-l {
  border: none;
  border-top: 1px solid var(--rule2);
  margin: 9px 0;
}

/* Pullquote Styling */
.pq {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 11px 8px;
  margin: 12px 0;
  text-align: center;
}

.pq p {
  font-family: var(--head);
  font-size: clamp(14px, 2.5vw, 19px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}

.pq cite {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink3);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Profile Metadata Rows */
.profile-details {
  border: 1px solid var(--rule2);
  padding: 8px;
  background: rgba(213, 213, 213, 0.60);
  /* translucent var(--paper2) */
  border-radius: 2px;
  margin-top: 8px;
}

.detail-row {
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px dotted var(--rule2);
  padding: 3px 0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .05em;
  width: 68px;
  flex-shrink: 0;
}

.detail-value {
  font-family: var(--body);
  font-size: 11px;
  color: var(--ink2);
}

.detail-badge {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--paper);
  background: var(--accent);
  padding: 1px 6px;
  font-weight: bold;
}

/* Underline Animation */
.hover-underline {
  position: relative;
  text-decoration: none;
}

.hover-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ==========================================================================
   INDEX BOX
   ========================================================================== */

.idx-box {
  border: 1px solid var(--rule);
  padding: 10px 12px;
  background: var(--paper2);
}

.idx-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 0;
  border-bottom: 1px dotted var(--rule2);
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}

.idx-item:last-child {
  border-bottom: none;
}

.idx-item:hover {
  transform: translateX(4px);
}

.idx-item:hover .idx-t {
  color: var(--accent);
}

.idx-t {
  font-family: var(--body);
  font-size: 12px;
  color: var(--ink2);
  flex: 1;
  transition: color 0.15s ease;
}

.idx-d {
  flex: 1;
  border-bottom: 1px dotted var(--rule);
  margin: 0 3px;
  min-width: 8px;
}

.idx-p {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink3);
  font-weight: 700;
}

/* ==========================================================================
   EXPANDABLE SECTIONS
   ========================================================================== */

.expand-btn {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: none;
  padding: 3px 8px;
  cursor: pointer;
  letter-spacing: .06em;
  margin-top: 7px;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.expand-btn:hover {
  background: var(--accent);
  color: var(--paper);
  transform: scale(1.02);
}

.article-full {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, margin 0.35s ease, padding 0.35s ease;
  border-top: 1px dashed var(--rule2);
  margin-top: 0;
  padding-top: 0;
}

.article-full.open {
  max-height: 800px;
  /* Safe upper bound for text content */
  opacity: 1;
  margin-top: 8px;
  padding-top: 9px;
}

/* ==========================================================================
   PROJECT GRID (CLASSIFIEDS FLAVOR)
   ========================================================================== */

.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
  filter: grayscale(30%) contrast(100%) sepia(2%);
}

.proj-card {
  border: 1px solid var(--rule);
  padding: 10px;
  background: rgba(223, 223, 223, 0.40);
  /* translucent var(--paper) */
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.proj-card:hover {
  border-color: var(--ink);
  box-shadow: 2.5px 2.5px 0 var(--ink);
  transform: translateY(-2px);
}

/* Professional Client Project Card — Special Highlight Treatment */
.proj-card-pro {
  border: 2px solid #8b6914;
  background: rgba(223, 223, 223, 0.40);
  /* translucent var(--paper) */
  position: relative;
  overflow: hidden;
}

.proj-card-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg,
      transparent,
      transparent 14px,
      rgba(139, 105, 20, 0.03) 14px,
      rgba(139, 105, 20, 0.03) 15px);
  pointer-events: none;
}

.proj-card-pro:hover {
  border-color: #6b4f10;
  box-shadow: 3px 3px 0 #8b6914;
  transform: translateY(-2px);
}

.proj-pro-banner {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: #8b6914;
  border: 1px solid #6b4f10;
  padding: 4px 10px;
  margin-bottom: 8px;
  display: inline-block;
}



.proj-card-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--paper);
  background: var(--ink);
  padding: 2px 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
}

.proj-card-tag.red {
  background: var(--accent);
}

.proj-card-tag.gray {
  background: var(--ink3);
}

.proj-title {
  font-family: var(--head);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
  line-height: 1.2;
}

.proj-tech {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink3);
  margin-bottom: 6px;
  letter-spacing: .03em;
}

.proj-body {
  font-family: var(--body);
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.7;
}

.proj-link {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: .05em;
  text-decoration: none;
  font-weight: 700;
}

/* ==========================================================================
   SKILLS TABLE
   ========================================================================== */

.sk-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}

.sk-table th {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
  text-align: left;
}

.sk-table td {
  font-family: var(--body);
  font-size: 12px;
  color: var(--ink2);
  padding: 6px 6px 6px 0;
  border-bottom: 1px dotted var(--rule2);
  vertical-align: middle;
}

.sk-table td:first-child {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  font-size: 12.5px;
}

.bar {
  background: var(--rule2);
  height: 4px;
  width: 80px;
  border-radius: 1px;
  overflow: hidden;
}

.bar-f {
  background: var(--ink);
  height: 4px;
  width: 0%;
  /* Initial width for animation */
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CLASSIFIEDS SECTION
   ========================================================================== */

.classifieds {
  border: 2px solid var(--ink);
  padding: 14px;
  margin-top: 18px;
  background: rgba(213, 213, 213, 0.60);
  /* translucent var(--paper2) */
  filter: grayscale(40%) contrast(100%) sepia(2%);
}

.class-title {
  font-family: var(--head);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 2px double var(--ink);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.class-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.class-item {
  border: 1px solid var(--rule);
  padding: 9px;
  background: rgba(223, 223, 223, 0.60);
  /* translucent var(--paper) */
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.class-item:hover {
  border-color: var(--accent);
  box-shadow: 2.5px 2.5px 0 var(--accent);
  transform: scale(1.015);
}

.class-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--paper);
  background: var(--ink);
  padding: 2px 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: inline-block;
}

.class-tag.red {
  background: var(--accent);
}

.class-body {
  font-family: var(--body);
  font-size: 12px;
  color: var(--ink);
  line-height: 1.7;
  text-shadow: 0.2px 0.2px 0px rgba(0, 0, 0, 0.4);
}

.class-ref {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent);
  margin-top: 5px;
  display: block;
  font-weight: 700;
}

/* ==========================================================================
   CONTACT BOX & FORM FIELDS
   ========================================================================== */

.contact-box {
  border: 2px double var(--ink);
  padding: 14px;
  background: rgba(223, 223, 223, 0.60);
  filter: grayscale(40%) contrast(100%) sepia(2%);

}

.contact-form-title {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 9px;
}

.f-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink3);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.f-input {
  width: 100%;
  border: 1px solid var(--rule);
  background: rgba(223, 223, 223, 0.60);
  /* translucent var(--paper) */
  font-family: var(--body);
  font-size: 13px;
  color: var(--ink);
  padding: 7px 9px;
  outline: none;
  border-radius: 1px;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}

.f-input:focus {
  border-color: var(--ink);
  background: rgba(213, 213, 213, 0.70);
  /* translucent var(--paper2) */
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.f-ta {
  min-height: 70px;
  resize: vertical;
}

.submit {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 9px 20px;
  cursor: pointer;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  border-radius: 1px;
}

.submit:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.15);
}

.submit:active {
  transform: translateY(0);
}

/* Contact Meta Styles (Left Column) */
.contact-meta-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
}

.contact-meta-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.contact-meta-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .05em;
  width: 68px;
  flex-shrink: 0;
}

.contact-meta-link {
  font-family: var(--body);
  font-size: 11.5px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s ease;
}

.contact-meta-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.contact-meta-val {
  font-family: var(--body);
  font-size: 11.5px;
  color: var(--ink2);
}

.contact-meta-status {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--paper);
  background: var(--accent);
  padding: 2px 7px;
  font-weight: bold;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.gazette-footer {
  border-top: 3px double var(--ink);
  padding: 14px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.ft-copy {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink3);
  letter-spacing: .05em;
}

.ft-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ft-links a {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink2);
  text-decoration: none;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 700;
  transition: color 0.15s ease;
}

.ft-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   RESPONSIVE DESIGN — TABLET & MOBILE
   ========================================================================== */

/* Default: desktop-only elements are hidden —
   they only appear inside the @media (min-width: 1200px) block */
.desktop-bottom-row {
  display: none;
}

.desktop-projects-col {
  display: none;
}

.desktop-deliverables-summary {
  display: none;
}

/* Mobile classifieds section is shown by default (hidden on desktop) */
.mobile-classifieds-section {
  display: block;
}

/* ── Tablet: 768px and below ─────────────────────────────────────────────── */
@media (max-width: 768px) {

  html,
  body {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    word-break: break-word;
    overflow-x: hidden;
  }

  .paper-container {
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Masthead */
  .masthead {
    padding: 12px 14px 8px;
  }

  .mast-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .mast-name {
    font-size: clamp(38px, 9vw, 60px);
  }

  .mast-sub {
    font-size: 9px;
    letter-spacing: .1em;
  }

  /* Nav — wrap into a 3-column button grid */
  .mast-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 8px;
  }

  .mast-nav a {
    border-right: 1px solid var(--rule2);
    border-bottom: 1px solid var(--rule2);
    border-left: none;
    text-align: center;
    padding: 7px 4px;
    font-size: 10px;
  }

  .mast-nav a:first-child {
    border-left: none;
  }

  /* Hide stamp on mobile — overlaps content */
  .ink-stamp {
    display: none;
  }

  /* Main content padding */
  .content {
    padding: 0 14px 24px;
  }

  /* ── Grid Columns (Mobile Newspaper Layout) ── */
  .grid3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    border-bottom: 2px solid var(--rule2);
    gap: 12px;
  }

  .grid3 .profile-col {
    grid-column: 1;
    grid-row: 1;
    border-right: 1px solid var(--rule2);
    padding-right: 12px !important;
    padding-left: 0 !important;
    padding-bottom: 14px;
    border-bottom: none;
  }

  .grid3 .lead-story-col {
    grid-column: 2;
    grid-row: 1;
    padding-left: 12px !important;
    padding-bottom: 14px;
    border-right: none;
    border-bottom: none;
  }

  .grid3 .also-today-col {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 2px solid var(--rule2);
    border-bottom: none;
    padding-top: 14px;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .also-stories-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }

  .also-stories-row .story-preview-box:nth-child(3) {
    grid-column: 1 / -1;
  }

  /* 2-col grids → maintain 2 columns */
  .grid2,
  .grid2r {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }

  /* Column spacing */
  .col {
    padding: 14px 0 0 0 !important;
    border-right: none;
    border-bottom: none;
  }

  .grid2 .col:first-child,
  .grid2r .col:first-child {
    border-right: 1px solid var(--rule2);
    padding-right: 12px !important;
  }

  .grid2 .col:last-child,
  .grid2r .col:last-child {
    padding-left: 12px !important;
  }

  /* ── Typography ── */
  .hl1 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .hl2 {
    font-size: clamp(16px, 4.5vw, 20px);
  }

  .hl3 {
    font-size: 14px;
  }

  .hl4 {
    font-size: 12px;
  }

  .deck {
    font-size: 11.5px;
  }

  .body {
    font-size: 11.5px;
  }

  .byline,
  .date-text,
  .label,
  .proj-tech,
  .class-body,
  .class-ref {
    font-size: 9.5px !important;
  }

  .mast-name {
    font-size: clamp(32px, 8vw, 44px);
  }

  /* ── Project Cards: 2-col on tablet ── */
  .proj-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  /* Full-width pro cards still span full width */
  .proj-card-pro {
    grid-column: 1 / -1;
  }

  /* ── Classifieds: 2-col on tablet ── */
  .class-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  /* ── Infographic rows wrap more gracefully ── */
  .infographic-row {
    flex-wrap: wrap;
    gap: 4px;
  }

  .infographic-key {
    width: auto;
    min-width: 60px;
  }

  /* ── Contact form ── */
  .contact-box {
    padding: 12px;
  }

  /* ── Footer ── */
  .gazette-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ── Phone: 480px and below ──────────────────────────────────────────────── */
@media (max-width: 480px) {

  /* Masthead */
  .masthead {
    padding: 10px 12px 6px;
  }

  .mast-name {
    font-size: clamp(32px, 10vw, 46px);
  }

  .mast-name span {
    font-size: 10px;
    letter-spacing: .12em;
  }

  .mast-sub {
    font-size: 8px;
    letter-spacing: .1em;
  }

  /* Nav — 2 columns */
  .mast-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Content */
  .content {
    padding: 0 12px 20px;
  }

  /* ── Headline ── */
  .hl1 {
    font-size: clamp(24px, 8vw, 30px);
    line-height: 1.08;
  }

  .hl2 {
    font-size: 20px;
  }

  /* ── Project Cards & Classifieds: Keep multi-column on phones ── */
  .proj-grid,
  .class-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* ── Skills bar narrower ── */
  .bar {
    width: 100%;
    max-width: 120px;
  }

  /* ── Checklist font ── */
  .checklist-item {
    font-size: 12px;
  }

  /* ── Pipeline box ── */
  .pipeline-list li {
    font-size: 12px;
  }

  /* ── Tool palette: single column ── */
  .tool-palette-grid {
    grid-template-columns: 1fr;
  }

  .tool-item:nth-last-child(-n+2) {
    border-bottom: 1px dotted var(--rule2);
  }

  .tool-item:last-child {
    border-bottom: none;
  }

  /* ── Profile detail rows ── */
  .detail-label {
    width: 72px;
  }

  /* ── Pullquote ── */
  .pq p {
    font-size: 15px;
  }

  /* ── Footer ── */
  .gazette-footer {
    padding: 12px 12px 16px;
  }

  .ft-links {
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* ── Small Phone: 360px and below ───────────────────────────────────────── */
@media (max-width: 360px) {
  .mast-name {
    font-size: 28px;
  }

  .hl1 {
    font-size: 22px;
  }

  .mast-nav {
    grid-template-columns: repeat(2, 1fr);
    font-size: 9px;
  }

  .content {
    padding: 0 10px 16px;
  }

  .proj-card {
    padding: 10px 8px;
  }

  .class-item {
    padding: 8px;
  }

  .contact-box {
    padding: 10px;
  }
}

/* ==========================================================================
   DESKTOP LAYOUT — 1200px and above
   Full newspaper broadsheet: fills the viewport, multi-column gazette style.
   Projects panel moves to col 4 of Section A.
   Section B (grid2) is hidden — Deliverables + Classifieds move to desktop-bottom-row.
   Mobile / tablet overrides above are NOT affected.
   ========================================================================== */
@media (min-width: 1200px) {

  /* ── Expand html/body to full viewport ── */
  html,
  body {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  /* ── Paper container fills the full viewport width ── */
  .paper-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* ── Masthead: tighter padding and smaller text on big screens ── */
  .masthead {
    padding: 8px 36px 4px;
  }

  .mast-meta {
    font-size: 10.4px;
  }

  .ed-badge {
    font-size: 9.5px;
    padding: 2px 7px;
  }

  .mast-sub {
    font-size: 10px;
    margin-top: 4px;
  }

  .mast-nav {
    font-size: 12.5px;
  }

  .mast-name span {
    font-size: clamp(10.5px, 1.45vw, 12.5px);
    margin-bottom: 3px;
  }

  /* ── Content area: wider side padding ── */
  .content {
    padding: 0 36px 40px;
  }

  /* ── Footer ── */
  .gazette-footer {
    padding: 14px 36px 22px;
  }

  /* ── Ink stamp: position for wide screens ── */
  .ink-stamp {
    top: 80px;
    right: 44px;
  }

  /* ──────────────────────────────────────────────────────────────────────────
     SECTION A: 2-row newspaper layout

     Row 1 (top):  Profile (left, tall) | Lead Story (top-mid) | Projects (top-right)
     Row 2 (btm):  Profile (continues)  | Also Today (spans mid + right)

     ┌───────────┬────────────────┬───────────┐
     │  Profile  │   Lead Story     │  Projects  │  ← row 1
     │           ├────────────────┴───────────┤
     │           │    Also Today (spanning)       │  ← row 2
     └───────────┴────────────────────────────┘
     ────────────────────────────────────────────────────────────────────────── */
  .grid3 {
    display: grid;
    grid-template-columns: 1.2fr 2.1fr 1.3fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "profile lead    projects"
      "profile also    also";
    gap: 0;
    border-bottom: 1px solid var(--rule);
  }

  /* Assign each col to its grid area */
  .grid3 .profile-col {
    grid-area: profile;
  }

  .grid3 .lead-story-col {
    grid-area: lead;
  }

  .grid3 .also-today-col {
    grid-area: also;
  }

  .grid3 .desktop-projects-col {
    grid-area: projects;
  }

  /* Profile spans both rows — fill full height, larger readable text */
  .grid3 .profile-col {
    border-right: 1px solid var(--rule2);
    padding-right: var(--col-gap);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  /* Bigger body text in Profile on desktop */
  .grid3 .profile-col .body {
    font-size: 13px !important;
    line-height: 1.9;
  }

  /* Bigger heading */
  .grid3 .profile-col .hl4 {
    font-size: 16px;
  }

  /* Experience & skills table text */
  .grid3 .profile-col .sk-table td {
    font-size: 13px;
  }

  .grid3 .profile-col .sk-table td:first-child {
    font-size: 13.5px;
  }

  /* Pipeline & checklist text */
  .grid3 .profile-col .pipeline-list li,
  .grid3 .profile-col .checklist-item {
    font-size: 13px;
  }

  /* Experience box text */
  .grid3 .profile-col .proj-title {
    font-size: 14px !important;
  }

  /* Slightly wider skill bar to match bigger text */
  .grid3 .profile-col .bar {
    width: 90px;
  }

  /* Lead Story: right border only (top-mid) */
  .grid3 .lead-story-col {
    border-right: 1px solid var(--rule2);
    padding-left: var(--col-gap);
    padding-right: var(--col-gap);
  }

  /* Projects: no right border (top-right corner) */
  .grid3 .desktop-projects-col {
    border-right: none;
    padding-left: var(--col-gap);
    padding-right: 0;
  }

  /* Also Today: spans cols 2–3, column direction — stories row on top, pullquote below */
  .grid3 .also-today-col {
    border-top: 1px solid var(--rule2);
    border-right: none;
    padding-left: var(--col-gap);
    padding-right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* 3 stories side-by-side in one horizontal row */
  .also-stories-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    flex: 1;
  }

  /* Each individual story inside the row */
  .also-story-item {
    flex: 1 1 0;
    padding: 0 var(--col-gap) 12px 0;
    border-right: 1px solid var(--rule2);
  }

  .also-story-item:first-child {
    padding-left: 0;
  }

  .also-story-item:last-child {
    border-right: none;
    padding-right: 0;
    padding-left: var(--col-gap);
  }

  .also-story-item:not(:first-child):not(:last-child) {
    padding-left: var(--col-gap);
  }

  /* Pullquote — full width below the 3 stories, separated by a top rule */
  .also-pullquote {
    border-top: 1px solid var(--rule2);
    border-bottom: none;
    margin-top: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
  }

  /* Bigger text inside each Also Today story for readability */
  .also-story-item .hl3 {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 5px;
  }

  .also-story-item .hl4 {
    font-size: 13.5px;
    line-height: 1.35;
    margin-bottom: 5px;
  }

  .also-story-item .body {
    font-size: 12.5px !important;
    line-height: 1.8;
  }

  .also-story-item .byline {
    font-size: 9px !important;
    margin-bottom: 4px;
  }

  /* Stretch story items to fill the row height */
  .also-stories-row {
    align-items: stretch;
  }

  /* Reset mobile column ordering on desktop */
  .grid3 .profile-col,
  .grid3 .lead-story-col,
  .grid3 .also-today-col,
  .grid3 .desktop-projects-col {
    order: 0;
  }

  /* Show the Projects column — hidden by default in base CSS */
  .desktop-projects-col {
    display: block !important;
  }

  /* ──────────────────────────────────────────────────────────────────────────
     SECTION B (grid2): Hidden entirely on desktop
     — Projects are now in Section A col 4
     — Deliverables + Classifieds are in desktop-bottom-row below
     ────────────────────────────────────────────────────────────────────────── */
  .grid2.reveal-section,
  hr.rule-t#projects {
    display: none;
  }

  /* ──────────────────────────────────────────────────────────────────────────
     DESKTOP BOTTOM ROW: Deliverables (left) + Classifieds (right)
     ────────────────────────────────────────────────────────────────────────── */
  .desktop-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 2px solid var(--ink);
  }

  /* Show the deliverables summary inside desktop-bottom-row */
  .desktop-deliverables-summary {
    display: block;
  }

  /* Column padding inside the bottom row */
  .desktop-bottom-row .col {
    padding: 14px var(--col-gap) 14px 0;
    border-right: 1px solid var(--rule2);
  }

  .desktop-bottom-row .col:last-child {
    border-right: none;
    padding-left: var(--col-gap);
    padding-right: 0;
  }

  /* Each bottom-row column fills its height and spaces content evenly */
  .desktop-bottom-row .col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* Classifieds: fill height, space ads evenly */
  .desktop-bottom-row .classifieds {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .desktop-bottom-row .class-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 12px;
  }

  /* Bigger text in classifieds ads */
  .desktop-bottom-row .class-body {
    font-size: 12.5px;
    line-height: 1.75;
  }

  /* Hide the mobile-only classifieds section on desktop */
  .mobile-classifieds-section {
    display: none;
  }

  /* ──────────────────────────────────────────────────────────────────────────
     CONTACT: better proportions on wide screens
     ────────────────────────────────────────────────────────────────────────── */
  .grid2r {
    grid-template-columns: 300px 1fr;
  }

  /* ── Skills bar: wider on desktop ── */
  .bar {
    width: 110px;
  }

  /* ── Headline sizes: breathe on wide screens ── */
  .hl1 {
    font-size: clamp(28px, 2.4vw, 44px);
  }

  .hl2 {
    font-size: clamp(17px, 1.8vw, 26px);
  }

  .mast-name {
    font-size: clamp(47px, 5.7vw, 78px);
  }

}

/* ── Extra wide (1440px+): wider proportions ── */
@media (min-width: 1440px) {
  .grid3 {
    grid-template-columns: 1.2fr 2.3fr 1.4fr;
  }
}

/* ── Ultra-wide (1920px+): cap paper width for readability ── */
@media (min-width: 1920px) {
  .paper-container {
    max-width: 1820px;
    margin: 0 auto;
  }
}

/* Hide the mobile-only pullquote duplicate by default */
.lead-story-pq {
  display: none;
}

/* ==========================================================================
   TOUCH DEVICE OVERRIDES (Mobile & Tablets)
   Reorders sections visually without breaking the 1024px desktop layout.
   ========================================================================== */
@media (pointer: coarse) {

  /* 1. Hide Forex Calc */
  .also-stories-row .story-preview-box:nth-child(3) {
    display: none !important;
  }

  /* Hide the original pullquote in Also Today */
  .also-today-col>.also-pullquote {
    display: none !important;
  }

  /* Show the new pullquote under Lead Story */
  .lead-story-pq {
    display: block !important;
    margin-top: 60px;
    margin-bottom: 20px;
  }

  /* 2. Reorder main content sections */
  .content {
    display: flex;
    flex-direction: column;
  }

  .date-rule {
    order: 1;
  }

  /* 3. Top Grid Layout Tweaks */
  #about {
    order: 2;
  }

  #about.grid3 {
    grid-template-columns: 0.75fr 1.65fr 1fr !important;
  }

  /* Bring Classifieds up immediately below the top grid */
  #classifieds-mobile {
    display: block !important;
    order: 3;
    padding: 16px 0 0 0;
    margin-bottom: -10px;
  }

  #projects {
    order: 4;
    margin-top: 24px;
  }

  .grid2 {
    order: 5;
  }

  /* Deliverables (Keep at bottom, hide duplicate desktop classifieds) */
  #classifieds {
    display: block !important;
    order: 6;
  }

  #classifieds .col:last-child {
    display: none !important;
  }

  #contact {
    order: 7;
  }

  .grid2r {
    order: 8;
  }

  /* 4. Force strict edge-to-edge scaling to destroy blank gaps */
  html,
  body,
  .paper-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }
}